[FFmpeg-user] Getting MPEG2 video stream bitrate

Tobias Rapp t.rapp at noa-audio.com
Mon Apr 28 11:16:45 CEST 2014


Carl Eugen Hoyos wrote:
> No, as said mpeg2video files don't contain the 
> information you are looking for.
> One possibility to get it is to remux the whole 
> video stream and calculate the bitrate.

I have just found out that the "-show_frames" option of ffprobe displays
"pkt_size" and "pkt_duration_time". So it is possible to calculate an
average bitrate using something like "avg(pkt_size * 8 /
pkt_duration_time)".

Best regards,
Tobias



More information about the ffmpeg-user mailing list