Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mikek999
Channel Surfer

Rotate Video

Is is possible to rotate the presentation of a video by 90 degree?
0 Kudos
2 REPLIES 2
msmsms
Visitor

Re: Rotate Video

yes, any help with this would be appreciated. Most of my home videos are shot vertically...though these show up horizontally on Roku Media player.
0 Kudos
destruk
Streaming Star

Re: Rotate Video

While Roku might be able to do this through some brightscript transposition 'magic', to do this work for every frame of video might be too demanding for lower end roku hardware.  Why not simply reencode the video to fix it, or hold your camera at the correct orientation when filming to begin with?

From Stackoverflow (using FFMPEG)

Rotate 90 clockwise:

ffmpeg -i in.mov -vf "transpose=1" out.mov
For the transpose parameter you can pass:

0 = 90CounterCLockwise and Vertical Flip (default)
1 = 90Clockwise
2 = 90CounterClockwise
3 = 90Clockwise and Vertical Flip
Use -vf "transpose=2,transpose=2" for 180 degrees.

Make sure you use a recent ffmpeg version

Note that this will re-encode the audio and video parts. You can usually copy the audio without touching it, by using -c:a copy. To change the video quality, set the bitrate (for example with -b:v 1M) or have a look at the H.264 encoding guide if you want VBR options.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.