Page 1 of 1

Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 6:34 pm
by AlBundy
Hi,

I'm trying to convert a bluray to mp4.
Therefore 'Ive ripped my bluray with makemkv and convert it with handbrake and this command:

Code: Select all

"E:/DVD-Rips/tools/handbrake/windows/HandBrakeCLI" --input "C:/Video/myvideo.mkv" --output "E:/myvieo.mkv" --encoder x264 --quality 23.0 --crop 0:0:0:0 --loose-anamorphic --maxHeight 576 --maxWidth 720 --format mkv --markers --title 1 --audio 2,1 --aencoder ffac3,ffac3 --arate auto,auto --mixdown auto,auto --ab 256,256 --drc 0.0,0.0 --aname "Deutsch (5.1 ch)","English (5.1 ch)" --audio-fallback lame --subtitle 2,4,1,3 2>NUL
In this case (mkv to mkv) the subtitles will be preserved.
If I change the outputfile-extension to m4v and the format to mp4 the result is ok but the subtitles are missing.

In encoding log I see only:
Warning: Skipping subtitle track 4, can't have more than one track burnt in
Warning: Skipping subtitle track 1, can't have more than one track burnt in
Warning: Skipping subtitle track 3, can't have more than one track burnt in

and some lines later
subtitle track 1, German (track 4, id 0x4) Picture [PGS] -> Render/Burn-in

but I have not defined to burn in any subtitle.

Al

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 6:45 pm
by AlBundy
Next issue: on the converted mkv the subtitles are to tall - why are they not resized?
--> Tested with VLC (OSX) and MX Player (Android)

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 6:53 pm
by GregiBoy
The MP4 container doesn't support "soft" PGS (BluRay) subs hence the "burn-in" call.

I think the too-tall problem may be caused if you change the resolution, ie: to 72op

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 6:57 pm
by AlBundy
GregiBoy wrote:The MP4 container doesn't support "soft" PGS (BluRay) subs hence the "burn-in" call.

I think the too-tall problem may be caused if you change the resolution, ie: to 72op
Ok, than I have to use the mkv-container.
Is there anything I can do to resize the subs too?
The original file is about ~17GB and the converted file ~1GB.

Al

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 10:24 pm
by Rodeo
HandBrake has no Blu-ray subtitle encoder. It's the player's responsibility to downscale the subs, as it only has to display them after decoding, no re-encoding involved.

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 10:34 pm
by AlBundy
But my two "main" players are not able to downscale the subs. :-(

Do you have another idea who to get the subs to work properly?
Is it possible to extract the pgs subs from mkv, convert them and use add them while converting the mkv to mkv or m4v?

Al

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 11:02 pm
by GregiBoy
Yeah. Go to http://www.opensubtitles.org and download the SRT file which most players can handle.

If you want to extract them, you can use "Subtitle Edit" on the MKV and convert them to SRT but it has to go through an OCR process which can be time consuming and prone to errors.

Then you can remux them back into the MKV if you wish but most players will use the external subs also.

I actually use XBMC for the download process as I have all my titles in a XBMC library

Re: Converting mkv to m4v loses subtitles

Posted: Mon Nov 11, 2013 11:23 pm
by AlBundy
I want to download the conversion in an automated process - therefore I don't want to download additional files.

My current problem is only that VLC and MX Player don't scale the subs probably.
I'm not sure if this is an issue of MakeMKV, Handbrake or VLC and MX Player. r

Al

Re: Converting mkv to m4v loses subtitles

Posted: Tue Nov 12, 2013 2:26 am
by Rodeo
BDSup2Sub can convert PGS subtitles (among others, including 108p -> 720p or SD) and the command-line version can be automated.