Can't Figure out the QUEUE

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
dsapadin
Posts: 6
Joined: Fri Nov 23, 2018 10:48 pm

Can't Figure out the QUEUE

Post by dsapadin »

Description of problem or question:

I am trying to do a batch process. When I select batch, it sees the 10 videos in the folder and scans them all. It puts the 1st video into the queue.
I cannot add the rest of the videos to the queue, it keeps telling me something has the same path. Which is totally confusing me. All the videos have unique filenames. A can't select a place via "browse" in preference to "put the files" when done. It doesn't allow me to select a folder at all.


Steps to reproduce the problem (If Applicable):

All I want to do with Handbrake so far is synchronize videos taken on an iPhone. I have successfully synched videos, doing them one at a time. For the life of me I cannot figure out what you are talking about in your instructions on how to use the queue. Makes no sense at all. And when I try to do it, the error messages I am getting make no sense either. I have HANDBRAKE set to "name the files" so I would think it would make sure no two files have the same name...even though they all have different filenames to begin with. Never seen anything so un-intuitive as the queue functionality in HANDBRAKE. All the video tutorials I have found on line are for earlier versions and thus unhelpful.
Hopefully someone can explain how to process a batch of videos at once. It shouldn't be this difficult!

Thanks in advance,

Dave

HandBrake version (e.g., 1.0.0):

1.1.2


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):


Windows 8

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.1.2 (2018090500) - 64bit
OS: Microsoft Windows NT 6.2.9200.0 - 64bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Ram: 6006 MB, 
GPU Information:
  Intel(R) HD Graphics 4000 - 9.17.10.2843
Screen: 1366x768
Temp Dir: C:\Users\David\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\David\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[16:46:05] hb_init: starting libhb thread
[16:46:05] 1 job(s) to process
[16:46:05] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\David\\Desktop\\Scorpio Converted\\Img 1341-2.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 2,
    "Path": "C:\\Users\\David\\Desktop\\New folder (3)\\IMG_1341.MOV"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22.0,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[16:46:05] CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
[16:46:05]  - Intel microarchitecture Ivy Bridge
[16:46:05]  - logical processor count: 4
[16:46:05] Intel Quick Sync Video support: yes
[16:46:05]  - Intel Media SDK hardware: API 1.4 (minimum: 1.3)
[16:46:05]  - H.264 encoder: yes
[16:46:05]     - preferred implementation: hardware (any) via D3D11
[16:46:05]     - capabilities (hardware):  vsinfo opt1
[16:46:05]  - H.265 encoder: no
[16:46:05] hb_scan: path=C:\Users\David\Desktop\New folder (3)\IMG_1341.MOV, title_index=2
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Users\David\Desktop\New folder (3)\IMG_1341.MOV
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[16:46:05] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[16:46:05] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\David\Desktop\New folder (3)\IMG_1341.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    creation_time   : 2016-11-13 03:15:39
  Duration: 00:00:10.54, start: 0.000000, bitrate: 15634 kb/s
    Stream #0:0(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      1920x1080, 15631 kb/s
      29.97 fps, 600 tbn (default)
    Metadata:
      creation_time   : 2016-11-13 03:15:39
      handler_name    : Core Media Data Handler
      encoder         : H.264
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      44100 Hz, mono, fltp, 87 kb/s (default)
    Metadata:
      creation_time   : 2016-11-13 03:15:39
      handler_name    : Core Media Data Handler
    Stream #0:2(und): Data: mebx / 0x7862656D, 6 kb/s (default)
    Metadata:
      creation_time   : 2016-11-13 03:15:39
      handler_name    : Core Media Data Handler
    Stream #0:3(und): Data: mebx / 0x7862656D, 0 kb/s (default)
    Metadata:
      creation_time   : 2016-11-13 03:15:39
      handler_name    : Core Media Data Handler
[16:46:05] scan: decoding previews for title 2
[16:46:06] scan: audio 0x1: aac, rate=44100Hz, bitrate=87761 Unknown (AAC) (1.0 ch)
[16:46:07] scan: 10 previews, 1920x1080, 29.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:46:07] scan: supported video decoders: avcodec qsv
[16:46:07] libhb: scan thread found 1 valid title(s)
[16:46:07] Skipping subtitle scan.  No suitable subtitle tracks.
[16:46:07] starting job
[16:46:07] decomb filter thread started for segment 0
[16:46:07] decomb filter thread started for segment 3
[16:46:07] decomb filter thread started for segment 1
[16:46:07] decomb check thread started for segment 1
[16:46:07] decomb check thread started for segment 0
[16:46:07] decomb filter thread started for segment 2
[16:46:07] mask filter thread started for segment 0
[16:46:07] mask erode thread started for segment 0
[16:46:07] decomb check thread started for segment 3
[16:46:07] mask dilate thread started for segment 0
[16:46:07] mask erode thread started for segment 3
[16:46:07] mask filter thread started for segment 2
[16:46:07] mask filter thread started for segment 1
[16:46:07] mask erode thread started for segment 2
[16:46:07] decomb check thread started for segment 2
[16:46:07] yadif thread started for segment 2
[16:46:07] work: track 1, dithering not supported by codec
[16:46:07] mask dilate thread started for segment 2
[16:46:07] mask filter thread started for segment 3
[16:46:07] work: only 1 chapter, disabling chapter markers
[16:46:07] yadif thread started for segment 0
[16:46:07] job configuration:
[16:46:07] mask erode thread started for segment 1
[16:46:07]  * source
[16:46:07]    + C:\Users\David\Desktop\New folder (3)\IMG_1341.MOV
[16:46:07]    + title 2, chapter(s) 1 to 1
[16:46:07]    + container: mov,mp4,m4a,3gp,3g2,mj2
[16:46:07] mask dilate thread started for segment 1
[16:46:07]    + data rate: 15634 kbps
[16:46:07]  * destination
[16:46:07]    + C:\Users\David\Desktop\Scorpio Converted\Img 1341-2.mp4
[16:46:07]    + container: MPEG-4 (libavformat)
[16:46:07]      + align initial A/V stream timestamps
[16:46:07]  * video track
[16:46:07]    + decoder: h264
[16:46:07] yadif thread started for segment 1
[16:46:07]      + bitrate 15631 kbps
[16:46:07]    + filters
[16:46:07] yadif thread started for segment 3
[16:46:07]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[16:46:07]      + Decomb (mode=39)
[16:46:07]      + Framerate Shaper (mode=1:rate=27000000/900000)
[16:46:07]        + frame rate: 29.976 fps -> constant 30.000 fps
[16:46:07]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[16:46:07]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[16:46:07]    + Output geometry
[16:46:07]      + storage dimensions: 1920 x 1080
[16:46:07] mask dilate thread started for segment 3
[16:46:07]      + pixel aspect ratio: 1 : 1
[16:46:07]      + display dimensions: 1920 x 1080
[16:46:07]    + encoder: H.264 (libx264)
[16:46:07]      + preset:  fast
[16:46:07]      + profile: main
[16:46:07]      + level:   4.0
[16:46:07]      + quality: 22.00 (RF)
[16:46:07]  * audio track 1
[16:46:07]    + decoder: Unknown (AAC) (1.0 ch) (track 1, id 0x1)
[16:46:07]      + bitrate: 87 kbps, samplerate: 44100 Hz
[16:46:07]    + mixdown: Mono
[16:46:07]    + encoder: AAC (libavcodec)
[16:46:07]      + bitrate: 160 kbps, samplerate: 48000 Hz
[16:46:07] sync: expecting 316 video frames
[16:46:07] encx264: min-keyint: 30, keyint: 300
[16:46:07] encx264: encoding at constant RF 22.000000
[16:46:07] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[16:46:07] sync: first pts video is 0
[16:46:07] sync: "Chapter 1" (1) at frame 1 time 0
[16:46:07] sync: first pts audio 0x1 is 0
[16:46:30] reader: done. 1 scr changes
[16:46:45] work: average encoding speed for job is 10.340517 fps
[16:46:45] comb detect: heavy 0 | light 1 | uncombed 313 | total 314
[16:46:45] decomb: deinterlaced 0 | blended 1 | unfiltered 313 | total 314
[16:46:45] vfr: 314 frames output, 0 dropped and 0 duped for CFR/PFR
[16:46:45] vfr: lost time: 0 (0 frames)
[16:46:45] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:46:45] aac-decoder done: 454 frames, 0 decoder errors
[16:46:45] h264-decoder done: 314 frames, 0 decoder errors
[16:46:45] sync: got 314 frames, 316 expected
[16:46:45] sync: framerate min 29.980 fps, max 29.980 fps, avg 29.976 fps
x264 [info]: frame I:2     Avg QP:23.53  size:119839
x264 [info]: frame P:79    Avg QP:24.66  size: 67928
x264 [info]: frame B:233   Avg QP:25.81  size: 37526
x264 [info]: consecutive B-frames:  1.0%  0.0%  1.0% 98.1%
x264 [info]: mb I  I16..4: 16.9%  0.0% 83.1%
x264 [info]: mb P  I16..4: 11.8%  0.0% 27.0%  P16..4: 37.4% 16.7%  5.5%  0.0%  0.0%    skip: 1.7%
x264 [info]: mb B  I16..4: 14.2%  0.0%  6.6%  B16..8: 36.4% 15.9%  0.8%  direct:17.4%  skip: 8.7%  L0:51.4% L1:40.7% BI: 7.9%
x264 [info]: coded y,uvDC,uvAC intra: 50.4% 72.5% 7.5% inter: 27.1% 59.1% 0.4%
x264 [info]: i16 v,h,dc,p: 23% 21% 27% 29%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 17% 22%  7%  8%  7%  6%  6%  4%
x264 [info]: i8c dc,h,v,p: 49% 24% 18%  8%
x264 [info]: Weighted P-Frames: Y:5.1% UV:2.5%
x264 [info]: ref P L0: 61.5% 38.5%
x264 [info]: ref B L0: 87.4% 12.6%
x264 [info]: ref B L1: 95.6%  4.4%
x264 [info]: kb/s:10967.85
[16:46:45] mux: track 0, 314 frames, 14349520 bytes, 10863.99 kbps, fifo 256
[16:46:45] mux: track 1, 495 frames, 214839 bytes, 162.65 kbps, fifo 512
[16:46:46] libhb: work result = 0

# Encode Completed ...


Woodstock
Veteran User
Posts: 4620
Joined: Tue Aug 27, 2013 6:39 am

Re: Can't Figure out the QUEUE

Post by Woodstock »

Tools->Preferences->Output Files.

What do you have filled in for the path and file name templates? If nothing, then you have your answer - automatic file naming is necessary to do batch add. If you hover your cursor over the blanks, you will see information about macros you can use for creating the automatic file names.
dsapadin
Posts: 6
Joined: Fri Nov 23, 2018 10:48 pm

Re: Can't Figure out the QUEUE

Post by dsapadin »

Thank you, but this really doesn't tell me anything. The queue procedure is VERY counter-intuitive. I have successfully converted one file at at time. But when I try a batch process (Queue) it keeps telling me I have files with the same file name. I understand it needs to rename the files, usually any batch process adds 1 to a number at then end of a file name such as test1.mp4, test2.mp4 etc. Although in this case, all the original filenames are different to begin with, so I do not understand why it has filename issue at all. I am able to scan all the files (they are all in one folder) that I want to batch process successfuly. But I remain unable to add them to the queue.

Automatically name output files: is CHECKED
Default Path: I am assuming this is where Handbrake wants to put the converted files once it has finished converting each one, is that correct? So I browse to where I want to put the files and select that folder, correct?

