Converting mkv to m4v loses subtitles

Discussion of the HandBrake command line interface (CLI)
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
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Converting mkv to m4v loses subtitles

Post 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
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: Converting mkv to m4v loses subtitles

Post 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)
Last edited by AlBundy on Mon Nov 11, 2013 6:53 pm, edited 1 time in total.
GregiBoy
Veteran User
Posts: 908
Joined: Sat Feb 12, 2011 9:23 pm

Re: Converting mkv to m4v loses subtitles

Post 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
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: Converting mkv to m4v loses subtitles

Post 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
Deleted User 11865

Re: Converting mkv to m4v loses subtitles

Post by Deleted User 11865 »

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.
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: Converting mkv to m4v loses subtitles

Post 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
GregiBoy
Veteran User
Posts: 908
Joined: Sat Feb 12, 2011 9:23 pm

Re: Converting mkv to m4v loses subtitles

Post 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
AlBundy
Bright Spark User
Posts: 377
Joined: Mon Dec 31, 2012 4:47 am

Re: Converting mkv to m4v loses subtitles

Post 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
Deleted User 11865

Re: Converting mkv to m4v loses subtitles

Post by Deleted User 11865 »

BDSup2Sub can convert PGS subtitles (among others, including 108p -> 720p or SD) and the command-line version can be automated.
Post Reply