Tre*_*per 4 video opencv ffmpeg libavcodec libavformat
我想提取视频文件的信息以获得其I/P/B帧的计数.如何在ffmpeg中做到这一点?或者我应该使用libavformat和libavcodec进行编程吗?非常感谢!
在命令行中使用ffprobe -show_frames input_file.您可以解析此输入以获取帧类型信息.
你也可以做ffprobe -show_frames inputfile | grep pict_type
grep的字符串可能会有所不同,具体取决于您拥有的ffprobe的版本.
归档时间: |
|
查看次数: |
2855 次 |
最近记录: |