如何从 linux 命令行获取视频文件的分辨率(宽度和高度)? [英] How can I get the resolution (width and height) for a video file from a linux command line?

查看:35
本文介绍了如何从 linux 命令行获取视频文件的分辨率(宽度和高度)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在挖掘 mplayer/mencoder 和 ffmpeg 文档,但我似乎无法想出任何内容.我对输出格式不是特别挑剔,因为我可以使用正则表达式将其拉出,但我似乎无法首先获取数据.

I've been digging through the mplayer/mencoder and ffmpeg documentation and I can't seem to come up with anything. I'm not especially picky as to the output format as I can use a regular expression to pull it out, I just can't seem to get the data in the first place.

推荐答案

MediaInfo 有命令行版本并提供尺寸以及的其他信息.

MediaInfo has a command line version and provides the dimensions together with tons of other information.

这篇关于如何从 linux 命令行获取视频文件的分辨率(宽度和高度)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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