News:

--

Main Menu

Avoid rotating video

Started by harper, August 04, 2019, 05:43:58 PM

Previous topic - Next topic

harper

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

Quote from: harper on August 04, 2019, 05:43:58 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.

QuoteAfter saving the file it's still in the wrong orientation.

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

QuoteI 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

Quote from: harper on August 04, 2019, 05:43:58 PM
Unfortunately the video is rotated in Avidemux to landscape orientation.

QuoteAvidemux 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.

QuoteThe 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.

QuoteI 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?

QuoteYes, 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

#3
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.

QuoteBut 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").