开发者

PHP rotate video

I have my own video sharing app,

My question is... is there any library,script or something else, to help me in rotating videos whate开发者_如何转开发ver their file extension is?

Many peoples are uploading videos but sometimes i found video (guessing shared with iphones or mobile phones) and i see them horizontally instead of vertically...

Does anyone have any ideas how to rotate them dynamically?


Im not familiar with any "libraries" that will do that. I think your better bet would be to find a command-prompt-enabled video software package (like Any Video Converter [See Q7]) that PHP can execute via command prompt on the fly.


PHP doesn't do that, and there are no extensions that I know off, made for that purpose.

You can use ffmpeg to manipulate videos, by calling it from your scripts (see shell_execute() and such functions). Reading the ffmpeg documentation will help you figure what can (and can't) be done with that powerful tool.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