Discussion:
[FFmpeg-user] How to calculate the real (!) average variable video bitrate of a whole video with ffmpeg?
Ben
2018-11-03 13:24:48 UTC
Permalink
Assume I have a AVI, MP4 or MKV video which is encoded with a variable video bitrate.

Now I want to findout the average video bitrate across the WHOLE (!) video.

Now when I drag the video onto such tools like MediaInfo they show only the average video bitrate
of the first 5 or 20 seconds or so.

In rare cases they do not even show a value at all.

I could imagine that I can pass the video to ffmpeg and let it calculate the real variable video bitrate for the WHOLE video.

How does that work?

Ben
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsub
Carl Eugen Hoyos
2018-11-03 14:47:01 UTC
Permalink
Post by Ben
Assume I have a AVI, MP4 or MKV video which is encoded with a
variable video bitrate.
Now I want to findout the average video bitrate across the WHOLE (!) video.
I may misunderstand but you could copy the video stream into a rawvideo file,
look at its size and divide it by the duration of the video.
If you use FFmpeg to copy the video stream, its console output will tell you
the bitrate, no need to divide:
$ ffmpeg -i input -vcodec copy -f rawvideo -y /dev/null

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubscri
Peter van Houten
2018-11-03 16:01:57 UTC
Permalink
Post by Ben
Assume I have a AVI, MP4 or MKV video which is encoded with a
variable video bitrate.
Now I want to findout the average video bitrate across the WHOLE (!) video.
Not ffmpeg but you mentioned mediainfo, so:

mediainfo --parsespeed=1 --output='Video;%BitRate% bps\n' <video file name>

Cheers
Peter
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsubsc
Dmitry Menshikov
2018-11-04 13:51:04 UTC
Permalink
Or you may use this technique -
https://superuser.com/questions/1106343/determine-video-bitrate-using-ffmpeg
Post by Ben
Assume I have a AVI, MP4 or MKV video which is encoded with a variable video bitrate.
Now I want to findout the average video bitrate across the WHOLE (!) video.
Now when I drag the video onto such tools like MediaInfo they show only
the average video bitrate
of the first 5 or 20 seconds or so.
In rare cases they do not even show a value at all.
I could imagine that I can pass the video to ffmpeg and let it calculate
the real variable video bitrate for the WHOLE video.
How does that work?
Ben
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
--
Yours truly, Dmitry Menshikov
http://dmenshikov.com
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.
Loading...