File Format {source}-{title} <----- This is the big mystery. The folder from which I want to batch process is on my desktop and has the filename PROCESSED (It is presently empty because this is where I want Handbrake to store the newly converted files). The filename from which I want to draw files from and put in the queue is named NEW FOLDER (3), it has 11 files in it named image_1394.mov to 1405.mov

I have batched processed files for years and never run into anything this convoluted or misnamed. Could you possibly give e a step-by-step? It really should not be this difficult but none of that it wants to do for a batch process makes any sense to me. All I am trying to do is synch the audio and video in longer than average .mov files shot with an iPhone and I havee Handbrake set to do that.

Thanks,

Dave
User avatar
s55
HandBrake Team
Posts: 10358
Joined: Sun Dec 24, 2006 1:05 pm

Re: Can't Figure out the QUEUE

Post by s55 »

{source} {title} are placeholders that get substituted when the autoname feature runs.

{source} = Name of the source file, or drive label.
{title} = Title number on the DVD, or number of the file in batch scan mode.

So, If your source was "Test.mp4", you'd get Test-1.mp4 generated.

Note, autoname won't run if the destination or the default path doesn't already have a value.

If configured correctly. Pressing "Add all to queue" is all you need to do in most instances.

May want to look at https://handbrake.fr/docs/en/latest/advanced/queue.html
dsapadin
Posts: 6
Joined: Fri Nov 23, 2018 10:48 pm

Re: Can't Figure out the QUEUE

Post by dsapadin »

Well, I've read that link over and over. And each time I read it, it makes less and less sense! I appreciate your help, I'll give this one more go before I give up.
1) I have a folder that lives on my desktop named "Folder(3)" In it are 11 .mov iPhone movies names image_1337.mov to image_1348.mov

When I drop that folder into HB, it scans all 11 files. And I think I'm headed in the right direction. But nothing gets added to the queue. OK, so I hit the QUEUE, ADD ALL. then I get the error message that the files all have the same destination! And the destination doesn't get added until the bottom of the page! I have 3 screen shots but don't know how to add them to this post. One is a screenshot of Tab 1 of the Preferences, one is a screenshot of tab 2 of the preferences. From reading the link, I have NO IDEA what goes where on those two pages. I have an empty folder on my desktop titled PROCESSED which is where I want Handbrake to put the processed files from the queue. When I hit "Show Queue" all I see is the first .mov file in the folder that lives on my desktop. Perchance to these file all need to be moved into the QUEUE one at a time? IF so, HOW?

So if you are looking at what I've described, what would be the steps you would taKe (1, 2, 3,4, etc) to get the unprocessed files INTO the Queue and then OUT to the empty file folder on the desktop. I have CHECKED that the files need to be renamed. Do you actually use the word "Title" or is the word "Title" a placeholder for another word, and why would I want to change the title beyond adding a digit to each one so they don't write over each other? If the one file I can see in the QUEUE is image_1337.mov does that mean all 11 files are going to be named image_1337.mov with a digit added? How do I tell HB to add a digit? (e.g. image_1337-1.mov) ??

Thanks in advance,

Dave
User avatar
s55
HandBrake Team
Posts: 10358
Joined: Sun Dec 24, 2006 1:05 pm

Re: Can't Figure out the QUEUE

Post by s55 »

When I drop that folder into HB, it scans all 11 files. And I think I'm headed in the right direction. But nothing gets added to the queue.
Correct. Each file will be represented as a title in the titles dropdown.

As far as autonaming is concerned.

{title} is a number which represents each file. So first file is 1, second is 2 etc.
{source} will be the name of each file.

So for example, if you load in 3 files

VideoA.mp4
VideoB.mp4
VideoC.mp4

{source}-{title}

will result in

VideoA-1.mp4
VideoB-2.mp4
VideoC-3.mp4


