2

How can I change the subtitle format of a movie to .srt for example?

I have any movie (sound, video and an embedded subtitle). I just want to change the subtitles to .srt while leaving everything else the same. If there is a better way to do that than with ffmpeg, then I'd be fine with that too.

Current state

audio codec: x, video codec: y, subtitle format: z

Desired state

audio codec: x, video codec: y, subtitle format: .srt

3
+50

FFmpeg has a SubRip encoder, so

ffmpeg -i input.mkv -c copy -c:s srt out.mkv
|improve this answer|||||
  • Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height. Any idea why this is happening? – user2765654 Jun 27 '16 at 16:36
  • Share the full console output. – Gyan Jun 27 '16 at 16:38
  • Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> subrip (srt)) Error while opening encoder for output stream #0:2 - maybe incorrect parameters such as bit_rate, rate, width or height – user2765654 Jun 27 '16 at 18:29
  • See here. – Gyan Jun 27 '16 at 18:32
2

Assuming 'z' is a supported format, something as simple as this should work:

ffmpeg -i input.z output.srt

List your codecs with ffmpeg -codecs to make sure your 'z' type is supported.

|improve this answer|||||
1

You can try to convert the subtitles using a simple tool called Avidemux. I've used it before and it works fine. Find more about it here.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.