1
I want to convert image-based subtitles (dvd_subtitle
) to text-based subtitles (mov_text
). I'm on OS X and would strongly prefer to use a free command-line based tool.
My source data is either a DVD image (.iso/.dmg file containing a VIDEO_TS folder) or an already converted MP4 file containing a vobsub subtitle stream.
I found the promising vobsub2srt and this great article on subtitle conversion, but I can't figure out how to get the .sub/.idx files from my .dmg or .mp4 file.
I've tried various options with ffmpeg
with no success. I also tried googling the topic, but was surprised to find no immediate solutions.
So how do I extract .sub/.idx files from a .dmg/.mp4 file? (Or more generically, how do I generate text-based subtitles from a .dmg/.mp4 file containing image-based subtitles?)
The DVD is a standard DVD image with VIDEO_TS file. The mp4 file looks like this:
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/bt709), 700x572 [SAR 16:15 DAR 560:429], 898 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 159 kb/s (default)
Stream #0:2(eng): Subtitle: dvd_subtitle (mp4s / 0x7334706D), 720x576, 5 kb/s (default)
I've never seen a MP4 file with SRT subtitles. Please show some information about your input and your
ffmpeg
build so we know what you're working with. The complete output offfmpeg -i input
will be helpful. – llogan – 2015-01-07T18:37:14.717Original question rephrased. – forthrin – 2015-01-08T06:56:33.880
Your
ffmpeg
output is still missing. – llogan – 2015-01-08T07:30:27.407Can't see what extra relevant information this provides, but added anyway. – forthrin – 2015-01-08T16:54:50.380