You don't strictly need the title in this example. It's more useful for DVD/Bluray style sources where it will directly map to titles on the DVD or bluray.



So if you have both of those in the autoname format box, it's highly unlikely you'd get a name clash.

Perchance to these file all need to be moved into the QUEUE one at a time? IF so, HOW?
Nope. Although, you'll get the same error anyway trying to add single items since you appear to have things mis configured now.
dsapadin
Posts: 6
Joined: Fri Nov 23, 2018 10:48 pm

Re: Can't Figure out the QUEUE

Post by dsapadin »

OK it defaults to {source}-{title} in the box underneath a browse to (somewhere) that I haven't figured out where it wants me to browse to. So if it defaults to {source}-{title} then I shouldn't have to add or change anything there, is that right?

Thanks again!

David
User avatar
s55
HandBrake Team
Posts: 10358
Joined: Sun Dec 24, 2006 1:05 pm

Re: Can't Figure out the QUEUE

Post by s55 »

You don't add the placeholders to the destination box. they are only settable in preferences. Mable that's what your doing wrong?
I.e. https://handbrake.fr/docs/en/images/win ... -1.0.0.png

Note, placeholders are case sensitive.
Woodstock
Veteran User
Posts: 4620
Joined: Tue Aug 27, 2013 6:39 am

Re: Can't Figure out the QUEUE

Post by Woodstock »

"Browse to" is to select the output location (folder). You can also pre-populate that with a fixed path - If you always put your output files in "D:\VideoOut", you can put that in the Default Path box.

The Default Path can also have place holders (different ones than the file name box!) that get updated when you add a file to the queue; I use "V:\Anime\Dubbed\{source_folder_name}" as my default path, and {source_folder_name} is replaced by the name of the folder where the source file was stored. If I load a file from "Z:\Akashic Records", the destination path will become "V:\Anime\Dubbed\Akashic Records\".
User avatar
s55
HandBrake Team
Posts: 10358
Joined: Sun Dec 24, 2006 1:05 pm

Re: Can't Figure out the QUEUE

Post by s55 »

Lets not jump ahread of ourselves here :)
Woodstock
Veteran User
Posts: 4620
Joined: Tue Aug 27, 2013 6:39 am

Re: Can't Figure out the QUEUE

Post by Woodstock »

What, just because we haven't narrowed down WHICH input boxes are being used? :)

It would be a bit of overkill, but maybe in the 1.4.x range, if someone tries to use the queue when things aren't set up properly behind the scenes, a wizard could pop up to take them through setting up the needed values, complete with an overly-long (to us!) description of what is being asked for for each box.

It's been so long since I did a clean install, I don't remember what the default settings are for auto-naming. :roll:
dsapadin
Posts: 6
Joined: Fri Nov 23, 2018 10:48 pm

Re: Can't Figure out the QUEUE

Post by dsapadin »

Would it be possible to go through a step by step? Let's say the folder with 10 videos in it is on the desktop and it is called Folder_One. And we want to output the processed videos to another folder on the desktop and it is called Folder_Two. I want to put the 10 videos into the queue and process them all the same and deposit the output into Folder_Two

What are the steps, one by one, in order.

Thanks,

Dave

'
dsapadin
Posts: 6
Joined: Fri Nov 23, 2018 10:48 pm

Re: Can't Figure out the QUEUE

Post by dsapadin »

OK I figured out how to use it. The problem was/is you get an error message when you add the files to the QUEUE which you have to IGNORE and just keep going. Everything works. But you have a bug in there that says words to the effect that more than one video has the same destination....which of course is what you want. But for a newbie, it just screws up the learning process.

Dave
mduell
Veteran User
Posts: 8204
Joined: Sat Apr 21, 2007 8:54 pm

Re: Can't Figure out the QUEUE

Post by mduell »

Nobody wants that, the later encode will overwrite the earlier encode.
Post Reply