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

查看:1250
本文介绍了如何从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天全站免登陆