Audio codec and quality changes in batch mode

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
shockdiamond
Posts: 3
Joined: Tue Jun 23, 2020 6:32 pm

Audio codec and quality changes in batch mode

Post by shockdiamond »

Description of problem or question:
Whenever I queue multiple videos for reencoding, the audio codec remains set to AC3-192 for just the first video in the queue and then defaults back to AAC for the rest, ruining the batch. Why?

Steps to reproduce the problem (If Applicable):
N/A

HandBrake version (e.g., 1.0.0):
v1.3.3

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

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

Code: Select all

HandBrake 1.3.3 (2020061300)
OS: Microsoft Windows NT 10.0.18363.0
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 32702 MB, 
GPU Information:
  NVIDIA GeForce RTX 2080 - 26.21.14.4614
Screen: 2048x1152
Temp Dir: C:\TEMP\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\daniel\AppData\Roaming\HandBrake

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


# Starting Encode ...

[09:37:58] base preset: H.264 MKV 720p30 (Modified)
[21:37:58] hb_init: starting libhb thread
[21:37:58] Starting work at: Tue Jun 23 21:37:58 2020
[21:37:58] 1 job(s) to process
[21:37:58] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "D:\\Output\\test2-2.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mkv"
  },
  "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": 12,
        "Settings": {
          "crop-bottom": "2",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "8",
          "height": "710",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/900900"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 2,
    "Path": "D:\\Source\\test\\test2.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slow",
    "Profile": "main",
    "Quality": 20.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[21:37:58] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[21:37:58]  - Intel microarchitecture Haswell
[21:37:58]  - logical processor count: 8
[21:37:58] Intel Quick Sync Video support: no
[21:37:58] hb_scan: path=D:\Source\test\test2.mp4, title_index=2
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Source\test\test2.mp4
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
src/libbluray/bluray.c:2585: nav_get_title_list(D:\Source\test\test2.mp4\) failed
[21:37:58] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
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
[21:37:58] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Source\test\test2.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2020-04-21T12:54:22.000000Z
  Duration: 01:30:44.82, start: 0.000000, bitrate: 461 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 329 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2020-04-21T12:54:22.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 04/21/2020.
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      creation_time   : 2020-04-21T12:54:22.000000Z
      handler_name    : ISO Media file produced by Google Inc. Created on: 04/21/2020.
[21:37:58] scan: decoding previews for title 2
[21:37:58] scan: audio 0x1: aac, rate=44100Hz, bitrate=127999 English (AAC LC) (2.0 ch) (127 kbps)
[21:37:58] scan: 10 previews, 1280x720, 29.970 fps, autocrop = 8/2/0/0, aspect 16:9, PAR 1:1
[21:37:58] scan: supported video decoders: avcodec qsv
[21:37:58] libhb: scan thread found 1 valid title(s)
[21:37:58] Skipping subtitle scan.  No suitable subtitle tracks.
[21:37:58] Starting Task: Encoding Pass
[21:37:58] work: only 1 chapter, disabling chapter markers
[21:37:58] job configuration:
[21:37:58]  * source
[21:37:58]    + D:\Source\test\test2.mp4
[21:37:58]    + title 2, chapter(s) 1 to 1
[21:37:58]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:37:58]    + data rate: 461 kbps
[21:37:58]  * destination
[21:37:58]    + D:\Output\test2-2.mkv
[21:37:58]    + container: Matroska (libavformat)
[21:37:58]  * video track
[21:37:58]    + decoder: h264
[21:37:58]      + bitrate 329 kbps
[21:37:58]    + filters
[21:37:58]      + 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)
[21:37:58]      + Decomb (mode=39)
[21:37:58]      + Framerate Shaper (mode=1:rate=27000000/900900)
[21:37:58]        + frame rate: 29.970 fps -> constant 29.970 fps
[21:37:58]      + Crop and Scale (width=1280:height=710:crop-top=8:crop-bottom=2:crop-left=0:crop-right=0)
[21:37:58]        + source: 1280 * 720, crop (8/2/0/0): 1280 * 710, scale: 1280 * 710
[21:37:58]    + Output geometry
[21:37:58]      + storage dimensions: 1280 x 710
[21:37:58]      + pixel aspect ratio: 1 : 1
[21:37:58]      + display dimensions: 1280 x 710
[21:37:58]    + encoder: H.264 (libx264)
[21:37:58]      + preset:  slow
[21:37:58]      + profile: main
[21:37:58]      + level:   3.1
[21:37:58]      + quality: 20.00 (RF)
[21:37:58]      + color profile: 1-1-1
[21:37:58]  * audio track 1
[21:37:58]    + decoder: English (AAC LC) (2.0 ch) (127 kbps) (track 1, id 0x1)
[21:37:58]      + bitrate: 127 kbps, samplerate: 44100 Hz
[21:37:58]    + mixdown: Stereo
[21:37:58]    + dither: none
[21:37:58]    + encoder: AAC (libavcodec)
[21:37:58]      + bitrate: 160 kbps, samplerate: 44100 Hz
[21:37:58] sync: expecting 163181 video frames
[21:37:58] encx264: min-keyint: 30, keyint: 300
[21:37:58] encx264: encoding at constant RF 20.000000
[21:37:58] encx264: unparsed options: level=3.1:ref=5:direct=auto:8x8dct=0:subme=8:trellis=2:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=50
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[21:37:58] sync: first pts video is 0
[21:37:58] sync: "Chapter 1" (1) at frame 1 time 0
[21:37:58] sync: first pts audio 0x1 is 0
[22:09:01] reader: done. 1 scr changes
[22:09:02] work: average encoding speed for job is 87.537560 fps
[22:09:02] comb detect: heavy 14 | light 173 | uncombed 162994 | total 163181
[22:09:02] decomb: deinterlaced 14 | blended 173 | unfiltered 162994 | total 163181
[22:09:02] vfr: 163181 frames output, 0 dropped and 0 duped for CFR/PFR
[22:09:02] vfr: lost time: 0 (0 frames)
[22:09:02] vfr: gained time: 0 (0 frames) (0 not accounted for)
[22:09:02] aac-decoder done: 234489 frames, 0 decoder errors
[22:09:02] h264-decoder done: 163181 frames, 0 decoder errors
[22:09:02] sync: got 163181 frames, 163181 expected
[22:09:02] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:709   Avg QP:12.60  size: 55071
x264 [info]: frame P:53841 Avg QP:17.14  size:  9534
x264 [info]: frame B:108631 Avg QP:21.56  size:  1488
x264 [info]: consecutive B-frames:  1.2% 19.9% 31.0% 47.9%
x264 [info]: mb I  I16..4: 44.0%  0.0% 56.0%
x264 [info]: mb P  I16..4:  4.6%  0.0%  2.1%  P16..4: 18.5% 14.8%  5.5%  0.0%  0.0%    skip:54.5%
x264 [info]: mb B  I16..4:  0.2%  0.0%  0.1%  B16..8: 14.1%  2.6%  0.5%  direct: 1.8%  skip:80.6%  L0:47.5% L1:49.3% BI: 3.2%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 38.2% 82.0% 38.2% inter: 2.9% 9.4% 0.4%
x264 [info]: i16 v,h,dc,p: 60% 12%  7% 21%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 12% 13%  5%  7%  9%  7%  8%  7%
x264 [info]: i8c dc,h,v,p: 33% 16% 37% 14%
x264 [info]: Weighted P-Frames: Y:0.3% UV:0.1%
x264 [info]: ref P L0: 70.3% 10.1% 12.2%  3.9%  3.5%  0.0%  0.0%
x264 [info]: ref B L0: 88.7%  8.3%  2.5%  0.5%
x264 [info]: ref B L1: 98.2%  1.8%
x264 [info]: kb/s:1049.03
[22:09:02] mux: track 0, 163181 frames, 713942958 bytes, 1048.98 kbps, fifo 4096
[22:09:02] mux: track 1, 234490 frames, 107679122 bytes, 158.21 kbps, fifo 8192
[22:09:02] Finished work at: Tue Jun 23 22:09:02 2020
[22:09:02] libhb: work result = 0

# Encode Completed ...
shockdiamond
Posts: 3
Joined: Tue Jun 23, 2020 6:32 pm

Re: Audio codec and quality changes in batch mode

Post by shockdiamond »

Please note the scope of the issue is test1.mp4 and test2.mp4 - I don't know why there is other bluray junk in there since I remove the existing log before (trying) to create a clean one for you that had nothing to do with bluray.. ugh.
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Audio codec and quality changes in batch mode

Post by mduell »

Save the audio configuration and defaults you want in a preset, then select that preset for your batch. Edits to an individual encode only apply to that encode, the preset applies to the rest of the batch.
shockdiamond
Posts: 3
Joined: Tue Jun 23, 2020 6:32 pm

Re: Audio codec and quality changes in batch mode

Post by shockdiamond »

mduell wrote: Wed Jun 24, 2020 1:46 pm Save the audio configuration and defaults you want in a preset, then select that preset for your batch. Edits to an individual encode only apply to that encode, the preset applies to the rest of the batch.
Thank you. I will give that a shot now to ensure it works, but it makes sense.
Post Reply