DRC Audio Compression being ignored

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
philhemel
Posts: 5
Joined: Wed Jan 30, 2019 10:01 am

DRC Audio Compression being ignored

Post by philhemel » Wed Jan 30, 2019 10:38 am

Description of problem or question:
DRC Audio Compression is being ignored. I've tried GUI and CLI. Audio Gain works fine.



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
1.2.0



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Win7Pro 64 Bit. Also tried Win10Pro



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

Code: Select all

HandBrake 1.2.0 (2018121700)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
Ram: 16351 MB, 
GPU Information:
  NVIDIA GeForce GTX 560 Ti - 23.21.13.9135
Screen: 1920x1080
Temp Dir: C:\Users\Phil\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Phil\AppData\Roaming\HandBrake

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


# Starting Encode ...

[10:34:37] hb_init: starting libhb thread
[10:34:37] 1 job(s) to process
[10:34:37] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 4.0,
        "Encoder": "av_aac",
        "Gain": 6.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "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": "(01)00:00:00:000"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "U:\\L+H\\Convert\\Test.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "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": "2",
          "crop-right": "0",
          "crop-top": "0",
          "height": "552",
          "width": "718"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "U:\\L+H\\Convert\\Input 0 Degrees\\TEST.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[10:34:37] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[10:34:37]  - Intel microarchitecture Sandy Bridge
