Missing video & audio bit rate info in output file on MediaInfo

HandBrake for Mac 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
carrotferret
Posts: 14
Joined: Sat Apr 10, 2021 5:30 am

Missing video & audio bit rate info in output file on MediaInfo

Post by carrotferret »

Description of problem or question:

I wanted to create a smaller 1080p x264 mkv from an interlaced source, keeping the original DTS-HD MA audio track, and adding 2nd AC-3 5.1 audio track encoded from the original track.

I encoded a 1080i 25.00 fps PAL MBAFF Interlaced Blu-ray Remux file to a 1080p AVC x264 mkv.

After HandBrake completed, I noticed MediaInfo doesn't display a few info, particularly the bit rates.

MediaInfo doesn't show:
- bit rate and bit rate mode for the video stream,
- bit rate for DTS-HD MA 5.1 passthrough as the first audio stream, and
- bit rate for PGS English text.

It does show:
- overall bit rate for the whole mkv file
- overall bit rate mode for whole mkv file
- the bit rate of 2nd audio stream AC-3 5.1 640 kbps encoded from the original DTS-MA 5.1

I'm assuming MediaInfo is correct that those info is missing.


Steps to reproduce the problem (If Applicable):

Settings I used were the default HQ 1080p30, frame rate: same as source, frame rate: constant, 1st audio stream: DTS-HD MA passthrough, 2nd audio stream: same track encode to AC-3 5.1.


HandBrake version (e.g., 1.0.0):

Version 1.3.3


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

macOS Mojave


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

Code: Select all

HandBrake Activity Log for Session: 2021-04-26T20:31:47Z
Handbrake Version: 1.3.3 (2020061300)
Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
Preset: HQ 1080p30 Surround (Modified)
[04:31:47] macgui: QueueCore scanning specifically for title: 1
[04:31:47] CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
[04:31:47]  - Intel microarchitecture Skylake
[04:31:47]  - logical processor count: 8
[04:31:47] hb_scan: path=/Volumes/Samsung T5//Movies/Stage Beauty (2004)/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/Samsung T5//Movies/Stage Beauty (2004)/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/Volumes/Samsung T5//Movies/Stage Beauty (2004)/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv/) failed
[04:31:47] 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
[04:31:47] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Volumes/Samsung T5//Movies/Stage Beauty (2004)/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv':
  Metadata:
    title           : Stage Beauty (2004)
    encoder         : libebml v1.3.10 + libmatroska v1.5.2
    creation_time   : 2020-05-26T12:42:35.000000Z
  Duration: 01:45:25.69, start: 0.000000, bitrate: 32936 kb/s
    Chapter #0:0: start 0.000000, end 516.760000
    Metadata:
      title           : Mr. Kynaston
    Chapter #0:1: start 516.760000, end 1033.240000
    Metadata:
      title           : Are You A Gentleman?
    Chapter #0:2: start 1033.240000, end 1661.000000
    Metadata:
      title           : Man In Woman's Form
    Chapter #0:3: start 1661.000000, end 2037.080000
    Metadata:
      title           : Mrs. Margaret Hughes
    Chapter #0:4: start 2037.080000, end 2839.000000
    Metadata:
      title           : Women On Stage
    Chapter #0:5: start 2839.000000, end 3185.600000
    Metadata:
      title           : Ambush
    Chapter #0:6: start 3185.600000, end 3720.080000
    Metadata:
      title           : Gang Of Critics
    Chapter #0:7: start 3720.080000, end 4317.880000
    Metadata:
      title           : I Want To Act
    Chapter #0:8: start 4317.880000, end 4674.200000
    Metadata:
      title           : Men Aren't Beautiful
    Chapter #0:9: start 4674.200000, end 5118.960000
    Metadata:
      title           : A Woman Would Fight
    Chapter #0:10: start 5118.960000, end 5576.040000
    Metadata:
      title           : Tutoring Maria
    Chapter #0:11: start 5576.040000, end 6325.686000
    Metadata:
      title           : Triumphant Return
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      BPS-eng         : 30816182
      DURATION-eng    : 01:45:25.680000000
      NUMBER_OF_FRAMES-eng: 158142
      NUMBER_OF_BYTES-eng: 24366663779
      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-26 12:42:35
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
    Metadata:
      BPS-eng         : 2064577
      DURATION-eng    : 01:45:25.686000000
      NUMBER_OF_FRAMES-eng: 593033
      NUMBER_OF_BYTES-eng: 1632483884
      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-26 12:42:35
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : SDH
      BPS-eng         : 54032
      DURATION-eng    : 01:40:14.240000000
      NUMBER_OF_FRAMES-eng: 3044
      NUMBER_OF_BYTES-eng: 40620734
      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 ('No Deeper Escape') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-26 12:42:35
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[04:31:47] scan: decoding previews for title 1
[04:31:47] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[04:31:48] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/2/0, aspect 16:9, PAR 1:1
[04:31:48] libhb: scan thread found 1 valid title(s)
[04:31:48] macgui: QueueCore scan done
[04:31:48] macgui: QueueCore started encoding Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
[04:31:48] Starting work at: Tue Apr 27 04:31:48 2021

