VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hello
    I have hundreds of videos and I want to extract the FPS of each one to a text file, or an excel, or anything that I can work with.
    How would I go about doing this?
    I'm sensing I'll need to use ffmpeg command line along with a batch script or something, but I'm not that good with either.
    Thanks in advance

    I have managed to find this
    Code:
    ffprobe -v 0 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate filename.mp4
    and it works
    but how do i go about automating for all files in a specific folder
    AND
    to export them to a .txt file/table anything
    Last edited by [ss]vegeta; 13th Feb 2019 at 17:32.
    Quote Quote  
  2. Put a batch file like this in the folder:

    Code:
    del fpslist.txt
    for %%F in (*.mp4) do (
    	echo %%F >>fpslist.txt
    	"g:\program files\ffmpeg\bin\ffprobe.exe" -v 1 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate "%%F" >>fpslist.txt
    )
    pause
    That will create a file called fpslist.txt with:

    Code:
    filename1.mp4
    25/1
    filename2.mp4
    30000/1001
    Note: You'll need to change the path to ffprobe.exe.

    If you want the name and fps on the same line replace the echo line with:

    Code:
    	echo | set /p="%%F  "   >>fpslist.txt
    Last edited by jagabo; 13th Feb 2019 at 20:26.
    Quote Quote  
  3. Originally Posted by jagabo View Post
    Put a batch file like this in the folder:

    Code:
    del fpslist.txt
    for %%F in (*.mp4) do (
    	echo %%F >>fpslist.txt
    	"g:\program files\ffmpeg\bin\ffprobe.exe" -v 1 -of csv=p=0 -select_streams v:0 -show_entries stream=r_frame_rate "%%F" >>fpslist.txt
    )
    pause
    That will create a file called fpslist.txt with:

    Code:
    filename1.mp4
    25/1
    filename2.mp4
    30000/1001
    Note: You'll need to change the path to ffprobe.exe.

    If you want the name and fps on the same line replace the echo line with:

    Code:
    	echo | set /p="%%F  "   >>fpslist.txt
    Both worked flawlessly.
    You are a lifesaver.
    Thank you a lot, man!
    Quote Quote  



Similar Threads