[FFmpeg-user] Decoding DVB Sub to image format

Alexandre Bouin Alexandre.Bouin at broadpeak.tv
Tue Apr 7 12:35:01 EEST 2020


Hi George,

Thank you for this answer.
Hum yes, I'm a bit late !

I gave a try this morning, but I'm quite beginner with ffmpeg args.

What are the information under braces '[' ']' ?

On my side, I succeeded to decode image subtitles ... but as binary !
ffmpeg -y -i <file.ts> -an -vn -c:s copy -f rawvideo -map 0:s toto.bin

Alex.

________________________________
De : ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> de la part de Nicolas George <george at nsup.org>
Envoyé : jeudi 12 mars 2020 20:23
À : FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Objet : Re: [FFmpeg-user] Decoding DVB Sub to image format

Alexandre Bouin (12020-03-12):
> I would like to decode DVB Subtitle, or any bitmap based subtitles, to images (jpeg, png, bmp, …)
>
> I tried this command:
> ./ffmpeg -i myvideo.trp -an -vn toto.bmp -map 0:5 -c jpeg2000 toto%03d.mjpeg

> Invalid encoder type 'jpeg2000'

FFmpeg considers subtitles and video to be completely different nature;
images are considered short video. You cannot encode subtitles with
codecs meant for video.

You can force ffmpeg to convert bitmap subtitles to images by connecting
the subtitles to a complex filter graph. So this may work, maybe with a
little work:

ffmpeg -i myvideo.trp -lavfi '[0:5]null[out]' -map '[out]' ...

Regards,

--
  Nicolas George


More information about the ffmpeg-user mailing list