[04:31:48] macgui: QueueCore with preset HQ 1080p30 Surround (Modified)
[04:31:48] 1 job(s) to process
[04:31:48] Starting Task: Subtitle Scan
[04:31:48] job configuration:
[04:31:48]  * source
[04:31:48]    + /Volumes/Samsung T5//Movies/Stage Beauty (2004)/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
[04:31:48]    + title 1, chapter(s) 1 to 12
[04:31:48]    + container: matroska,webm
[04:31:48]    + data rate: 32936 kbps
[04:31:48]  * destination
[04:31:48]    + /Volumes/Samsung T5/HandBrake/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
[04:31:48]    + container: Matroska (libavformat)
[04:31:48]      + chapter markers
[04:31:48]  * video track
[04:31:48]    + decoder: h264
[04:31:48]    + filters
[04:31:48]      + 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)
[04:31:48]      + Decomb (mode=39)
[04:31:48]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[04:31:48]        + frame rate: 25.000 fps -> constant 25.000 fps
[04:31:48]      + Crop and Scale (width=1918:height=1080:crop-top=0:crop-bottom=0:crop-left=2:crop-right=0)
[04:31:48]        + source: 1920 * 1080, crop (0/0/2/0): 1918 * 1080, scale: 1918 * 1080
[04:31:48]    + Output geometry
[04:31:48]      + storage dimensions: 1918 x 1080
[04:31:48]      + pixel aspect ratio: 1 : 1
[04:31:48]      + display dimensions: 1918 x 1080
[04:31:48]  * Foreign Audio Search: Render/Burn-in, Forced Only
[04:31:48]    + subtitle, English [PGS] (track 0, id 0x2, Picture)
[04:31:48] sync: expecting 158142 video frames
[04:32:36] reader: done. 1 scr changes
[04:32:36] work: average encoding speed for job is 0.000000 fps
[04:32:36] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[04:32:36] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[04:32:36] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[04:32:36] vfr: lost time: 0 (0 frames)
[04:32:36] vfr: gained time: 0 (0 frames) (0 not accounted for)
[04:32:36] h264-decoder done: 0 frames, 0 decoder errors
[04:32:36] sync: got 0 frames, 158142 expected
[04:32:36] Subtitle track 0 (id 0x2) 'English [PGS]': 1522 hits (0 forced)
[04:32:36] No candidate detected during subtitle scan
[04:32:36] Starting Task: Encoding Pass
[04:32:36] job configuration:
[04:32:36]  * source
[04:32:36]    + /Volumes/Samsung T5//Movies/Stage Beauty (2004)/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
[04:32:36]    + title 1, chapter(s) 1 to 12
[04:32:36]    + container: matroska,webm
[04:32:36]    + data rate: 32936 kbps
[04:32:36]  * destination
[04:32:36]    + /Volumes/Samsung T5/HandBrake/Stage.Beauty.2004.1080i.BluRay.Remux.AVC.DTS-HD.MA.5.1.mkv
[04:32:36]    + container: Matroska (libavformat)
[04:32:36]      + chapter markers
[04:32:36]  * video track
[04:32:36]    + decoder: h264
[04:32:36]    + filters
[04:32:36]      + 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)
[04:32:36]      + Decomb (mode=39)
[04:32:36]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[04:32:36]        + frame rate: 25.000 fps -> constant 25.000 fps
[04:32:36]      + Crop and Scale (width=1918:height=1080:crop-top=0:crop-bottom=0:crop-left=2:crop-right=0)
[04:32:36]        + source: 1920 * 1080, crop (0/0/2/0): 1918 * 1080, scale: 1918 * 1080
[04:32:36]    + Output geometry
[04:32:36]      + storage dimensions: 1918 x 1080
[04:32:36]      + pixel aspect ratio: 1 : 1
[04:32:36]      + display dimensions: 1918 x 1080
[04:32:36]    + encoder: H.264 (libx264)
[04:32:36]      + preset:  slow
[04:32:36]      + profile: high
[04:32:36]      + level:   4.0
[04:32:36]      + quality: 20.00 (RF)
[04:32:36]      + color profile: 1-1-1
[04:32:36]  * subtitle track 1, English [PGS] (track 0, id 0x2, Picture) -> Passthrough
[04:32:36]    + name: SDH
[04:32:36]  * audio track 1
[04:32:36]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[04:32:36]      + samplerate: 48000 Hz
[04:32:36]    + DTS-HD Passthru
[04:32:36]  * audio track 2
[04:32:36]    + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[04:32:36]      + samplerate: 48000 Hz
[04:32:36]    + mixdown: 5.1 Channels
[04:32:36]    + dither: triangular
[04:32:36]    + encoder: AC3 (libavcodec)
[04:32:36]      + bitrate: 640 kbps, samplerate: 48000 Hz
[04:32:36] sync: expecting 158142 video frames
[04:32:36] encx264: encoding at constant RF 20.000000
[04:32:36] encx264: unparsed options: level=4.0:ref=4:direct=auto:subme=8:trellis=2:vbv-bufsize=31250:vbv-maxrate=25000: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 High, level 4.0, 4:2:0, 8-bit
[04:32:36] sync: first pts video is 0
[04:32:36] sync: "Mr. Kynaston" (1) at frame 1 time 0
[04:32:36] sync: first pts audio 0x1 is 0
[04:32:36] sync: first pts audio 0x1 is 0
[04:35:33] sync: first pts subtitle 0x2 is 7984800
[05:00:45] sync: "Are You A Gentleman?" (2) at frame 12920 time 46508400
[05:24:56] sync: "Man In Woman's Form" (3) at frame 25832 time 92991600
[06:03:09] sync: "Mrs. Margaret Hughes" (4) at frame 41526 time 149490000
[06:21:14] sync: "Women On Stage" (5) at frame 50928 time 183337200
[07:05:26] sync: "Ambush" (6) at frame 70976 time 255510000
[07:22:24] sync: "Gang Of Critics" (7) at frame 79641 time 286704000
[07:50:12] sync: "I Want To Act" (8) at frame 93003 time 334807200
[08:19:08] sync: "Men Aren't Beautiful" (9) at frame 107948 time 388609200
[08:36:56] sync: "A Woman Would Fight" (10) at frame 116857 time 420681600
[08:58:53] sync: "Tutoring Maria" (11) at frame 127975 time 460706400
[09:23:01] sync: "Triumphant Return" (12) at frame 139402 time 501843600
[10:03:16] reader: done. 1 scr changes
[10:03:19] work: average encoding speed for job is 7.968092 fps
[10:03:19] comb detect: heavy 90 | light 772 | uncombed 157280 | total 158142
[10:03:19] decomb: deinterlaced 90 | blended 772 | unfiltered 157280 | total 158142
[10:03:19] vfr: 158142 frames output, 0 dropped and 0 duped for CFR/PFR
[10:03:19] vfr: lost time: 0 (0 frames)
[10:03:19] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:03:19] dca-decoder done: 593033 frames, 0 decoder errors
[10:03:19] dca-decoder done: 593033 frames, 0 decoder errors
[10:03:19] h264-decoder done: 158142 frames, 0 decoder errors
[10:03:19] sync: got 158142 frames, 158142 expected
[10:03:19] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:2404  Avg QP:18.34  size:187861
x264 [info]: frame P:61827 Avg QP:21.29  size: 91040
x264 [info]: frame B:93911 Avg QP:22.11  size: 55621
x264 [info]: consecutive B-frames: 20.3%  0.8%  1.9% 76.9%
x264 [info]: mb I  I16..4:  2.1% 95.2%  2.7%
x264 [info]: mb P  I16..4:  0.4%  7.9%  0.2%  P16..4: 51.3% 27.7%  9.1%  0.0%  0.0%    skip: 3.4%
x264 [info]: mb B  I16..4:  0.0%  1.2%  0.0%  B16..8: 61.7% 12.2%  2.2%  direct: 8.5%  skip:14.1%  L0:49.9% L1:45.7% BI: 4.4%
x264 [info]: 8x8 transform intra:93.8% inter:76.5%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 93.3% 75.2% 20.0% inter: 61.5% 48.5% 0.2%
x264 [info]: i16 v,h,dc,p: 52% 17% 13% 17%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9%  5%  9% 11% 16% 14% 13% 11% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10%  5%  4% 11% 16% 16% 14% 12% 12%
x264 [info]: i8c dc,h,v,p: 40% 26% 20% 14%
x264 [info]: Weighted P-Frames: Y:2.7% UV:1.1%
x264 [info]: ref P L0: 47.7% 11.3% 26.0% 11.3%  3.7%  0.1%
x264 [info]: ref B L0: 82.3% 13.7%  4.0%
x264 [info]: ref B L1: 93.4%  6.6%
x264 [info]: kb/s:14295.78
[10:03:19] mux: track 0, 158142 frames, 11303727389 bytes, 14295.58 kbps, fifo 512
[10:03:19] mux: track 1, 593033 frames, 1632483884 bytes, 2064.57 kbps, fifo 2048
[10:03:19] mux: track 2, 197677 frames, 506053120 bytes, 639.99 kbps, fifo 1024
[10:03:19] mux: track 3, 3044 frames, 40620734 bytes, 51.37 kbps, fifo 16
[10:03:19] Finished work at: Tue Apr 27 10:03:19 2021

