ffprobe show_frames for multiple videos

2019-09-06 18:36发布

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://.... )

1条回答
贪生不怕死
2楼-- · 2019-09-06 18:45

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.

查看更多
登录 后发表回答