Video playback orientation for portrait videos

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Giacomo Marchèt
Posts: 19
Joined: Mon Jan 17, 2022 10:14 pm

Re: Video playback orientation for portrait videos

Post by Giacomo Marchèt »

no answers ? :(
User avatar
xnview
Author of XnView
Posts: 38288
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Video playback orientation for portrait videos

Post by xnview »

it's a known issue of QtAV library (based on ffmpeg)
Pierre.
walhalla
Posts: 10
Joined: Sat May 26, 2007 12:59 am

Re: Video playback orientation for portrait videos

Post by walhalla »

Hi,
3 years and there is no solution?! Tried several other software (VNC, Faststone Image Viewer, TC, ...): everytime videos are showed correctly. Only Xnview is showing all(!) videos wrong (took videos with several devices). So, I was thinking in buying Xnview - but ... this way it is useless. Why it does work without all other software?
User avatar
helmut
Moderator
Posts: 8668
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Video playback orientation for portrait videos

Post by helmut »

xnview wrote: Mon Feb 07, 2022 1:01 pm it's a known issue of QtAV library (based on ffmpeg)
Is there a solution for this known issue in the QTAV library in sight?
User avatar
xnview
Author of XnView
Posts: 38288
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Video playback orientation for portrait videos

Post by xnview »

helmut wrote: Thu Mar 03, 2022 3:59 am
xnview wrote: Mon Feb 07, 2022 1:01 pm it's a known issue of QtAV library (based on ffmpeg)
Is there a solution for this known issue in the QTAV library in sight?
Currently the only way is to use windows Direct2D decoder
Pierre.
User avatar
helmut
Moderator
Posts: 8668
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Video playback orientation for portrait videos

Post by helmut »

xnview wrote: Thu Mar 03, 2022 7:45 amCurrently the only way is to use windows Direct2D decoder
O.k., so in XnView Classic this is possible but XnView MP uses QTAV and therefore it's not possible - right? In this topic it's all about XnView MP (and not XnView Classic) right?
User avatar
xnview
Author of XnView
Posts: 38288
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Video playback orientation for portrait videos

Post by xnview »

helmut wrote: Thu Mar 03, 2022 8:40 pm
xnview wrote: Thu Mar 03, 2022 7:45 amCurrently the only way is to use windows Direct2D decoder
O.k., so in XnView Classic this is possible but XnView MP uses QTAV and therefore it's not possible - right? In this topic it's all about XnView MP (and not XnView Classic) right?
XnView Mp can use Direct2D driver by using

Code: Select all

useInternalVideoPlayer=false
Pierre.
m-a-r-k
Posts: 19
Joined: Sat Oct 31, 2020 4:58 pm
Location: Highland, Scotland

Re: Video playback orientation for portrait videos

Post by m-a-r-k »

It doesn't work here with XnView MP as already reported. Most phone (Google Pixel phones) videos simply don't play, all I get is a blank screen. Those that do play are not rotated. Other videos where I've used software to rotate these videos do play.
User avatar
xnview
Author of XnView
Posts: 38288
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Video playback orientation for portrait videos

Post by xnview »

m-a-r-k wrote: Fri Mar 04, 2022 7:17 pm It doesn't work here with XnView MP as already reported. Most phone (Google Pixel phones) videos simply don't play, all I get is a blank screen. Those that do play are not rotated. Other videos where I've used software to rotate these videos do play.
could you send me a video file?
Pierre.
213.public
Posts: 1
Joined: Sun Jun 26, 2022 2:10 am

Re: Video playback orientation for portrait videos

Post by 213.public »

Hey Pierre,

Long time user/fan of XnView and have recently returned to a project organizing family photos. But I was pretty shocked to see that the video rotation bug is still present several years after being reported.

I've tried the suggestion of setting useInternalVideoPlayer=False but that just makes it so no video plays - I'm on Ubuntu, perhaps that works on Windows.

Did you ever get a response from the QTAV team? Going to be pretty frustrating to have to find another tool to use just for the video organization.

Any update would be appreciated. (I created an account just to post about this as it's that important).
fussfolk
Posts: 6
Joined: Sun Nov 01, 2015 1:29 pm

Re: Video playback orientation for portrait videos

Post by fussfolk »

Hi,

I might add to this topic as well (XnViewMP only):

a) Portrait videos are wrongly oriented in either preview or full-screen playback from any source (2 Samsung mobile phones, 2 Sony still cameras).
b) However, the effect exhibits differently if using the internal player (ffmpeg) vs. external codec:
b1) internal player (ffmpeg): Portrait video is flipped upside down.
b2) external codec (xnview.ini edited): video is rotated 90° to landscape format (though recorded in portrait).
c) thumbnail (1/4) is shown in landscape too.
d) "ExifToool Composite" (as shown in XnViewMP) says "Rotation 90".

Perhaps that helps in identifying the cause?


Thanks, and regards, fussfolk.