[10:03:19] libhb: work result = 0

rollin_eng
Veteran User
Posts: 4840
Joined: Wed May 04, 2011 11:06 pm

Re: Missing video & audio bit rate info in output file on MediaInfo

Post by rollin_eng »

carrotferret
Posts: 14
Joined: Sat Apr 10, 2021 5:30 am

Re: Missing video & audio bit rate info in output file on MediaInfo

Post by carrotferret »

Thanks for the link; it suggests to change views, which I did. I often use the different full tree & text views to see the entire read-out, however, it still doesn't show the output file's individual bit rates.

Would be nice to see the individual video & audio track bit rates. Oh well, it's not that important in this case of encode as it does show the overall bit rate for the file. So, I can more or less guess how much the video & audio track bit rates are, as I have the remux file showing original video & audio bit rates viewable in MediaInfo.
User avatar
Ritsuka
HandBrake Team
Posts: 1650
Joined: Fri Jan 12, 2007 11:29 am

Re: Missing video & audio bit rate info in output file on MediaInfo

Post by Ritsuka »

The linked thread says that HandBrake doesn't write the optional bitrate metadata. There are no plan to adds them, so unless FFmpeg MKV muxer starts to add them automatically or someone sends a patch to do so, it won't added any time soon.
Deleted User 11865

