Audio Bits Per Sample too high

Discuss encoding for devices and presets.
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
DJ_SC_PA_DC
Posts: 3
Joined: Thu May 21, 2020 4:26 am

Audio Bits Per Sample too high

Post by DJ_SC_PA_DC »

Description of problem or question:

Hi. I'm ripping to MKV so I can use FLAC as the audio quality in the container. No matter what I do, when I play back the file in VLC and look at the codec info it's telling me it's 32 bits per sample. I have it set to 16 bits per sample - I'm not trying to upconvert from 16 bit.

Obviously this is making the files unnecessarily twice as large. What am I missing?

Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.2.2):




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




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

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.
If you are unable to do so, please state why so we can help you.
DJ_SC_PA_DC
Posts: 3
Joined: Thu May 21, 2020 4:26 am

Re: Audio Bits Per Sample too high

Post by DJ_SC_PA_DC »

activity log:

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: AMD FX(tm)-6100 Six-Core Processor             
Ram: 8093 MB, 
GPU Information:
  NVIDIA GeForce 210  - 21.21.13.4201
Screen: 1600x900
Temp Dir: C:\Users\Neidermeyer\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Neidermeyer\AppData\Roaming\HandBrake

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


# Starting Encode ...

[23:22:51] hb_init: starting libhb thread
[23:22:51] 1 job(s) to process
[23:22:51] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": -1,
        "DRC": 0.0,
        "Encoder": "flac16",
        "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"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\Neidermeyer\\Videos\\Handbrake output\\Ocean City MD jam session.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "8",
          "crop-right": "10",
          "crop-top": "0",
          "height": "480",
          "width": "720"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 13,
    "Den": 15
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 13,
      "End": 13
    },
    "Title": 3,
    "Path": "D:\\"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "medium",
    "Profile": "main",
    "Quality": 21.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[23:22:51] CPU:
