Author Topic: Avoid rotating video  (Read 147 times)

harper

  • Newbie
  • *
  • Posts: 2
Avoid rotating video
« on: August 04, 2019, 05:43:58 PM »
I have taken a video using a smartphone Samsung Galaxy S8. For some reasons the video is in portrait orientation. This doesn't fit the display screen geometry, but I want to keep it as it is. Unfortunately the video is rotated in Avidemux to landscape orientation. After saving the file it's still in the wrong orientation.

I found a filter to rotate the video while saving and hope that rotating by 90 degrees will get it in the correct orientation (not upside down). But this is time consuming and cumbersome. Can Avidemux be instructed to Keep the original orientation?

Thanks, harper.

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3186
Re: Avoid rotating video
« Reply #1 on: August 04, 2019, 11:22:33 PM »
Unfortunately the video is rotated in Avidemux to landscape orientation.

Avidemux always displays video in the preview as-is, without any modifications from metadata like pixel aspect ratio or rotation. This is by design.

Quote
After saving the file it's still in the wrong orientation.

The rotation metadata must be set in the configuration of the Mp4 muxer.

Quote
I found a filter to rotate the video while saving and hope that rotating by 90 degrees will get it in the correct orientation (not upside down). But this is time consuming and cumbersome. Can Avidemux be instructed to Keep the original orientation?

Yes, it can.

Please use a current (190804 or later) build of Avidemux, this feature was not present before 2019-01-18.

VC++ 64bit buillds for Windows 7 and newer
MinGW 64bits builds for Windows 7 and newer
MinGW Legacy Compatibility 32bits builds for Windows XP and newer

harper

  • Newbie
  • *
  • Posts: 2
Re: Avoid rotating video
« Reply #2 on: August 05, 2019, 05:04:47 AM »
Unfortunately the video is rotated in Avidemux to landscape orientation.

Quote
Avidemux always displays video in the preview as-is, without any modifications from metadata like pixel aspect ratio or rotation. This is by design.
I don't care much for the orientation while the video is displayed in Avidemux. So I just notified that the smartphone was rotated.

Quote
The rotation metadata must be set in the configuration of the Mp4 muxer.
I have verifiered that the settings is "Video drehen: Nicht drehen". (Don't rotate Video) But Avidemux changed the orientation.

Quote
I found a filter to rotate the video while saving and hope that rotating by 90 degrees will get it in the correct orientation (not upside down). But this is time consuming and cumbersome. Can Avidemux be instructed to Keep the original orientation?

Quote
Yes, it can.

Please use a current (190804 or later) build of Avidemux, this feature was not present before 2019-01-18.
I used Avidemux 2.7.3 before, sorry for omitting the used version. I tried the "nightly" build from http://www.avidemux.org/nightly/win64/avidemux_r190804_win64Qt5_52.zip
The behavior didn't change.


eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 3186
Re: Avoid rotating video
« Reply #3 on: August 05, 2019, 05:36:35 AM »
I was unclear / misleading. The user is responsible of telling Avidemux how to rotate the video, Avidemux won't read the metadata from a source video and automatically apply when muxing with the Mp4 muxer, i.e. the output will be by default always not rotated = as displayed in the Avidemux video preview.

Before 2019-01-18 it was impossible to set any rotation metadata at all, now it is possible to do so manually in the configuration of the Mp4 muxer only.

Quote
But Avidemux changed the orientation.

It did not change orientation, it simply did not set the rotation metadata, exactly as you ordered ("Nicht drehen" = "Do not rotate").
« Last Edit: August 05, 2019, 05:40:51 AM by eumagga0x2a »