[FFmpeg-devel] Duration/bitrate estimation

Michael Niedermayer michaelni at gmx.at
Thu Jan 22 15:44:47 CET 2015


On Thu, Jan 22, 2015 at 12:05:24AM -0500, Marcus Johnson wrote:
> What functions are used to estimate the duration and bit rate of a file?
> I'd like to add support for these features for the DTS format, and would
> rather not dig around the source looking for it.

you can set AVStream.duration and AVCodecContext.bit_rate from the
dts demuxer if these are known
otherwise the duration is estimated in avformat_find_stream_info()
and the functions called by it if there is sufficient information
available

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150122/5fecf1df/attachment.asc>


More information about the ffmpeg-devel mailing list