使用ffprobe检查文件是仅音频还是视频 [英] Using ffprobe to check if file is audio or video only
本文介绍了使用ffprobe检查文件是仅音频还是视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以运行ffprobe命令查看我拥有的mov文件是否仅音频或也包含视频?我有各种mov文件,其中有些是音频配音,有些是完整的视频.
Is there an ffprobe command I can run to see if an mov file that I have is audio-only or contains video as well? I have various mov files, some of which are audio dubs and some of which are full videos.
推荐答案
您可以用JSON或XML输出流信息:
You can output stream information in JSON or XML:
ffprobe -show_streams -print_format json input.mov
您将获得一个具有 codec_type
属性的流数组,其值类似于 audio
, video
等.
You'll get an array of streams with a codec_type
attribute with values like audio
, video
etc.
这篇关于使用ffprobe检查文件是仅音频还是视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文