我是 ffprobe 的新手,我的目标是获取视频 fps 并将其存储到 java 程序中。我的代码存储 xml 文件,但我想像 int fps=30 一样直接存储;
ffprobe -v quiet -print_format xml -show_format -show_streams "/video/small/small.avi" > "/video/small/test.xml"
这是我的代码。
最佳答案
这将打印视频 FPS:
ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate file.mp4
关于java - 使用 FFProbe 获取视频 fps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27792934/