[FFmpeg-devel] [PATCH] avformat/concatdec: get bit_rate from internal format

Nicolas George george at nsup.org
Mon Jan 4 12:22:41 CET 2016


> When concatenated files are streamed via HTTP,
> opening all of them is not a good idea.

Exactly.

> If we've known that all files share same codec parameters,
> maybe first file's bit_rate would be the best guess.

Not at all. Having the same codec parameters, to some extent, is necessary
for concatenating: concatenating Theora and H.264 does not make any sense.

The bitrate, on the other hand, can vary from second to second, most streams
are VFR nowadays anyways.

> At least, do you mind if I introduce an option in concat file,
> or as an AVOption, to enable it manually?

If it is useful, but...:

> 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?

Regards,

-- 
  Nicolas George


More information about the ffmpeg-devel mailing list