How to calculate the real (!) average variable video bitrate of a whole video with ffmpeg?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to calculate the real (!) average variable video bitrate of a whole video with ffmpeg?

Ben Stover
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to calculate the real (!) average variable video bitrate of a whole video with ffmpeg?

Carl Eugen Hoyos-2
2018-11-03 14:24 GMT+01:00, Ben <[hidden email]>:
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to calculate the real (!) average variable video bitrate of a whole video with ffmpeg?

Peter van Houten
On 03-11-2018 14:24 GMT+01:00, Ben <[hidden email]>
wrote:
> 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to calculate the real (!) average variable video bitrate of a whole video with ffmpeg?

Dmitry Menshikov
In reply to this post by Ben Stover
Or you may use this technique -
https://superuser.com/questions/1106343/determine-video-bitrate-using-ffmpeg

сб, 3 нояб. 2018 г. в 15:35, Ben <[hidden email]>:

> 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".



--
Yours truly, Dmitry Menshikov
http://dmenshikov.com
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".