问题
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:
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
.
来源:https://stackoverflow.com/questions/29988898/ffprobe-show-frames-for-multiple-videos