Unable to play video in VLC media player  [Solved]

Message
Author
theitercept

Re: Unable to play video in VLC media player

#11 Post by theitercept »

Stevo wrote: Sat Sep 07, 2019 5:13 pm Your VLC's not built against the same version of Mesa, libva, and/or ffmpeg that you have installed. Va-api hardware accelerated video is pretty fragile in that way. The Debian VLC 3.0.8's va-api won't work on MX, for example. I build our main repo's VLC against the newer versions of those libraries in MX main, and then another version of VLC for the test repo against the newer versions of those in testing. So it boils down to the versions of those libraries and the build of VLC you have. If you upgraded one part of those libraries from the test repo and not the others, that can break it.

The quick and dirty fix is to disable the hardware acceleration in VLC's Tools--Preferences--Input/Codecs, and then restart VLC. A more satisfying fix is to get the acceleration to work.
Disabling hardware acceleration worked for me. I would like to know what are the things i should uninstall from test repo for vlc to work properly.

User avatar
JayM
Posts: 6796
Joined: Tue Jan 08, 2019 3:47 am

Re: Unable to play video in VLC media player

#12 Post by JayM »

Can you run Quick System Info then just right-click/paste in a reply. No need to copy/paste, Quick System Info already copies it for you and pre-formats it for posting in the forum. Having information about your computer would be handy for the rest of us when making suggestions. Thanks.
Please read the Forum Rules, How To Ask For Help, How to Break Your System and Don't Break Debian. Always include your full Quick System Info (QSI) with each and every new help request.

User avatar
truongtfg
Posts: 8
Joined: Sun Jul 15, 2018 9:22 am

Re: Unable to play video in VLC media player

#13 Post by truongtfg »

Recently my laptop and PC also have this issue, the sound is fine, but the video is black. What I did to fix it without disabling hardware acceleration was changing the Output option in Tools/Preferences/Videos from 'Automactic' to 'Xvideo output (XCB)', then reopen the file.

Edit, Actually changing the output to 'Xvideo output (XCB)' seems to disable hardware acceleration. Instead, I have tried changing the Hardware-accelerated decoding in Tools/Preferences/Videos/[Input/Codecs] from Automatic or VDPAU to VA-API video decoder, and it also works. Apparently, VLC chooses VDPAU by default.
On second thought, I read that VA-API is used by Intel graphic card while VDPAU is for NVIDIA/AMD cards. On my PC with a RX 470, does it mean that hardware acceleration is disabled when I switch to VA-API?

BTW, my Laptop uses Intel integrated card. And Mesa driver version is 18.3.6-2.

User avatar
Stevo
Developer
Posts: 14488
Joined: Fri Dec 15, 2006 7:07 pm

Re: Unable to play video in VLC media player  [Solved]

#14 Post by Stevo »

If you want to use the VLC from the test repo with va-api hardware acceleration, then you should also upgrade ffmpeg from the test repo to the current 4.1.4. I think that will bring in Mesa 18.3.6 from the test repo, since I built ffmpeg 4.1.4 and then the test repo VLC against it.

I do know va-api works for me with the test repo VLC, ffmpeg, and Mesa libraries. You can install vainfo from the test repo and run it to make sure you have a working va-api, but remember it's not backwards-compatible, so the Debian or our main repo VLC's hardware acceleration won't work with the test repo's version.

Post Reply

Return to “Software / Configuration”