Re: Missing video & audio bit rate info in output file on MediaInfo

Post by Deleted User 11865 »

Just remux HandBrake's output with Mkvtoolnix and you'll get the data anyway ;-)
carrotferret
Posts: 14
Joined: Sat Apr 10, 2021 5:30 am

Re: Missing video & audio bit rate info in output file on MediaInfo

Post by carrotferret »

Ritsuka wrote: Tue Apr 27, 2021 7:26 pm The linked thread says that HandBrake doesn't write the optional bitrate metadata. There are no plan to adds them, so unless FFmpeg MKV muxer starts to add them automatically or someone sends a patch to do so, it won't added any time soon.
Oooooh..... I'm sorry; I did read the link further down but didn't understand it, and thought it was a suggestion just for changing MediaInfo views.

Since this is only my 2nd encode with HandBrake, I had to go away and read up more about HandBrake because I didn't understand what's FFpmeg and how it fits into this problem.
Rodeo wrote: Tue Apr 27, 2021 10:41 pm Just remux HandBrake's output with Mkvtoolnix and you'll get the data anyway ;-)
Sorry again, noobie here, lol. Are you saying, remux the video section of HandBrake's mkv output file, with audio streams extracted from the original source file using MKVtoolnix?

Also, is this the best / most efficient way to do this in the future as well:
- only encode the video portion of the source with HandBrake, so I'll get a no audio mkv output file
- extract the audio portion from source file with MKVtoolnix
- then, remux them using MKVtoolnix
Post Reply