获取视频尺寸(宽度和高度) [英] Get video dimensions (width & height)
本文介绍了获取视频尺寸(宽度和高度)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种简单的方法可以获取已上传视频的尺寸。我环顾四周,找到建议使用网络上的其他东西,这些东西要么不起作用,要么不存在。
我正在上传视频并将其写入服务器。然后我想找出它的尺寸。
这样的东西:
getise($ filename)
有人可以帮忙吗?
Is there a simple way to get the dimensions of a video that''s been uploaded. I''ve looked around and either find suggestions the use something else on the web that either doesn''t work or doesn''t exist.
I''m uploading a video and writing it to the server. I then want to find out its dimensions.
Something like this:
getsise($filename)
Can anyone help?
推荐答案
filename)
有人可以帮忙吗?
filename)
Can anyone help?
我不认为PHP可以做到这一点。可能通过CLI搜索执行此操作的程序。并且只是让PHP调用它。
类似于:
I don''t think PHP can do this. Search for a program that does this, perhaps through a CLI. and just have PHP call it.
something like:
展开 | 选择 | Wrap < span class =codeDivider> | 行号
你能推荐一个程序或如何通过命令行执行此操作?我已经搜索了其他类型的代码,并且找不到我为什么来到这里。
Can you suggest a program or how to do it through the command line? I have searched for other types of code that do it and couldn''t find any which I why I came here.
这篇关于获取视频尺寸(宽度和高度)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文