[FFmpeg-devel] [PATCH] parse videodatarate metadata in flv header

Arnoud Zwemmer arnoud.zwemmer
Tue Apr 1 11:44:38 CEST 2008


Hi,

I needed the FFmpeg summary (as shown below) to include the bitrate of 
video streams I'm converting, which works for many formats, but not for 
FLV, even if a correct 'videodatarate' metadata element is present in 
the FLV header.

This patch parses the videodatarate element (not sure if there's a 
reason the element was not parsed before).

Input #0, flv, from 'myflv.flv':
  Duration: 00:03:21.0, start: 0.000000, bitrate: 417 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x262, 337 kb/s, 25.00 tb(r)
    Stream #0.1: Audio: mp3, 22050 Hz, mono, 80 kb/s

Thanks,

Arnoud.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: parse_flv_videodatarate.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080401/734aedb9/attachment.bin>



More information about the ffmpeg-devel mailing list