Video rotation

Asked by Carlo

I use Openshot quite a bit as I have found it to be the best (simplest and most intuitive) Linux video editing app; however, I am frustrated by the lack of true video rotation. In today's digital age, many people such as myself record video in portrait mode because we are videoing our kids and grandkids and wish to be as close as possible without all the useless space on the side. we record in the vertical because we are taller than we are wide. The rotation feature does not truly rotate the entire video, it rotates the video but keeps the same landscape orientation instead of rotating the entire orientation from landscape to portrait. What this does is effectively cut off the top and bottom portions of the video in order to fit inside the vertical parameters of landscape orientation. I have found very few video editing programs that actually rotate the entire video and change the orientation from landscape to portrait.........and none for Linux. I'm forced to switch to Windows to use an app I have found that actually rotates the orientation of the video but the downside is that it reduces the quality and saves it on only .avi format. It would be fabulous if Openshot actually rotated the orientation of the video when selecting to rotate. Has there been discussion around changing the rotation feature to actually rotate the entire video orientation?

Question information

Language:
English Edit question
Status:
Expired
For:
OpenShot Video Editor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Carlo (bcarlowise) said :
#1

Some more info. I iired creating a video profile with the orientation in portrait mode instead of landscape mode (i.e. 720x1280, 30 frames/sec) and choosing this profile when exporting the video but the application still crops the video and what I end up with is alot of black space around the sides as well as the top (the entire video sequence is shifted down).

Revision history for this message
Olivier Girard (eolinwen) said :
#2

HI,

You are a lucky man because this feature is already present in Openshot and since a while. :)

In fact as usual, there are not one but two ways to realize that in Openshot.
You have an easy way for the common users who is in the textual menu of the clip. And here, you chose your kind of rotation that you 'd like.
You can too apply an effect called rotation (in fact it is the same used) and open the Clip properties. At the last section/tab you select your effect (you can used several effects for one clip) and edit his properties. It is more for people who search something more precise same if you can do this operation easily i.e. you could choose for sample an rotation of 85° instead of a 90°)
You should take a look at our manual on the utilisation of Openshot that you have installed in the same time of Openshot.
You have too the HTML version of this one here : http://www.openshotusers.com/help/en/
Thanks.

Revision history for this message
Carlo (bcarlowise) said :
#3

Thanks for the response;however, I believe the functionality I described does not exist currently in Openshot. I do realize that there exists a feature to rotate a video; however, as I stated, it does not change the orientation of the video from landscape to portrait mode. What you get is a video that is rotated within the parameters of landscape mode so that the video is either cropped or it is shrunk to fit. For example, my camera shoots video in 1280x720. When I import a clip that I shot in portrait mode, the clip needs to be rotated so that the clip comes out 720x1280. What Openshot's rotation feature does is rotate the video within the 1280x720 parameters so that the rotated video is either downsized so that the longer 1280 pixel side fits within the smaller 720 pixel vertical boundary or the 1280 pixel side is cropped to fit within the smaller 720 pixel vertical boundary. The xported video is still 1280x720 instead of being rotated to be 720x1280.

Carlo Wise

________________________________
From: Cenwen <email address hidden>
To: <email address hidden>
Sent: Tuesday, August 2, 2011 12:26 PM
Subject: Re: [Question #166729]: Video rotation

Your question #166729 on OpenShot Video Editor changed:
https://answers.launchpad.net/openshot/+question/166729

    Status: Open => Answered

Cenwen proposed the following answer:
HI,

You are a lucky man because this feature is already present in Openshot
and since a while. :)

In fact as usual, there are not one but two ways to realize that in Openshot.
You have an easy way for the common users who is in the textual menu of the clip. And here, you chose your kind of rotation that you 'd like.
You can too apply an effect called rotation (in fact it is the same used) and open the Clip properties. At the last section/tab you select your effect (you can used several effects for one clip) and edit his properties. It is more for people who search something more precise same if you can do this operation easily i.e. you could choose for sample an rotation of 85° instead of a 90°)
You should take a look at our manual on the utilisation of Openshot that you have installed in the same time of Openshot.
You have too the HTML version of this one here : http://www.openshotusers.com/help/en/
Thanks.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/openshot/+question/166729/+confirm?answer_id=1

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/openshot/+question/166729

