Thanks Carl for review. Smooth is not the only one need bitrate for manifest, Dash also need this value for "Bandwidth" field: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/dashenc.c#L730 Although there is some difference, both the calculation are based on fragment size, which is the result after muxing. So it might be very hard to do it outside of Muxer.
Thanks. Regards -Jun On Mon, Mar 11, 2019 at 2:03 AM Carl Eugen Hoyos <ceffm...@gmail.com> wrote: > 2019-03-07 20:55 GMT+01:00, Jun Li <junli1...@gmail.com>: > > From: jun <junli1...@gmail.com> > > > > Calculate bitrate based on fragment size, only applied when > > bitrate is not set, for example rtsp source. > > Could this also be done on a higher level? > Or is smoothstreaming the only thing that needs this information? > > Carl Eugen > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel