MP4 Video wrong orientation if made in portrait

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: MP4 Video wrong orientation if made in portrait

Post by *Usher »

ghisler(Author) wrote: 2021-06-18, 16:57 UTC it would be great if some of you could test whether the following sample app shows your video correctly (upgright and without extra borders):
https://www.totalcommander.ch/win/tools/rotationtest.zip
Works OK in Windows XP with previously provided portraitmovie.mp4, but nothing more. It crashes when minimized and doesn't clean its window when the video playback is finished.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: MP4 Video wrong orientation if made in portrait

Post by *petermad »

Both versions show my test video https://madsenworld.dk/tcmd/portraitmovie.mp4 with correct orientation :-)

Using LAV filters version 0.75
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: MP4 Video wrong orientation if made in portrait

Post by *ghisler(Author) »

Thanks for your tests! I noticed that the filter crashes when reducing the height or width to 0, so this may be the reason of the crash when minimizing.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: MP4 Video wrong orientation if made in portrait

Post by *petermad »

2ghisler(Author)
I didn't try resizing or minimizing earlier, but can confirm the crach if I reduce the height to 0 or minimize. I cannot reduce the width to 0.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: MP4 Video wrong orientation if made in portrait

Post by *petermad »

history.txt wrote:18.06.21 Fixed: Internal media player: detect whether a video needs to be rotated because it was filmed in portrait mode, or upside down - uses vmr9rotator.dll (32/64)
Seems to fix things in TC 10.50b1 :-)

Usein LAC filters 0.75.1
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
jjmaia
New Member
New Member
Posts: 0
Joined: 2022-08-30, 16:51 UTC

Re: MP4 Video wrong orientation if made in portrait

Post by *jjmaia »

Hi all,

I've read the entire topic but to be honest I did not get much... I use MPC (cinema) as my main player, and vertical videos come has horizontal, which is supper annoying. I know the issue is to with the videos because if I open them with Windows Films & TV app they come as vertical.

Any way to correct this?

Thank you for your help.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: MP4 Video wrong orientation if made in portrait

Post by *Horst.Epp »

No problems here using the MPC from the K-Lite codec package, which is installed system-wide.
I have many such videos and they are all rotated correctly using the MPC from TC.

Code: Select all

MPC-HC (64-bit)
---------------

Build information:
    Version:            1.9.23 (a8e9113b5)
    Compiler:           MSVC v19.29.30145
    Build date:         Aug 26 2022

LAV Filters:
    LAV Splitter:       0.76.1.25
    LAV Video:          0.76.1.25
    LAV Audio:          0.76.1.25
    FFmpeg compiler:    MinGW-w64 GCC 11.3.0

Operating system:
    Name:               Windows 11 (Build 21H2)
    Version:            10.0.22000 (64-bit)

Hardware:
    CPU:                Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    GPU:                NVIDIA GeForce MX110 (driver version: 30.0.15.1236)

Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: MP4 Video wrong orientation if made in portrait

Post by *ghisler(Author) »

TC uses the orientation flag from the video itself, as written by phones when recording a vertical video.
Author of Total Commander
https://www.ghisler.com
Post Reply