You received this question notification because you asked the question.

Revision history for this message
Olivier Girard (eolinwen) said :
#4

I understand a bit better what do you want.
And in the clip properties, Have you try ?
Could you attach a short clip that I will use to test it ? Unfortunately, I have none video file.

Revision history for this message
Carlo (bcarlowise) said :
#5

cenwen, now attached is the video file rotated using the application called "Free Video Clip and Rotate". Notice how the entire video orientation is rotated from 1280x720 to 720x1280.

________________________________
From: B. Carlo Wise <email address hidden>
To: "<email address hidden>" <email address hidden>
Sent: Tuesday, August 2, 2011 11:13 PM
Subject: Re: [Question #166729]: Video rotation

cenwen, I will upload several video files. The first will be the original test video shot with my simple digital camera. It captures video in 1280x720. Here is the video file:

________________________________
From: Cenwen <email address hidden>
To: <email address hidden>
Sent: Tuesday, August 2, 2011 4:11 PM
Subject: Re: [Question #166729]: Video rotation

Your question #166729 on OpenShot Video Editor changed:
https://answers.launchpad.net/openshot/+question/166729

    Status: Open => Answered

Cenwen proposed the following answer:
I understand a bit better what do you want.
And in the clip properties, Have you try ?
Could you attach a short clip that I will use to test it ? Unfortunately, I have none video file.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/openshot/+question/166729/+confirm?answer_id=3

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/openshot/+question/166729

You received this question notification because you asked the question.

Revision history for this message
Carlo (bcarlowise) said :
#6

I did some some research on FFmpeg, Transcode and Mencoder. I was able to rotate the video using mencoder by using the following command:

mencoder -vf-add rotate=1 SAM_0095.mp4 -oac mp3lame -ovc x264 -o SAM_0095_mencoder_rotated.mp4

Here is a breakdown of the options I passed to mencoder:

-vf-add This tells mencoder that there is a video filter option to be added

rotate=1 This tells mencoder that the video filter is rotate and that the value is "1" which equals a 90 degree clockwise rotation

-oac This tells mencoder what audio codec to use. "mp3lame" was the audio codec I specified

-ovc This tells mencoder what video codec to use. "x264" was the video codec I specified

-o This tells mencoder what the name of the output file should be.

Here are the audio and video codec options:

Available Video codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
xvid - XviD encoding
x264 - H.264 encoding

Available Audio codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, ...)

Here are the options for the rotate function:

rotate[=<0-7>]
Rotates the image by 90 degrees and optionally flips it. For
values between 4-7 rotation is only done if the movie geometry
is portrait and not landscape.

0 Rotate by 90 degrees clockwise and flip (default).

1 Rotate by 90 degrees clockwise.

2 Rotate by 90 degrees counterclockwise.

3 Rotate by 90 degrees counterclockwise and flip

I tried the various audio and video codecs. Interestingly enough, although the documentation states that the lavc video codec produces the best video quality, I found that to NOT be the case. The best video quality by default appears to be the x264 video codec. I saw no pixel degradation whatsoever when using x264.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Elias Estatistics (estatisticseu) said :
#9

It is actual a Bug of OPENSHOT... No true rotation exist... CROpPING is laways happen in every combination of options... every other answer is no true answer (v..1.4.3 under UBUNTU / LUBUNTU )

Revision history for this message
Elias Estatistics (estatisticseu) said :
#10

 Status: Open => UN Answered !!!

Revision history for this message
Shaurabh Bharti (sbharti) said :
#11

OpenShot crops the video when rotated from landscape to portrait. To compensate, I tried following steps and worked. Hope it works for you too.

1) place video on a track, right click and select properties
2) Under videos tab, uncheck "maintain aspect ratio" and "stretch full screen"
3) Under videos tab, put 90 for rotating clockwise, or -90 to rotate anti-clockwise
4) Under Layout tab, decrease width % to lower value (say 70) for both "start of click" and "end of clip". This value should depend upon aspect ratio of shooting, so try accordingly. Mine was 16:9 and value of 70 was fine.

In this way, you would find the video least cropped and it should not be noticeable.