[FFmpeg-trac] #2930(FFprobe:new): ffprobe to report DVD subtitles frame size

FFmpeg trac at avcodec.org
Mon Sep 2 15:43:35 CEST 2013


#2930: ffprobe to report DVD subtitles frame size
----------------------------------+---------------------------------------
             Reporter:  lelegard  |                     Type:  enhancement
               Status:  new       |                 Priority:  normal
            Component:  FFprobe   |                  Version:  unspecified
             Keywords:  dvdsub    |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 This is an enhancement request about ffprobe.

 The context of this request can be found on the archive of FFmpeg-user
 mailing list at
 http://ffmpeg-users.933282.n4.nabble.com/Burning-DVD-subtitles-into-video-
 using-overlay-filter-not-working-td4660976.html

 FFprobe reports the frame width and height of video streams. But it does
 not report the same information on DVD subtitles streams.

 DVD subtitles are bitmaps with a frame size. In the above mentioned thread
 in FFmpeg-user, the debug output of a transcoding session reports:

 {{{
 [graph 0 input from stream 0:0 @ 00000000022412a0] w:1280 h:536
 pixfmt:yuv420p tb:1/1000 fr:13978/583 sar:1/1 sws_param:flags=2
 [graph 0 input from stream 0:2 @ 0000000002240e20] w:1920 h:1080
 pixfmt:bgra tb:1/1000 fr:0/1 sar:0/1 sws_param:flags=2
 }}}

 We see that the video frame size is 1280x536 and the dvdsub frame size is
 1920x1080. But ffprobe reports only the video frame size:

 {{{
 $ ffprobe file.mkv -loglevel warning -show_streams -print_format flat |
 grep -e codec_name -e width -e height
 streams.stream.0.codec_name="h264"
 streams.stream.0.width=1280
 streams.stream.0.height=536
 streams.stream.1.codec_name="dca"
 streams.stream.2.codec_name="dvdsub"
 }}}

 For automated tools, it would be extremely useful to obtain the dvdsub
 frame size from ffprobe output.

 It may be possible that such enhancement also applies to DVB subtitles
 since they are bitmaps too.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2930>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list