Description of problem or question:
I have a video that has been recorded vertically. MediaInfo shows a rotation of 90°.
I want to resize and rotate this video, but the output (though different in file size) is not rotated (played in MediaPlayer Classic Home Cinema).
The activity log reads "Auto-Rotating video 270 degrees".
Steps to reproduce the problem (If Applicable):
Batch file using HandBrake CLI:
https://pastebin.com/kqvBGZXG
Video file:
https://mega.nz/file/pl1mVCqb#6V0dfS6yJ ... WzNYoTbrM0
HandBrake version (e.g., 1.0.0):
CLI 1.5.0
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10, 21H1
HandBrake Activity Log ***required*** :
https://pastebin.com/m1NYdM3q
Auto-Rotate doesn't produce rotated video
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Re: Auto-Rotate doesn't produce rotated video
HandBrake reads the rotation info and rotate it automatically. The output won't have a rotation info anymore because HandBrake rotates the actual video before encoding it.
Re: Auto-Rotate doesn't produce rotated video
Then I don't understand why it's still vertical after encoding.
Re: Auto-Rotate doesn't produce rotated video
Let me check.
Re: Auto-Rotate doesn't produce rotated video
It's horizontal if I use --rotate=angle=270, are you sure the rotate option is being passed properly to the cli?
Re: Auto-Rotate doesn't produce rotated video
https://www.youtube.com/watch?v=OCmuATH2yzo
Had a typo in my batch: "set ROTATE==--rotate=angle=270"
Now, the video is rotated correctly when I use "--rotate=angle=270", but with "--rotate" it get's rotated 180°.
Log from 270: https://pastebin.com/kZSDRPVa
Log from auto: https://pastebin.com/ATyXjZr9
Removed the time stamps so it can easily be diffed.
Had a typo in my batch: "set ROTATE==--rotate=angle=270"
Now, the video is rotated correctly when I use "--rotate=angle=270", but with "--rotate" it get's rotated 180°.
Log from 270: https://pastebin.com/kZSDRPVa
Log from auto: https://pastebin.com/ATyXjZr9
Removed the time stamps so it can easily be diffed.
Re: Auto-Rotate doesn't produce rotated video
btw: Noticed two minor things that probably shouldn't be that way:
1)
Printed on stdout as it is not redirected to the activity log with "2> activity.log". Should probably be on stderr, too.
2)
On stdout
On stderr, should probably be on stdout, too.
1)
Code: Select all
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open file VIDEO_TS.IFO.
2)
Code: Select all
Encoding: task 1 of 1, 100.00 %
Code: Select all
Scanning title 1 of 1, preview 1, 10.00 %
Re: Auto-Rotate doesn't produce rotated video
@Ritsuka: Can you reproduce this?larsen wrote: ↑Tue Jan 11, 2022 9:54 am Now, the video is rotated correctly when I use "--rotate=angle=270", but with "--rotate" it get's rotated 180°.
Log from 270: https://pastebin.com/kZSDRPVa
Log from auto: https://pastebin.com/ATyXjZr9
Removed the time stamps so it can easily be diffed.