使用ffprobe检查音频文件 [英] Using ffprobe to check audio-only files
本文介绍了使用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
视频
等。
You'll get an array of streams with a codec_type
attribute with values like audio
, video
etc.
这篇关于使用ffprobe检查音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文