Log in

View Full Version : how to extract bit rate and Frame rate in windows?


Rouhi
5th May 2014, 06:44
Hi
I have a folder containing 10,000 videos in format of mp4 and mpg. They have different bit rates. I want to provide a text file containing the list of each video name and it bit rate.
Do you have any suggestion?
My operating system is windows.
Cheers

QBhd
5th May 2014, 10:00
Mediainfo should be able to do what you want with a custom sheet.

QB

therube
5th May 2014, 12:52
ffprobe from FFmepg.

You could set up a batch file to loop through each video getting its info.

Something like (pseudocode) ...

:loop
echo $filename >> out.TXT
ffprobe $filename 2>&1 | grep bitrate >> out.TXT
echo \n
:loop

[ReX]
6th May 2014, 00:51
ffprobe from FFmepg.

You could set up a batch file to loop through each video getting its info.

Something like (pseudocode) ...

:loop
echo $filename >> out.TXT
ffprobe $filename 2>&1 | grep bitrate >> out.TXT
echo \n
:loop

I was bored, so I implemented this.
https://gist.github.com/BrunoReX/6eb38bd27f0ec83bb348

Rouhi
29th May 2014, 03:18
Thanks for your reply.
I am back again after long time. I want to rephrase the question. I want to extract the frame rate of a bunch of videos. I am in windows platform. Can i use ffmpeg or any other program to call in a loop and save the results in a text file?

[ReX]
23rd June 2014, 15:17
Thanks for your reply.
I am back again after long time. I want to rephrase the question. I want to extract the frame rate of a bunch of videos. I am in windows platform. Can i use ffmpeg or any other program to call in a loop and save the results in a text file?

Same approach, but now I've used the MediaInfo CLI (http://mediaarea.net/en/MediaInfo/Download/Windows) since you don't need to parse the text with it.

https://gist.github.com/BrunoReX/fe8f659c31186328d317