ffprobe show_frames for multiple videos

自古美人都是妖i 提交于 2019-12-11 11:53:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!