0

What I'm trying to do is exporting the subtile stream of a MKV-file to a ASS-subtitle-file. I'm not really experienced with ffmpeg so I'm sorry if I miss something obvious

This is what I've got so far:

ffmpeg -i input.mkv -map 0:7 -c:s ass output_subtitle.ass

But when I try to run it, it gives me the error "Only SUBTITLE_ASS type supported"

9
  • By the way, why not use str?
    – Kard Nails
    Commented Mar 21, 2014 at 18:43
  • Hm, what are the advantages of using str?
    – YourMJK
    Commented Mar 21, 2014 at 20:21
  • Lighter, simpler, more widely supported and it's not like ass has that much to offer that str hasn't. Unless you want some really fancy formatting.
    – Kard Nails
    Commented Mar 21, 2014 at 20:25
  • Well, how do you define "fancy formatting"? The subtitle got a custom font and color :D
    – YourMJK
    Commented Mar 21, 2014 at 20:44
  • Please include the complete ffmpeg console output.
    – llogan
    Commented Mar 22, 2014 at 17:36

2 Answers 2

2

try this

ffmpeg -i input.mkv -map 0:{subtitle_stream_index} -c copy output_subtitle.ass

assuming the subtitle stream index is 7 from your question then the command will be

ffmpeg -i input.mkv -map 0:7 -c copy output_subtitle.ass
1

You should try this: ffmpeg -i input.mkv -vn -an -codec:s:0.7 ass output_subtitle.ass assuming you have found out the stream identifier to be 0:7.

4
  • Thanks for the answer but somehow it still gives me the same error. Maybe it is relevant that the subtitle stream has a pgssub codec?
    – YourMJK
    Commented Mar 21, 2014 at 20:23
  • Have you tried to export str instead?
    – Kard Nails
    Commented Mar 21, 2014 at 20:28
  • Yes, I did but it leaves me with a new error: "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height" Command I used: ffmpeg -i input.mkv -vn -an -codec:s:0.7 srt output_subtitle.srt
    – YourMJK
    Commented Mar 21, 2014 at 20:41
  • Wait, I'm confused. Is it "SRT" or "STR"?!
    – YourMJK
    Commented Mar 21, 2014 at 20:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .