XnViewMP 0.92: portrait videos playing upside down

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

fabiorfreitas
Posts: 2
Joined: Thu Jan 31, 2019 6:15 pm

XnViewMP 0.92: portrait videos playing upside down

Post by fabiorfreitas »

XnView: MP 0.92
OS: Windows 10 1803 64bit
KLite Mega Codec Pack 14.6.0

XnViewMP plays portrait videos upside down both on the preview an on the built-in player. Works fine with MPC-HC. Happens to multiple files. XnViewMP was installed from scratch.

Sample File: https://drive.google.com/file/d/1c1KRLA ... sp=sharing

Thanks for your help,
Fabio
fabiorfreitas
Posts: 2
Joined: Thu Jan 31, 2019 6:15 pm

Re: XnViewMP 0.92: portrait videos playing upside down

Post by fabiorfreitas »

Update: issue persists in 0.93
BigBob
Posts: 1
Joined: Sun Mar 24, 2019 2:45 pm

Re: XnViewMP 0.92: portrait videos playing upside down

Post by BigBob »

fabiorfreitas wrote: Wed Feb 06, 2019 9:35 pm Update: issue persists in 0.93
I can confirm the problem under ubuntu linux 18.04.2 LTS, with xnview version 0.93.1 :

Code: Select all

bigbob@bigbob-UX31A:~$ lsb_release -a && echo && apt-cache show xnview
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic

Package: xnview
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 16
Maintainer: None <none@none.com>
Architecture: amd64
Version: 0.93.1
Description: Graphic viewer, browser, converter.
Description-md5: 13e824677875feb8d79e0137b75181f5
Homepage: http://www.xnview.com
Attachments
Capture du 2019-03-24 à 15h50m29s.png
40billion
Posts: 3
Joined: Tue Jul 20, 2021 8:14 pm

Re: XnViewMP 0.92: portrait videos playing upside down

Post by 40billion »

The issue of video playing upside down is still continuing.

Is there any possibility of a fix being issued ?
User avatar
masterjp
Posts: 424
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: XnViewMP 0.92: portrait videos playing upside down

Post by masterjp »

If you record a movie with your camera or smartphone, an orientation information is saved within the movie file (rotation information).
Standard video player (VLC, mpc player, etc.) can use on the fly rotation, to fix the problem.

There are a few video tools, which can change the orientation/rotation information within the video file.
Sometimes it works, on some it does not work.

Try to look on google to find such a tool. I think ffmpeg can do the job.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XN-View 2.51.5 | XnViewMP 1.6.5 | XnConvert 1.100.1 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 0.92: portrait videos playing upside down

Post by xnview »

40billion wrote: Wed Jul 21, 2021 11:00 pm The issue of video playing upside down is still continuing.

Is there any possibility of a fix being issued ?
on windows?
Pierre.
stevehero
Posts: 77
Joined: Fri Feb 12, 2021 9:17 pm

Re: XnViewMP 0.92: portrait videos playing upside down

Post by stevehero »

This issue for me is on Windows (latest build) anyway.

The thumbnails don't match either. But I guess that would involve reading the metadata info and slow things down a bit.

I think it's the way XnView reads the metadata of the rotation.

See the screenshot where I've corrected it for XnView but in all other programs, the rotation is wrong.

If I revert the file back to work in File Explorer Preview or PotPlayer, then XnView is wrong.
I can only assume that FileExplorer and PotPlayer are both correct.
Attachments
Video Rotation Metadata.png
User avatar
masterjp
Posts: 424
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: XnViewMP 0.92: portrait videos playing upside down

Post by masterjp »

Why don't you use the latest XnviewMP 0.98.4 version?
It contains the latest video decoder/filters!

I tested some mp4 video files from smartphone (Samsung S10) and with XnViewMP 0.98.4 the playback is fine!
A few thumbnails are upside down the same way you decribed and do not use the correct orientation information from the video file.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XN-View 2.51.5 | XnViewMP 1.6.5 | XnConvert 1.100.1 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net
stevehero
Posts: 77
Joined: Fri Feb 12, 2021 9:17 pm

Re: XnViewMP 0.92: portrait videos playing upside down

Post by stevehero »

I'm using that version.
User avatar
masterjp
Posts: 424
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: XnViewMP 0.92: portrait videos playing upside down

Post by masterjp »

In this forum somebody changed the video file orientation information with the exiftool.

https://superuser.com/questions/1307158 ... g-metadata
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XN-View 2.51.5 | XnViewMP 1.6.5 | XnConvert 1.100.1 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net
stevehero
Posts: 77
Joined: Fri Feb 12, 2021 9:17 pm

Re: XnViewMP 0.92: portrait videos playing upside down

Post by stevehero »

Tried that. It didn't have any effect.

All players as I stated in the first post I tried playing, played the video correctly. XnViewMp did not.
alexo
Posts: 23
Joined: Fri Sep 01, 2017 1:30 am

Re: XnViewMP 0.92: portrait videos playing upside down

Post by alexo »

Same issue on 0.98.4 under Windows 10

Sample clip:
https://mega.nz/file/O90WHS4A#FmzlB01SH ... ue4SUvfM5k
stoutmensch
Posts: 2
Joined: Fri Sep 24, 2021 6:43 am

Re: XnViewMP 0.92: portrait videos playing upside down

Post by stoutmensch »

I confirm a bug in xnviewmp with rotation value in exif. Using Linux.
I tested different rotations via exiftool. You can try it with:
exiftool -Rotation=0 file.mp4
exiftool -Rotation=90 file.mp4
exiftool -Rotation=180 file.mp4
exiftool -Rotation=270 file.mp4

Result is: Rotation=0 and Rotation=180 work correctly in xnviewmp. But 90 and 270 are interpreted inverted in xnviewmp. e.g 90 rotates left instead of right. And 270 rotates right instead of left.
That's definitely a bug.
alexo
Posts: 23
Joined: Fri Sep 01, 2017 1:30 am

Re: XnViewMP 0.92: portrait videos playing upside down

Post by alexo »

It's been over two years since this issue was reported (see viewtopic.php?f=62&t=37840).
[ Edit: almost three years: viewtopic.php?t=38328 ]

What makes it so difficult to fix?
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnViewMP 0.92: portrait videos playing upside down

Post by xnview »

alexo wrote: Fri Sep 24, 2021 1:35 pm What makes it so difficult to fix?
XnView MP uses a component based on ffmpeg, and there is no way to manage orientation. You can try the system player by editing your xnview.ini
useInternalVideoPlayer=false
Pierre.
Post Reply