Opened 11 years ago
Closed 11 years ago
#2930 closed enhancement (fixed)
ffprobe to report DVD subtitles frame size
Reported by: | Thierry Lelegard | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | ffprobe |
Version: | git-master | Keywords: | dvdsub |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | yes |
Description
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.
Change History (2)
comment:1 by , 11 years ago
Priority: | normal → wish |
---|---|
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:2 by , 11 years ago
Analyzed by developer: | set |
---|---|
Resolution: | → fixed |
Status: | open → closed |
Fixed in:
commit 83635ac67bc3429c147e214f0f44325b63832384 Author: Nicolas George <nicolas.george@normalesup.org> Date: Tue Sep 3 16:39:02 2013 +0200 ffprobe: show bitmap subtitles size. Fix trac ticket #2930.
Sample command:
$ ffprobe gg.mkv -show_entries stream=width,height -select_streams s -of flat [...] streams.stream.0.width=1920 streams.stream.0.height=1080
Related to ticket #679
For future tickets: Please always add ffmpeg -i console output.