[10:34:37]  - logical processor count: 8
[10:34:37] Intel Quick Sync Video support: no
[10:34:37] hb_scan: path=U:\L+H\Convert\Input 0 Degrees\TEST.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image U:\L+H\Convert\Input 0 Degrees\TEST.mkv
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
[10:34:37] 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
[10:34:37] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'U:\L+H\Convert\Input 0 Degrees\TEST.mkv':
  Metadata:
    title           : LAUREL_AND_HARDY_VOL_02.Title5
    encoder         : libebml v1.3.4 + libmatroska v1.4.5
    creation_time   : 2019-01-21T17:58:04.000000Z
  Duration: 00:01:00.48, start: 0.000000, bitrate: 1145 kb/s
    Chapter #0:0: start 0.000000, end 60.480000
    Metadata:
      title           : (01)00:00:00:000
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 720x552 [SAR 1:1 DAR 30:23], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Metadata:
      BPS             : 1015070
      BPS-eng         : 1015070
      DURATION        : 00:01:00.480000000
      DURATION-eng    : 00:01:00.480000000
      NUMBER_OF_FRAMES: 1512
      NUMBER_OF_FRAMES-eng: 1512
      NUMBER_OF_BYTES : 7673933
      NUMBER_OF_BYTES-eng: 7673933
      _STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2019-01-21 17:58:04
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-01-21 17:58:04
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      BPS             : 128000
      BPS-eng         : 128000
      DURATION        : 00:01:00.480000000
      DURATION-eng    : 00:01:00.480000000
      NUMBER_OF_FRAMES: 1890
      NUMBER_OF_FRAMES-eng: 1890
      NUMBER_OF_BYTES : 967680
      NUMBER_OF_BYTES-eng: 967680
      _STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2019-01-21 17:58:04
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-01-21 17:58:04
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[10:34:37] scan: decoding previews for title 1
[10:34:37] scan: audio 0x1: ac3, rate=48000Hz, bitrate=128000 English (AC3) (2.0 ch)
[10:34:37] scan: 10 previews, 720x552, 25.000 fps, autocrop = 0/0/2/0, aspect 1.30:1, PAR 1:1
[10:34:37] scan: supported video decoders: avcodec qsv
[10:34:37] libhb: scan thread found 1 valid title(s)
[10:34:38] Skipping subtitle scan.  No suitable subtitle tracks.
[10:34:38] starting job
[10:34:38] decomb filter thread started for segment 0
[10:34:38] decomb filter thread started for segment 1
[10:34:38] decomb filter thread started for segment 2
[10:34:38] decomb filter thread started for segment 3
[10:34:38] decomb filter thread started for segment 4
[10:34:38] decomb filter thread started for segment 5
[10:34:38] decomb filter thread started for segment 6
[10:34:38] decomb filter thread started for segment 7
[10:34:38] decomb check thread started for segment 0
[10:34:38] decomb check thread started for segment 1
[10:34:38] decomb check thread started for segment 2
[10:34:38] decomb check thread started for segment 3
[10:34:38] decomb check thread started for segment 4
[10:34:38] decomb check thread started for segment 5
[10:34:38] decomb check thread started for segment 6
[10:34:38] decomb check thread started for segment 7
[10:34:38] mask filter thread started for segment 0
[10:34:38] mask filter thread started for segment 1
[10:34:38] mask filter thread started for segment 2
[10:34:38] mask filter thread started for segment 3
[10:34:38] mask filter thread started for segment 4
[10:34:38] mask filter thread started for segment 5
[10:34:38] mask filter thread started for segment 6
[10:34:38] mask filter thread started for segment 7
[10:34:38] mask erode thread started for segment 0
[10:34:38] mask erode thread started for segment 1
[10:34:38] mask erode thread started for segment 2
[10:34:38] mask erode thread started for segment 3
[10:34:38] mask erode thread started for segment 4
[10:34:38] mask erode thread started for segment 5
[10:34:38] mask erode thread started for segment 6
[10:34:38] mask erode thread started for segment 7
[10:34:38] mask dilate thread started for segment 0
[10:34:38] mask dilate thread started for segment 1
[10:34:38] mask dilate thread started for segment 2
[10:34:38] mask dilate thread started for segment 3
[10:34:38] mask dilate thread started for segment 4
[10:34:38] mask dilate thread started for segment 5
[10:34:38] mask dilate thread started for segment 6
[10:34:38] mask dilate thread started for segment 7
[10:34:38] yadif thread started for segment 0
[10:34:38] yadif thread started for segment 1
[10:34:38] yadif thread started for segment 2
[10:34:38] yadif thread started for segment 3
[10:34:38] yadif thread started for segment 4
[10:34:38] yadif thread started for segment 5
[10:34:38] yadif thread started for segment 6
[10:34:38] yadif thread started for segment 7
[10:34:38] work: only 1 chapter, disabling chapter markers
[10:34:38] job configuration:
[10:34:38]  * source
[10:34:38]    + U:\L+H\Convert\Input 0 Degrees\TEST.mkv
[10:34:38]    + title 1, chapter(s) 1 to 1
[10:34:38]    + container: matroska,webm
[10:34:38]    + data rate: 1145 kbps
[10:34:38]  * destination
[10:34:38]    + U:\L+H\Convert\Test.mp4
[10:34:38]    + container: MPEG-4 (libavformat)
[10:34:38]      + align initial A/V stream timestamps
[10:34:38]  * video track
[10:34:38]    + decoder: hevc
[10:34:38]    + filters
[10:34:38]      + 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)
[10:34:38]      + Decomb (mode=39)
[10:34:38]      + Framerate Shaper (mode=2:rate=27000000/900000)
[10:34:38]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[10:34:38]      + Crop and Scale (width=718:height=552:crop-top=0:crop-bottom=0:crop-left=2:crop-right=0)
[10:34:38]        + source: 720 * 552, crop (0/0/2/0): 718 * 552, scale: 718 * 552
[10:34:38]    + Output geometry
[10:34:38]      + storage dimensions: 718 x 552
[10:34:38]      + pixel aspect ratio: 1 : 1
[10:34:38]      + display dimensions: 718 x 552
[10:34:38]    + encoder: H.264 (libx264)
[10:34:38]      + preset:  fast
[10:34:38]      + profile: main
[10:34:38]      + level:   4.0
[10:34:38]      + quality: 22.00 (RF)
[10:34:38]      + color profile: 5-1-6
[10:34:38]  * audio track 1
[10:34:38]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x1)
[10:34:38]      + bitrate: 128 kbps, samplerate: 48000 Hz
[10:34:38]    + mixdown: Stereo
[10:34:38]    + gain: 6dB
[10:34:38]    + dynamic range compression: 4.000000
[10:34:38]    + dither: none
[10:34:38]    + encoder: AAC (libavcodec)
[10:34:38]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:34:38] sync: expecting 1512 video frames
[10:34:38] encx264: encoding at constant RF 22.000000
[10:34:38] 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, 4:2:0, 8-bit
[10:34:38] sync: first pts video is 0
[10:34:38] sync: "(01)00:00:00:000" (1) at frame 1 time 0
[10:34:38] sync: first pts audio 0x1 is 0
[10:34:48] reader: done. 1 scr changes
[10:34:49] work: average encoding speed for job is 133.345535 fps
[10:34:49] comb detect: heavy 1 | light 2 | uncombed 1509 | total 1512
[10:34:49] decomb: deinterlaced 1 | blended 2 | unfiltered 1509 | total 1512
[10:34:49] vfr: 1512 frames output, 0 dropped and 0 duped for CFR/PFR
[10:34:49] vfr: lost time: 0 (0 frames)
[10:34:49] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:34:49] ac3-decoder done: 1890 frames, 0 decoder errors
[10:34:49] hevc-decoder done: 1512 frames, 0 decoder errors
[10:34:49] sync: got 1512 frames, 1512 expected
[10:34:49] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:11    Avg QP:16.71  size: 18479
x264 [info]: frame P:402   Avg QP:21.97  size:  9005
x264 [info]: frame B:1099  Avg QP:24.79  size:  2787
x264 [info]: consecutive B-frames:  2.2%  1.6%  2.8% 93.4%
x264 [info]: mb I  I16..4: 45.4%  0.0% 54.6%
x264 [info]: mb P  I16..4:  7.6%  0.0%  5.0%  P16..4: 44.2% 21.8%  8.9%  0.0%  0.0%    skip:12.4%
x264 [info]: mb B  I16..4:  6.6%  0.0%  0.6%  B16..8: 35.3%  8.8%  0.3%  direct:11.5%  skip:36.9%  L0:44.0% L1:44.5% BI:11.4%
x264 [info]: coded y,uvDC,uvAC intra: 26.3% 3.2% 0.2% inter: 20.3% 3.5% 0.0%
x264 [info]: i16 v,h,dc,p: 31% 38% 16% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 23% 18%  5%  6%  6%  7%  5%  5%
x264 [info]: i8c dc,h,v,p: 91%  5%  4%  0%
x264 [info]: Weighted P-Frames: Y:59.7% UV:2.2%
x264 [info]: ref P L0: 70.0% 30.0%
x264 [info]: ref B L0: 82.3% 17.7%
x264 [info]: ref B L1: 93.4%  6.6%
x264 [info]: kb/s:910.85
[10:34:49] mux: track 0, 1512 frames, 6885588 bytes, 910.19 kbps, fifo 2048
[10:34:49] mux: track 1, 2836 frames, 1191468 bytes, 157.50 kbps, fifo 4096
[10:34:50] libhb: work result = 0

# Encode Completed ...



philhemel
Posts: 5
Joined: Wed Jan 30, 2019 10:01 am

Re: DRC Audio Compression being ignored

Post by philhemel » Wed Jan 30, 2019 12:36 pm

p.s. I've used an audio editor to compare results with DRC off and with various levels up to the max 4.0, waveforms are all identical

User avatar
Rodeo
HandBrake Team
Posts: 12066
Joined: Tue Mar 03, 2009 8:55 pm

Re: DRC Audio Compression being ignored

Post by Rodeo » Wed Jan 30, 2019 2:07 pm

It's possible the source audio track doesn't contain any DRC hints.

philhemel
Posts: 5
Joined: Wed Jan 30, 2019 10:01 am

Re: DRC Audio Compression being ignored

Post by philhemel » Wed Jan 30, 2019 2:23 pm

Will it not do ANY compression at all if that's the case?
And if so do you know of any way to add missing hints to a file?

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

Re: DRC Audio Compression being ignored

Post by Woodstock » Wed Jan 30, 2019 4:36 pm

Hints would be created during the initial authoring of the disk, during the compression of the raw audio source. Since you don't have the raw audio, it would be rather difficult to create the hints.

philhemel
Posts: 5
Joined: Wed Jan 30, 2019 10:01 am

Re: DRC Audio Compression being ignored

Post by philhemel » Wed Jan 30, 2019 4:50 pm

Handbrake documentation suggests it SHOULD work without Hints though, and it should only use Hints with a value of 1.0:
On the Audio tab, each track provides an option to set the level of compression you wish.
•1.0-2.5 are good values to use.
•0, the default, turns it off completely.
•1.0 uses the compression hints embedded in the AC3 track.
Values greater than 1.0 compress the range further by boosting the volume of soft sound samples while leaving loud samples as they are. This squeezes down the range between the softest and loudest parts, but should make the softer ones easier to hear in noisy listening environments.

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

Re: DRC Audio Compression being ignored

Post by Woodstock » Wed Jan 30, 2019 5:20 pm

1.0 uses the hints that are in the track, higher levels INCREASE the value of the hint. No hint, no increase.

philhemel
Posts: 5
Joined: Wed Jan 30, 2019 10:01 am

Re: DRC Audio Compression being ignored

Post by philhemel » Wed Jan 30, 2019 5:41 pm

Ah ok that's disappointing. Every piece of software I've ever used that compresses audio has the ability to scan the file to assess levels instead of relying on metadata. Sounds like Handbrake is rather restricted and primitive in this respect :( Thanks for the quick replies though

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

Re: DRC Audio Compression being ignored

Post by mduell » Thu Jan 31, 2019 12:47 am

Yes, HB is not a sophisticated audio measuring/editing/leveling application.

On the video side it also doesn't do editing, scope, color grading, etc.

HB is a transcoder.

Post Reply