>> av_dump_format() could show something better than 0. > > Yes, but what would be the point? How is it actually useful to know the > average bitrate of a concatenated stream?
Actually, I use custom IO in my own application to prefetch data via HTTP. I'm trying to calculate duration from bytes with bit_rate, for: 1. Calculate necessary download speed. 2. Adjust prefetch buffer size. 3. Show prefetched duration in progress bar. I thought AVFormatContext.bit_rate is a convenient alias. Is AVCodecContext.bit_rate more suitable for these purpose? _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel