not able to bur in mkv pls subtitle when convert to mp4

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
yl77991
Posts: 3
Joined: Sun Nov 06, 2022 6:14 am

not able to bur in mkv pls subtitle when convert to mp4

Post by yl77991 »

Description of problem or question:
I understand handbrake can read blue ray directly and save to mp4 and burn in selected pgs subtitle
But I havesome blue ray disks that I use makemkv to create mkv files already with pgs subtitle tracks.
May I know if I can use handbrake to convert them to mp4 with burn in one of the selected subtitle ?
I tried but seems not working.

Steps to reproduce the problem (If Applicable):




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



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

00:31:20] 1 job(s) to process
[00:31:20] Starting Task: Encoding Pass
[00:31:20] job configuration:
[00:31:20]  * source
[00:31:20]    + /Users/yylai/Movies/Test.mkv
[00:31:20]    + title 1, chapter(s) 1 to 4
[00:31:20]    + container: matroska,webm
[00:31:20]    + data rate: 21681 kbps
[00:31:20]  * destination
[00:31:20]    + /Users/yylai/Movies/Test.mp4
[00:31:20]    + container: MPEG-4 (libavformat)
[00:31:20]      + align initial A/V stream timestamps
[00:31:20]      + chapter markers
[00:31:20]  * video track
[00:31:20]    + decoder: h264 8-bit (yuv420p)
[00:31:20]    + filters
[00:31:20]      + 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)
[00:31:20]      + Decomb (mode=39)
[00:31:20]      + Framerate Shaper (mode=2:rate=27000000/900000)
[00:31:20]        + frame rate: 24.000 fps -> peak rate limited to 30.000 fps
[00:31:20]      + Subtitle renderer ()
[00:31:20]      + Crop and Scale (width=1920:height=804:crop-top=138:crop-bottom=138:crop-left=0:crop-right=0)
[00:31:20]        + source: 1920 * 1080, crop (138/138/0/0): 1920 * 804, scale: 1920 * 804
[00:31:20]    + Output geometry
[00:31:20]      + storage dimensions: 1920 x 804
[00:31:20]      + pixel aspect ratio: 1 : 1
[00:31:20]      + display dimensions: 1920 x 804
[00:31:20]    + encoder: H.264 (libx264)
[00:31:20]      + preset:  fast
[00:31:20]      + profile: main
[00:31:20]      + level:   4.0
[00:31:20]      + quality: 22.00 (RF)
[00:31:20]      + color profile: 1-1-1
[00:31:20]      + chroma location: left
[00:31:20]  * subtitle track 1, 中文 [PGS] (track 4, id 0x9, Picture) -> Render/Burn-in
[00:31:20]  * audio track 1
[00:31:20]    + decoder: English (AC3) (2.0 ch) (224 kbps) (track 1, id 0x1)
[00:31:20]      + bitrate: 224 kbps, samplerate: 48000 Hz
[00:31:20]    + mixdown: Stereo
[00:31:20]    + encoder: AAC (Apple AudioToolbox)
[00:31:20]      + bitrate: 160 kbps, samplerate: 48000 Hz
[00:31:20] sync: expecting 185830 video frames
[00:31:20] encx264: min-keyint: 24, keyint: 240
[00:31:20] encx264: encoding at constant RF 22.000000
[00:31:20] 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: ARMv8 NEON
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[00:31:20] sync: first pts video is 0
[00:31:20] sync: "Chapter 1" (1) at frame 1 time 0
[00:31:20] sync: first pts audio 0x1 is 0
[00:31:26] sync: first pts subtitle 0x9 is 2238750
[00:43:38] sync: "Chapter 2" (2) at frame 49027 time 183847500
[00:54:09] sync: "Chapter 3" (3) at frame 91409 time 342780000
[01:05:48] sync: "Chapter 4" (4) at frame 133201 time 499500000
[01:17:27] reader: done. 1 scr changes
[01:17:28] work: average encoding speed for job is 67.108658 fps
[01:17:28] comb detect: heavy 2920 | light 5994 | uncombed 176917 | total 185831
[01:17:28] decomb: deinterlaced 2920 | blended 5994 | unfiltered 176917 | total 185831
[01:17:28] vfr: 185831 frames output, 0 dropped and 0 duped for CFR/PFR
[01:17:28] vfr: lost time: 0 (0 frames)
[01:17:28] vfr: gained time: 0 (0 frames) (0 not accounted for)
[01:17:28] ac3-decoder done: 241967 frames, 0 decoder errors
[01:17:28] h264-decoder done: 185831 frames, 0 decoder errors
[01:17:28] sync: got 185831 frames, 185830 expected
[01:17:28] sync: framerate min 24.000 fps, max 24.000 fps, avg 24.000 fps
x264 [info]: frame I:4086  Avg QP:17.21  size: 54059
x264 [info]: frame P:68515 Avg QP:20.71  size: 17594
x264 [info]: frame B:113230 Avg QP:21.18  size:  8280
x264 [info]: consecutive B-frames: 16.7%  3.6%  7.9% 71.8%
x264 [info]: mb I  I16..4: 54.9%  0.0% 45.1%
x264 [info]: mb P  I16..4: 17.1%  0.0%  5.1%  P16..4: 30.8%  7.1%  4.5%  0.0%  0.0%    skip:35.5%
x264 [info]: mb B  I16..4:  7.7%  0.0%  0.6%  B16..8: 24.0%  4.3%  0.2%  direct:11.4%  skip:51.8%  L0:47.3% L1:48.3% BI: 4.5%
x264 [info]: coded y,uvDC,uvAC intra: 19.8% 51.4% 10.5% inter: 6.5% 20.2% 0.5%
x264 [info]: i16 v,h,dc,p: 42% 26% 13% 19%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 21% 27%  4%  6%  5%  6%  4%  3%
x264 [info]: i8c dc,h,v,p: 57% 18% 21%  4%
x264 [info]: Weighted P-Frames: Y:2.6% UV:2.0%
x264 [info]: ref P L0: 67.0% 33.0%
x264 [info]: ref B L0: 81.9% 18.1%
x264 [info]: ref B L1: 95.1%  4.9%
x264 [info]: kb/s:2442.28
[01:17:28] mux: track 0, 185831 frames, 2363696592 bytes, 2442.15 kbps, fifo 8192
[01:17:28] mux: track 1, 362953 frames, 156367571 bytes, 161.56 kbps, fifo 16384
[01:17:28] Finished work at: Mon Nov  7 01:17:28 2022

