Page 1 of 1

Video thumbnail rotation

Posted: Sat Jan 11, 2020 4:23 pm
by flatfield
Hello everyone,

with xnviewmp 0.94.2 (16 bit version) I have an issue with video thumbnail rotation. In particular example, it is a video taken with an iPhone selfie cam which has "Rotation=180" in its metadata. VLC plays the video in its correct orientation, also the video thumbnail in Windows explorer has the correct orientation.

But the video thumbnail in xnviewmp is upside down. Could it be that the "Rotation" tag is not evaluated for video thumbnail creation in xnviewmp?

Thanks,
Georg

Re: Video thumbnail rotation

Posted: Mon Jan 13, 2020 8:21 am
by xnview
could you send me a video sample?

Re: Video thumbnail rotation

Posted: Mon Jan 13, 2020 5:42 pm
by flatfield
Hi Pierre,

I sent you two small sample vids via email (one for portrait mode, one for 180 degs rotation).

Thanks a lot for looking into this.

Best,
Georg

Re: Video thumbnail rotation

Posted: Sun Mar 22, 2020 8:08 am
by flatfield
Hi Pierre,

did you have a chance to look into this?

Thanks a lot,
Georg

Re: Video thumbnail rotation

Posted: Mon Mar 23, 2020 4:15 pm
by xnview
currently i have no way to fix it, i'll ask FFMPEG team

Re: Video thumbnail rotation

Posted: Sat Mar 28, 2020 5:42 am
by flatfield
Hello Pierre,

what's your call to ffmpeg to create the thumbnails?

I have tried

Code: Select all

ffmpeg -i input.MOV -ss 00:00:00.0 -vframes 1 out.jpg
as well as

Code: Select all

ffmpeg -i input.MOV -vf thumbnail -frames:v 1 out.jpg
on my local build of ffmpeg, and the output has the right orientation for the sample videos I sent you.

Please also note, it is not an issue with ALL portrait mode videos. For example, portrait mode videos edited with splice on my iPhone, do have the correct thumbnail orientation in xnviewmp.

Thanks and best regards,
Georg

Re: Video thumbnail rotation

Posted: Tue Mar 31, 2020 10:16 am
by xnview
i use QtAV based on ffmpeg not ffmpeg

Re: Video thumbnail rotation

Posted: Thu Aug 13, 2020 3:30 am
by flatfield
Hello Pierre,

is there a statement from the QtAV team regarding this bug?

Thanks,
Georg

Re: Video thumbnail rotation

Posted: Thu Aug 13, 2020 2:06 pm
by xnview
flatfield wrote: Thu Aug 13, 2020 3:30 am is there a statement from the QtAV team regarding this bug?
i'll contact them

Re: Video thumbnail rotation

Posted: Wed Aug 19, 2020 5:47 am
by flatfield
Hello Pierre,

here are some more observations for a very new video file taken in portrait mode on an iPhone 11 iOS 13.6 and xnviewmp 0.96.4.

1. Playback of the affected video file with xnviewmp's internal player is always in portrait mode, but upside down. Playback with VLC is fine.
2. Interestingly enough, the thumbnail orientation in xnviewmp depends on the percentage the frame is extracted (as configurable in the settings):
  • Generate thumbnail at 0% (my default). Thumbnail is not OK and in landscape mode.
  • Change video thumbnail extraction percentage in Settings>Brower>Thumbnail to e.g. 50%. Perform "Rebuild Thumbnails" for this file. Thumbnail is now OK and correctly displayed in portrait mode.
  • Change back video thumbnail extraction percentage in Settings>Brower>Thumbnail to e.g. 10%. Perform "Rebuild Thumbnails" for this file. Thumbnail is now again not OK and incorrectly displayed in landscape mode.
Maybe this helps in analyzing this. Video file can be provided if required.

Thanks,
Georg

Re: Video thumbnail rotation

Posted: Tue Jan 05, 2021 6:40 pm
by jftheoret
Hello!

I also get the issue on version Version 0.98.0 64bits (Dec 14 2020).

May I be of some help to try to track the issue?