Page 1 of 1

Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed Aug 17, 2022 7:46 am
by nieko
Hello!

After upgrading from XnView MP 0.99 to XnView MP 1.01 (on Ubuntu Linux), MOV/MP4 video playback broke.

With XnView MP 0.99, MOV/MP4/AVI would play fine. With XnView MP 1.01, AVI still works fine, all video thumbnails are being generated correctly in the XnView browser (MOV/MP4/AVI), and I can hear the audio. But instead of video playback, the view is black (blank).

How could I best debug/fix this?

More info:
- Version: XnView MP Linux, Version 1.01 64bits (Aug 9 2022), Libformat version 7.114
- Tools => Settings => File list => Custom filter => Video opens with XnView
- I emptied the catalog before testing
- I have installed ubuntu-restricted-extras
- MOV/MP4 video playback works fine in Celluloid, VLC, MPlayer, etc.

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed Aug 17, 2022 11:08 am
by xnview
if you start xnview from console do you see error message? which linux distribution?

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed Aug 17, 2022 11:17 am
by nieko
I don't see anything specific in the console output. I've included the output as an attachment.

My Linux distribution (from /etc/lsb_release): DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed Aug 17, 2022 12:52 pm
by xnview
1.01 use new video engine component.

please try to install missing components

Code: Select all

apt install vainfo

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed Aug 17, 2022 2:50 pm
by nieko
I read on https://wiki.archlinux.org/title/Hardwa ... celeration about LIBVA_DRIVER_NAME, and noticed that running `LIBVA_DRIVER_NAME=i965 vainfo` yielded more profiles than running just `vainfo`, which defaulted to iHD.

After running `apt purge intel-media-va-driver`, `vainfo` now defaults to i965, and video playback in XnView has been fixed :)

Thank you for the pointers!

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Thu Sep 08, 2022 10:02 pm
by argumon
Same problem here on OpenSuse Tumbleweed. The article for Arch doesn't help here, any ideas?
vainfo is installed but doesn't help

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Sun Sep 11, 2022 10:29 pm
by argumon
Double checked with an older Version 1.0 64bits (Apr 29 2022) I found

On the same system, everything works fine with that version, but is is broken in 1.2 and 1.3

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Mon Sep 12, 2022 6:36 am
by xnview
argumon wrote: Sun Sep 11, 2022 10:29 pm Double checked with an older Version 1.0 64bits (Apr 29 2022) I found

On the same system, everything works fine with that version, but is is broken in 1.2 and 1.3
Please could you try:
- in xnview.ini, change "debug=2" in the "General" section
- start xnview from terminla
- select a video file
- send me the logs?

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Mon Sep 19, 2022 6:57 pm
by argumon
I have two logfiles for you. Hopefully this is what you need, I ran xnview.sh > video.log.
- video.log: audio is played, but only a static green image is shown.
-video-crash.log: crashed on selecting another video
Does that help?

BTW: cannot attach the files, always getting an 'invalid file extension' error. Will try PM

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Mon Sep 19, 2022 9:33 pm
by cday
argumon wrote: Mon Sep 19, 2022 6:57 pm BTW: cannot attach the files, always getting an 'invalid file extension' error. Will try PM
It should be possible to attach a file of any file format if it is placed in a ZIP or similar archive, provided the file size is less than the current forum limit of 2MiB.

Otherwise, as an attachment to an email to xnview at the contact address on the website home page, or post a download link to the file on a file hosting service.

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Tue Sep 20, 2022 1:05 pm
by xnview
could you try EGL mode but setting env var QT_XCB_GL_INTEGRATION=xcb_egl?

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Tue Sep 20, 2022 6:06 pm
by argumon
Yepp, that worked, many thanks!
I haved added that line to my xnview.sh

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed Nov 23, 2022 1:18 pm
by argumon
xnview wrote: Tue Sep 20, 2022 1:05 pm could you try EGL mode but setting env var QT_XCB_GL_INTEGRATION=xcb_egl?
With 1.3.1 I had another issue where XNViewMP hangs, when exiting fullscreen mode. This was also fixed by adding that setting to xnview.sh (OpenSuse Tumbleweed)

Re: Linux 1.01: MOV/MP4 playback broken after upgrade

Posted: Wed May 31, 2023 2:43 pm
by argumon
OK, though this is old, I found a solution that maybe someone will find usefull.
In my case, the crashes when playing videos were from wrong/broken libraries in OpenSuse Tumbleweed. What fixes that has been reinstalling the codes with
sudo zypper install opi
opi codecs
as described here: https://en.opensuse.org/SDB:Installing_ ... positories