Reply to topic

How can I turn a video by 90 degrees ?

moritzme
Registered Member
Posts
1
Karma
0
I have filmed a video with my Galaxy S7. I filmed in 1920x1080 and hold my phone horizontal. Nonetheless, Kdenlive somehow thinks the video is filmed in 1080x1920 and turns the video by 90 degrees upon importing the clip. Is there a way to have the video imported properly or turn it back without cropping the borders or resizing?
capslock
Registered Member
Posts
699
Karma
4
OS
There is a rotate effect, apply it to the clip on the timeline. The rotation value was (and I suppose still is) given in 10th of a degree, so 900 or -900 should do the trick.
jherring
Registered Member
Posts
11
Karma
0
So I have a problem with this effect which seems to be only a recent thing. When I rotate using *any* of the rotation effects the vertical clip is rotated, but a huge black boarder is now around the clip and try as I might the only way to 'fix' it is to use the 'zoom' feature to zoom way in to my clip to get it to fit... for a 1920x1080 I have to zoom about 178% and then center the clip manually.

I have used this feature in the past and have not run into this issue from my recollection. What am I doing wrong here?

KDENLIVE 18.04.3
User avatar AceMcCrank
Registered Member
Posts
19
Karma
0
OS
You can either resize the clip (Cutting off the top and bottom) or change the dimensions of your document under Project>Project Settings so that the video is properly set to the dimensions of your clips.

The preview window may still show borders, but resize using the handle between it and your plugins (normally) and dragging it farther to the right and it should go away.
egerlach
Registered Member
Posts
62
Karma
0
OS
I don't check it what he tells, please help:

AceMcCrank wrote:You can either resize the clip (Cutting off the top and bottom) or change the dimensions of your document under Project>Project Settings so that the video is properly set to the dimensions of your clips.

The preview window may still show borders, but resize using the handle between it and your plugins (normally) and dragging it farther to the right and it should go away.



resize means it is zoomed and any longer sharp, right? - Thats not what I want, I need Full-HD!
I created a profile mit 1080x1920 and 9:16 , I created a new kde session , insert the video but kdenlive still in portrait mode.
please more info, I'm no expert. A tutorial perhaps? :)

tia
Eckard

@SOLVED!!!! :)) I have *mp4 Videos in 9:16 format, 1080x1920, portrait mode. Close kdenlive. Take avidemux (2.7.0) , rotate video with 270 degrees. Then rotate the result with 90 degrees. 270+90 = 360! One time around the clock ;) One rotation does not help! I did so with 3 Videos, works!! You can rotate 90 + 90 , too, then its really rotated by 180 degrees. Both results work in kdenlive. Avidemux generates a *.mkv file. Move original *.mp4 somewhere else or rename. Rename *.mkv to mp4. Start kdenlive, load your project and kdenlive shows immediately the rotated video as if I would have take in 16:9 mode. :)) You don't need to make an new porject, the old project works, the kdenlive project accepts this "new" mp4!! :))
Attention: avidemux "stacks" rotations, if you don't delete previous rotation (or close and restart avidemux) , avidemux you may get other results. Thank to this feature of avidemux and my fault I got suddenly und surprisingly a video version that works: I rotated first with 90 degrees, the I renamed [...] then I rotated the new video again with 270 degrees, and not the original.
User avatar bartoloni
Moderator
Posts
1143
Karma
2
OS
it's possible also using FFMPEG directly...

Code: Select all
ffmpeg -i in.mp4 -vf "transpose=2" out.mp4
egerlach
Registered Member
Posts
62
Karma
0
OS
indeed! Works!
ffmpeg .. call rotates the video to left, and works in kdenlive. Even after *one" rotation.
And "transpose=1" rotates it to right.

Thank you!
User avatar bartoloni
Moderator
Posts
1143
Karma
2
OS
also Farid pointed me to the "disable autorotate" option on clip properties... this can solve a lot of rotation issues.
https://invent.kde.org/kde/kdenlive/upl ... /image.png

with smartphone videos with this option the layout become "landscape" and using "flippo" effect can be rotated by 180 degree :)

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], ranrutenberg, Sogou [Bot], xuancong