brandon
brandon

Reputation: 13

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 whatever 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?

Upvotes: 1

Views: 1014

Answers (2)

Nicolas
Nicolas

Reputation: 2186

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.

Upvotes: 0

Dutchie432
Dutchie432

Reputation: 29160

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.

Upvotes: 1

Related Questions