[FFmpeg-trac] #4752(ffmpeg:new): DVB Subtitles don't burn into overlay

FFmpeg trac at avcodec.org
Mon Aug 3 23:30:10 CEST 2015

#4752: DVB Subtitles don't burn into overlay
             Reporter:  miguelapg    |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  subtitles,   |  master
  dvb                                |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

 I using the well-known and documented filter to burn dvb subtitles as
 follow ...

 -filter_complex '[0:v][0:s:0]overlay[vid]' -map '[vid]' -map 0:a

 I have a stream as follow ...
 Stream #0:0[0xcd]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(tv, bt470bg), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k
 tbn, 50 tbc
 Stream #0:1[0x195](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
 5.1(side), fltp, 448 kb/s
 Stream #0:2[0x25d](ara): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
 Stream #0:3[0x271](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)

 In the encoding process I get the following status ...
 Stream mapping:
   Stream #0:0 (h264) -> overlay:main (graph 0)
   Stream #0:2 (dvbsub) -> overlay:overlay (graph 0)
   overlay (graph 0) -> Stream #0:0 (libx265)
   Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))

 The encoding line I am using is ...

 ffmpeg -re -threads 0 -i
 'udp://x.x.x.x:1234?fifo_size=1000000&overrun_nonfatal=1' -f hls -hls_time
 10 -hls_list_size 6 -pix_fmt yuv420p -c:v libx265 -preset:v ultrafast -s
 1280x720 -b:v 1000k -filter_complex '[0:v][0:s:0]overlay[vid]' -map
 '[vid]' -map 0:a -c:a libfdk_aac -ar 48000 -b:a 64k -ac 2 -threads 0 -y

 BUT I get the folowing error all time ...
 [dvbsub @ 0x3ff3ee0] Invalid clut depth 0x0!

 If I copy subtitles I can parse subtitles to file doing the following ...

 -map 0:0 -map 0:1 -map 0:2 -c:s:0 copy

 ... and I can see the subtitles in VLC, so subtitles are there, but I
 don't know why I cannot burn it in the video.

 I think there is a bug since Subtitles are present and can be seen on VLC
 when they are copied.


Ticket URL: <https://trac.ffmpeg.org/ticket/4752>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list