[23:22:51]  - logical processor count: 6
[23:22:51] Intel Quick Sync Video support: no
[23:22:51] hb_scan: path=D:\, title_index=3
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
[23:22:51] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdnav: Unable to open device file D:\.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000128
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000176
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00017ba1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00018ba4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00018bdd
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00018c85
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00018cbe
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
[23:22:52] scan: DVD has 3 title(s)
[23:22:52] scan: scanning title 3
[23:22:52] scan: opening IFO for VTS 3
[23:22:52] scan: duration is 00:56:49 (3409400 ms)
[23:22:52] pgc_id: 1, pgn: 1: pgc: 00000000373F0C20
[23:22:52] scan: vts=3, ttn=1, cells=0->12, blocks=0->1707954, 1707955 blocks
[23:22:52] scan: checking audio 1
[23:22:52] scan: id=0xa0bd, lang=English (LPCM), 3cc=eng ext=0
[23:22:52] scan: title 3 has 13 chapters
[23:22:52] scan: chap 1 c=0->0, b=0->124817 (124818), 249100 ms
[23:22:52] scan: chap 2 c=1->1, b=124818->344139 (219322), 437700 ms
[23:22:52] scan: chap 3 c=2->2, b=344140->472008 (127869), 255200 ms
[23:22:52] scan: chap 4 c=3->3, b=472009->622701 (150693), 300700 ms
[23:22:52] scan: chap 5 c=4->4, b=622702->751330 (128629), 256700 ms
[23:22:52] scan: chap 6 c=5->5, b=751331->861928 (110598), 220700 ms
[23:22:52] scan: chap 7 c=6->6, b=861929->987586 (125658), 250700 ms
[23:22:52] scan: chap 8 c=7->7, b=987587->1134817 (147231), 293900 ms
[23:22:52] scan: chap 9 c=8->8, b=1134818->1271787 (136970), 273300 ms
[23:22:52] scan: chap 10 c=9->9, b=1271788->1483136 (211349), 421700 ms
[23:22:52] scan: chap 11 c=10->10, b=1483137->1584063 (100927), 201400 ms
[23:22:52] scan: chap 12 c=11->11, b=1584064->1707729 (123666), 247700 ms
[23:22:52] scan: chap 13 c=12->12, b=1707730->1707954 (225), 600 ms
[23:22:52] scan: aspect = 4:3
[23:22:52] scan: decoding previews for title 3
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[23:22:52] scan: title angle(s) 1
[23:22:53] scan: audio 0xa0bd: LPCM, rate=48000Hz, bitrate=1536000 English (LPCM) (2.0 ch)
[23:22:54] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/8/10, aspect 4:3, PAR 8:9
[23:22:54] libhb: scan thread found 1 valid title(s)
[23:22:54] starting job
[23:22:54] decomb filter thread started for segment 0
[23:22:54] decomb filter thread started for segment 2
[23:22:54] decomb filter thread started for segment 3
[23:22:54] decomb filter thread started for segment 5
[23:22:54] decomb filter thread started for segment 1
[23:22:54] decomb check thread started for segment 2
[23:22:54] decomb filter thread started for segment 4
[23:22:54] decomb check thread started for segment 0
[23:22:54] decomb check thread started for segment 3
[23:22:54] decomb check thread started for segment 1
[23:22:54] decomb check thread started for segment 4
[23:22:54] decomb check thread started for segment 5
[23:22:54] mask filter thread started for segment 0
[23:22:54] mask filter thread started for segment 1
[23:22:54] mask filter thread started for segment 2
[23:22:54] mask filter thread started for segment 3
[23:22:54] mask filter thread started for segment 4
[23:22:54] mask filter thread started for segment 5
[23:22:54] mask erode thread started for segment 0
[23:22:54] mask erode thread started for segment 1
[23:22:54] mask erode thread started for segment 2
[23:22:54] mask erode thread started for segment 3
[23:22:54] mask erode thread started for segment 4
[23:22:54] mask erode thread started for segment 5
[23:22:54] mask dilate thread started for segment 1
[23:22:54] mask dilate thread started for segment 0
[23:22:54] mask dilate thread started for segment 2
[23:22:54] mask dilate thread started for segment 3
[23:22:54] mask dilate thread started for segment 4
[23:22:54] mask dilate thread started for segment 5
[23:22:54] yadif thread started for segment 0
[23:22:54] yadif thread started for segment 1
[23:22:54] yadif thread started for segment 2
[23:22:54] yadif thread started for segment 3
[23:22:54] yadif thread started for segment 4
[23:22:54] yadif thread started for segment 5
[23:22:54] work: compression level not specified, track 1 setting compression level 5.00
[23:22:54] work: only 1 chapter, disabling chapter markers
[23:22:54] job configuration:
[23:22:54]  * source
[23:22:54]    + D:\
[23:22:54]    + title 3, chapter(s) 13 to 13
[23:22:54]  * destination
[23:22:54]    + C:\Users\Neidermeyer\Videos\Handbrake output\Ocean City MD jam session.mkv
[23:22:54]    + container: Matroska (libavformat)
[23:22:54]  * video track
[23:22:54]    + decoder: mpeg2video
[23:22:54]      + bitrate 200 kbps
[23:22:54]    + filters
[23:22:54]      + 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)
[23:22:54]      + Decomb (mode=39)
[23:22:54]      + Framerate Shaper (mode=2:rate=27000000/900000)
[23:22:54]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[23:22:54]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=8:crop-right=10)
[23:22:54]        + source: 720 * 480, crop (0/0/8/10): 702 * 480, scale: 720 * 480
[23:22:54]    + Output geometry
[23:22:54]      + storage dimensions: 720 x 480
[23:22:54]      + pixel aspect ratio: 13 : 15
[23:22:54]      + display dimensions: 624 x 480
[23:22:54]    + encoder: H.264 (libx264)
[23:22:54]      + preset:  medium
[23:22:54]      + profile: main
[23:22:54]      + level:   3.1
[23:22:54]      + quality: 21.00 (RF)
[23:22:54]      + color profile: 6-1-6
[23:22:54]  * audio track 1
[23:22:54]    + decoder: English (LPCM) (2.0 ch) (track 1, id 0xa0bd)
[23:22:54]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[23:22:54]    + mixdown: Stereo
[23:22:54]    + dither: none
[23:22:54]    + encoder: FLAC 16-bit (libavcodec)
[23:22:54]      + samplerate: 48000 Hz
[23:22:54]      + compression level: 5.00
libdvdnav: Using dvdnav version 6.0.0
libdvdnav: Unable to open device file D:\.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000128
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000176
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00017ba1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00018ba4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00018bdd
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00018c85
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00018cbe
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[23:22:55] sync: expecting 17 video frames
[23:22:55] encx264: min-keyint: 30, keyint: 300
[23:22:55] encx264: encoding at constant RF 21.000000
[23:22:55] encx264: unparsed options: level=3.1:8x8dct=0:vbv-bufsize=14000:vbv-maxrate=14000
x264 [info]: using SAR=13/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[23:22:55] reader: done. 1 scr changes
[23:22:55] sync: first pts video is 0
[23:22:56] work: average encoding speed for job is 0.000000 fps
[23:22:56] comb detect: heavy 0 | light 0 | uncombed 16 | total 16
[23:22:56] decomb: deinterlaced 0 | blended 0 | unfiltered 16 | total 16
[23:22:56] vfr: 16 frames output, 0 dropped and 0 duped for CFR/PFR
[23:22:56] vfr: lost time: 0 (0 frames)
[23:22:56] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:22:56] mpeg2video-decoder done: 16 frames, 0 decoder errors
[23:22:56] sync: got 16 frames, 17 expected
[23:22:56] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:6     Avg QP:15.65  size:  2290
x264 [info]: frame P:5     Avg QP:16.43  size:   110
x264 [info]: frame B:5     Avg QP:19.00  size:   139
x264 [info]: consecutive B-frames: 37.5% 62.5%  0.0%  0.0%
x264 [info]: mb I  I16..4: 99.9%  0.0%  0.1%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4: 10.2%  0.0%  1.4%  0.0%  0.0%    skip:88.3%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 19.1%  0.0%  0.0%  direct: 0.0%  skip:80.9%  L0:33.5% L1:66.5% BI: 0.0%
x264 [info]: coded y,uvDC,uvAC intra: 15.8% 47.6% 21.4% inter: 0.0% 0.1% 0.0%
x264 [info]: i16 v,h,dc,p: 88%  3%  9%  0%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38%  0% 55%  4%  3%  0%  0%  0%  0%
x264 [info]: i8c dc,h,v,p: 75%  3% 21%  1%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 34.2%  0.0% 65.7%  0.1%
x264 [info]: ref B L0: 65.5% 34.5%
x264 [info]: kb/s:224.60
[23:22:56] mux: track 0, 16 frames, 14944 bytes, 210.76 kbps, fifo 32
[23:22:56] mux: track 1, 1 frames, 0 bytes, 0.00 kbps, fifo 8
[23:22:56] libhb: work result = 0

# Encode Completed ...
Last edited by Anonymous on Thu May 21, 2020 10:14 am, edited 1 time in total.
Reason: Logs in between [code][/code] blocks please
Deleted User 11865

Re: Audio Bits Per Sample too high

Post by Deleted User 11865 »

VLC is probably decoding to 32-bit for all FLAC streams or something (or simply misreporting the bit depth). When you encode to 16-bit FLAC in HandBrake, you get 16-bit FLAC.
DJ_SC_PA_DC
Posts: 3
Joined: Thu May 21, 2020 4:26 am

Re: Audio Bits Per Sample too high

Post by DJ_SC_PA_DC »

That was my only other guess was that VLC is misrepresenting. The funny thing is that VLC does report a DVD Video codec as being 16-bit.

In the meantime, since the original post I remember that the audio is lossy and compressed on a DVD in the first place, so there's no use going to FLAC since that would be upconverting. I've switched to true passthrough for the audio. VLC reporting it as AC3 32-bit.

I guess I'll pass this along to VLC as a possible bug of theirs.
Post Reply