View Single Post
Old 21st December 2018, 15:59   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
extract dvb subtitles as dvd subtitles from mkv in one go?

I have an mkv file created by VideoReDo.
Since there is no raw format for dvb subtiles I'd like to extract those subtitles as dvd/vobsub subtitles (idx/sub).

I can do this by:
1st covnerting the subtitles to vobsub subtitles:
Code:
ffmpeg -canvas_size 1280x720 -i "C:\Users\Selur\Desktop\Beispiel_DVB_SUBS.mkv" -c:v copy -c:a copy -c:s dvdsub e:\Output\test.mkv
2nd extract those subtitles using mkvextract
Code:
mkvextract tracks "E:\Output\test.mkv" 2:"E:\Output\test_id_2_lang_de.idx"
to avoid having to create the temporary mkv file I'd like to convert and extract the dvb subtitles in one go to idx/sub, but so far I can't figure out how to do this with ffmpeg.
(I know I could use '-vn -an' instead of '-c:v copy -c:a copy' to only have the subtitle inside the temporary mkv, to keep it's size small.)

-> Does anyone know how to do this? (preferably with ffmpeg)

...
edit:
Seems like ffmpeg can't extract idx/sub subtitles, so my current way seems to be the only working way.

Cu Selur
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 21st December 2018 at 19:05.
Selur is offline   Reply With Quote