Page 1 of 1

Rotation tag

Posted: Wed Jul 08, 2020 4:57 am
by biuro74

I'm not sure if this is a bug in current Media Coder software, or it is a lacking feature.

I've been using MC many years, all successfully... until now.
I've noticed issues with videos with "Rotation" tag set to 90*

When I open such movie on my PC - a player (BestPlayer) shows movie - for example - 180 deg. rotated (I always encode movies, which is required for further editing with VSDC Video Editor), and with correct aspect and resolution (so it's horizontal, with 1920x1080 res).
When I open it with Media Code, I have (Properties):

ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 23 min 49 s
Source duration : 23 min 49 s
Bit rate : 17.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Rotation : 90°
Frame rate mode : Variable
Frame rate : 30.000 FPS
Minimum frame rate : 22.983 FPS
Maximum frame rate : 34.404 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.273
Stream size : 2.83 GiB (98%)
Source stream size : 2.83 GiB (98%)
Title : VideoHandle
Language : English
Encoded date : UTC 2020-07-07 16:28:53
Tagged date : UTC 2020-07-07 16:28:53
mdhd_Duration : 1429895
Codec configuration box : avcC

Issues start - when I try to encode them.

Simple encoding, only a codec change (Container tab ammended to AVI), the rest settings is set to defualt (Revert All Settings), and here we have Properties:

Resolution: 1080x1920
Aspect Ratio: 563:1000 (0.56:1)
Pixel Aspect Ratio: 1.00
And of course video being shown with BestPlayer is "vertical", and 90 CW-ed.

The more I go into trees, it becomes darker :) Manipulating with Picture tab and Effect opposite tab - gives me nothing. Exactly the same results: 90CW and 180 degrees option looks exactly the same at destination file, and 90CCW is just 180-degreed comparing to previous two.
Aspect Ratio and Resize will not help as well, effects are null - video still looks exactly the same: 1080x1920, vertical. In any combination.

So please can you add some support to "Rotation*" marked videos to make it easier to manipulate them ? I presume Rotation tab has been added just for that reason, but it doesn't work clearly, or even doesn't work in my case in 0.8.61 (6010 build) version. As I understand, simple encoding a video with "Rotation" tag set to 90* will change aspect to 1080x1920, and it is OK - but what I get by ammending all options in Picture and Rotation tabs is rather random, and not expected.

Please advice.