Linux 1.01: MOV/MP4 playback broken after upgrade

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

Moderators: helmut, XnTriq, xnview

Post Reply
nieko
Posts: 3
Joined: Wed Aug 17, 2022 7:34 am

Linux 1.01: MOV/MP4 playback broken after upgrade

Post 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.
User avatar
xnview
Author of XnView
Posts: 46267
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

if you start xnview from console do you see error message? which linux distribution?
Pierre.
nieko
Posts: 3
Joined: Wed Aug 17, 2022 7:34 am

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

Post 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"
Attachments
screenlog.1.gz
(1.63 KiB) Downloaded 52 times
User avatar
xnview
Author of XnView
Posts: 46267
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

1.01 use new video engine component.

please try to install missing components

Code: Select all

apt install vainfo
Pierre.
nieko
Posts: 3
Joined: Wed Aug 17, 2022 7:34 am

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

Post 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!
argumon
Posts: 49
Joined: Sun Mar 10, 2013 9:02 pm

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

Post 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
argumon
Posts: 49
Joined: Sun Mar 10, 2013 9:02 pm

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

Post 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
User avatar
xnview
Author of XnView
Posts: 46267
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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?
Pierre.
argumon
Posts: 49
Joined: Sun Mar 10, 2013 9:02 pm

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

Post 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
cday
XnThusiast
Posts: 4397
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

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

Post 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.
User avatar
xnview
Author of XnView
Posts: 46267
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

could you try EGL mode but setting env var QT_XCB_GL_INTEGRATION=xcb_egl?
Pierre.
argumon
Posts: 49
Joined: Sun Mar 10, 2013 9:02 pm

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

Post by argumon »

Yepp, that worked, many thanks!
I haved added that line to my xnview.sh
argumon
Posts: 49
Joined: Sun Mar 10, 2013 9:02 pm

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

Post 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)
argumon
Posts: 49
Joined: Sun Mar 10, 2013 9:02 pm

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

Post 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
Post Reply