Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Rotate the video #61

Closed
avaranovich opened this issue Dec 6, 2013 · 1 comment
Closed

Rotate the video #61

avaranovich opened this issue Dec 6, 2013 · 1 comment

Comments

@avaranovich
Copy link

Is that possible to rotate the video in the player?

Just to give a background, why it would be handy.
I have a video stream from android phone, which I want to display using video.
According to the documentation,
http://developer.android.com/reference/android/media/MediaRecorder.html

Sets the orientation hint for output video playback. ....
This method will not trigger the source video frame to rotate during video recording,
but to add a composition matrix
containing the rotation angle in the output video if the output format is 
OutputFormat.THREE_GPP or OutputFormat.MPEG_4 so that a video player 
can choose the proper orientation for playback. 

I have more simple task, because I know the orientation of the camera, and I just need to rotate the player accordingly. For HTML5 this is easily done using CSS, and I wonder if this possible to do in a flash player.

@heff
Copy link
Member

heff commented Dec 6, 2013

Have you tried rotating the player with CSS while Flash is running? I'm not sure what that would do.

I don't think this is possible, at least not with a bunch of work. If Flash doesn't support it by default, we would need to partially decode the video manually to get the setting, and then rotate the video container in Flash.

Your best bet might be to run the file through an encoder that knows how to properly rotate the video. I know Zencoder handles iPhone rotation but I don't know about Android.

@heff heff closed this as completed Dec 6, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants