使用 ffprobe 检查文件是音频还是视频 [英] Using ffprobe to check if file is audio or video only

查看:28
本文介绍了使用 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 属性的流数组,其中包含 audiovideo 等值.

You'll get an array of streams with a codec_type attribute with values like audio, video etc.

这篇关于使用 ffprobe 检查文件是音频还是视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