Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th June 2020, 19:19   #1  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
MP4s and forced subtitles

Hey ho,

so I've found my way to add forced subtitles into mp4 containers... but it's pretty insane.
So my source is an MKV with an MPEG-2 video and idx/sub subtitles.

So what I have to do now is:
1) Remux the MKV to MP4 with ffmpeg like this:
Code:
ffmpeg.exe" -i "input.mkv" -map 0 -c copy "output.mp4"
2) Extract the idx/sub subtitle files from the MKV using MkvExtractGUI

3) Convert the subs to srt (as only for srts the next step will work) using Subtitle Edit.

4) Add the srt using mp4box with this line:
Code:
mp4box.exe" -add "input.mp4" -add "subs.srt":txtflags=0xC0000000:lang=eng:name=Forced -new output.mp4
And NOW I got a file with autoplaying forced subs.
At least VLC will play it and MediaInfo will detect the subtitles as forced.
Just... the way back (MP4 to MKV) is a bit blocked now as ffmpeg won't like that new track and will complain with:
Quote:
Subtitle codec 94213 is not supported.
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented

Btw... people keep mentioning this as a way to mark a subtitle track as forced... but it did nothing for me:
Code:
ffmpeg -i in.mkv -c copy -disposition:s:0 forced out.mp4
VLC was unimpressed, MediaInfo said "Forced: No".


Is there no easier way?

Last edited by katzenjoghurt; 27th June 2020 at 19:24.
katzenjoghurt is offline   Reply With Quote
Old 25th July 2022, 11:35   #2  |  Link
Esikhoob
Registered User
 
Join Date: Oct 2006
Posts: 5
This is bug in FFMPEG:
https://trac.ffmpeg.org/ticket/9018
Esikhoob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.