[FFmpeg-user] Decoding DVB Sub to image format

Alexandre Bouin Alexandre.Bouin at broadpeak.tv
Thu Mar 12 12:00:11 EET 2020


Hello ffmpeg-users,

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
Bu get this log:
Input #0, mpegts, from 'myvideo.trp':
  Duration: 00:04:03.62, start: 36663.466000, bitrate: 10054 kb/s
  Program 1
    Metadata:
      service_name    : …
      service_provider: …
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:2[0x102](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:3[0x103](deu,deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
    Stream #0:4[0x104]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:5[0x106](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
    Stream #0:6[0x201](deu): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 121 kb/s
    Stream #0:7[0x202](mis): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 117 kb/s (visual impaired) (descriptions)
    Stream #0:8[0x87b]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:9[0x13ef](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 256 kb/s
    Stream #0:10[0x1434]: Unknown: none ([11][0][0][0] / 0x000B)
Invalid encoder type 'jpeg2000'

On the other hand, I can decode using dvbsub encoder, but I don’t know how to open result files …
./ffmpeg -i myvideo.trp -an -vn -map 0:5 -c dvbsub toto%03d.dvbsub

Best regards,
Alex.



More information about the ffmpeg-user mailing list