Page 1 of 1

VLC media player + nvidia card: solution to seg fault

Posted: Tue Sep 26, 2023 6:28 pm
by don570

VLC media player + nvidia video card

Dell Optipex desktop with Nvidia Geforce GT 1030 video card inserted

I installed nvidia proprietary video driver as described here

However when I double-clicked on video file to open it, there was a segmentation crash.(Audio files play OK)
Here is terminal output

Code: Select all

# vlc ./yt5s*
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000000001c181b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 1.17.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007fd0100017f0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_17
[1]+  Killed                  vlc .yt5s*
Segmentation fault

I checked on internet for any suggestions and found
https://forum.manjaro.org/t/vlc-crashes ... deo/135640

So here is my solution for Fatdog64 users who have a similar problem.

Just go to vlc preferences and make one change --->
In Video section under 'Output' change from 'Automatic' to 'VDPAU output' (see image)

screenshot-vlc-output-pref2.png
screenshot-vlc-output-pref2.png (60 KiB) Viewed 604 times

VLC media player will now work as expected. Note that it is the default media player.
By the way 'VDPAU output' accelerates the playing of the video using the card so it is a good thing.
It is a feature of nvidia cards (not a bug :lol: )
_____________________________________________________________