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. |
![]() |
#1 | Link | |
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" 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 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:
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 Is there no easier way? ![]() Last edited by katzenjoghurt; 27th June 2020 at 19:24. |
|
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Oct 2006
Posts: 5
|
This is bug in FFMPEG:
https://trac.ffmpeg.org/ticket/9018 |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|