I shot a video with a Canon EOS DSLR in the portrait (vertical) orientation. LR shows this to me sideways (horizontal orientation), but the "rotate" buttons and menu items all seem to be grayed out. Does anyone have an easy way to get the video to show the proper way?
I have LR 5.7, Photoshop CC 2014, and Nik Collection in case any of those help. I do not have Premier. I am running windows/7 and Windows/8 so if there is some software that came with either of those OS's that might help please pass on their names.
Thanks -- Dan
unfortunately, you have to re-encode the video to achieve hard-rotation.
I've done it in the PhotoStation Upload Publish/Export Provider plugin. So, if you have a Synology NAS w/ PhotoStation around, this would be the easy way to do it:
If not, here is how it works:
1) get video metadata:
ffmpeg.exe -i srcVideo.mp4
you'll find som output like:
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 16816 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc
rotate : 90
creation_time : 2015-02-25 18:19:30
In this case, the video has a dimension of 1920x1080 and a soft rotation of 90, captured in Feb 2015
2) rotate the video:
ffmpeg.exe -i srcVideo.mp4 -y -acodec libvo_aacenc -metadata creation_time="2015-02-25 18:19:30" -vf "transpose=1" -metadata:s:v:0 rotate=0 -ar 44100 -b:a 96k -ac 2 -pass 1 -vcodec libx264 -b:v 2000k -bt 2000k -flags +loop -mixed-refs 1 -me_range 16 -cmp chroma -chromaoffset 0 -g 60 -keyint_min 25 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.60 -qmin 10 -qmax 51 -qdiff 4 -cplxblur 20.0 -qblur 0.5 -i_qfactor 0.71 -8x8dct 1 -vsync 2 -level 41 -coder 1 -refs 3 -bf 2 -b_qfactor 1.30 -b-pyramid none -b_strategy 1 -b-bias 0 -direct-pred 1 -weightb 1 -subq 1 -trellis 0 -me_method epzs -partitions 0 -f mp4 -s 1080x1920 -aspect 1080:1920 -passlogfile out.passlog dstVideo.mp4 2> out.txt
You have to adjust
- the creation date
- the new dimension and aspect ratio "1080x1920 -aspect 1080:1920" according to your video dimension
- transpose=2, if rotation is 270