ffprobe show_frames为多个视频 [英] 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
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.
有什么办法可以看到我的本地目录中的帧,而不是从虚拟目录(http:// ....)
And is there any way that I can see frames from my local directory - and not from virtual directory like (http://.... )
推荐答案
学习使用shell脚本。
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
使用 chmod + x show_frames.sh
并运行它与 ./ show_frames.sh
。
这篇关于ffprobe show_frames为多个视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!