Search code examples
videoffmpegvideo-streamingffprobe

ffprobe show_frames for multiple videos


Is there any way that I can see frames for multiple videos at same time in one file?

I know how to do that for one video -

ffprobe -show_frames http://myvirtualdirectory/myvideo.mp4 > output.txt

I have so many videos in my virtual directory - so I want to see all the videos frames at one file.

And is there any way that I can see frames from my local directory - and not from virtual directory like (http://.... )


Solution

  • Learn to use shell scripts.

    Identify your local directory and make a simple script to append (>>) to the output file:

    #!/bin/bash
    
    for file in /path/to/files/*.mp4; do
      ffprobe -show_frames $file >> output.txt
    done
    

    Make the script executable using chmod +x show_frames.sh and run it with ./show_frames.sh.