[01:17:28] libhb: work result = 0

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

Re: not able to bur in mkv pls subtitle when convert to mp4

Post by Woodstock »

Generally speaking, when you select a PGS subtitle with an MP4 output format, it will automatically select "burn in" for the track. If you have more than one subtitle, you can select which one to use, but not "all" of them (only one can be burned in).

Your sample shows subtitle track 1 being burned in:

Code: Select all

subtitle track 1, 中文 [PGS] (track 4, id 0x9, Picture) -> Render/Burn-in
yl77991
Posts: 3
Joined: Sun Nov 06, 2022 6:14 am

Re: not able to bur in mkv pls subtitle when convert to mp4

Post by yl77991 »

yes Woodstock. But when I play back the mp4. The subtitle doesn't show up. I don't know why.
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: not able to bur in mkv pls subtitle when convert to mp4

Post by Woodstock »

It's possible that it's being cropped off. Usually, handbrake resizes the subtitle to match the screen size. You are going from a 1080 pixel high picture to an 804 pixel high display, so the subtitle should be fit into the 804 pixel window.

If you tell handbrake to NOT crop off the black bars, do the subtitles appear?
yl77991
Posts: 3
Joined: Sun Nov 06, 2022 6:14 am

Re: not able to bur in mkv pls subtitle when convert to mp4

Post by yl77991 »

Bingo. It works. Million Thanks Woodstock.
I didn't realise the cropping, just take the default .....
Thanks
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: not able to bur in mkv pls subtitle when convert to mp4

Post by Woodstock »

I normally take the default, too, but I'm not burning in the subtitles. The player (normally) makes the adjustment.
Post Reply