VCL bug ? : it crashes when I open a video using VDPAU video decoder.

Hello.

I stored my videos on a disk that has ZFS as a fs. When I try to open a video with vlc as a normal user,vlc closes after some seconds and I see this message on the terminal :

Code:
VLC media player 3.0.20 Vetinari (revision 963fa2817415)
[0000000814c66ae0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  535.104.05 Sat Aug 19 00:39:34 UTC 2023 for hardware decoding

and VLC produces a core file because it crashes. It seems to me that there could be a bug in VLC,because I've installed correctly the nvidia driver on my system (FreeBSD 14.0-RELEASE) :

Code:
$ nvidia-smi

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.05             Driver Version: 535.104.05   CUDA Version: N/A      |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|  | | MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1060 3GB    Off | 00000000:01:00.0  On |                  N/A |
| 57%   43C    P0              30W / 120W |    431MiB /  3072MiB |      0%      Default |
|  | | N/A |
+-----------------------------------------+----------------------+----------------------+
                            
+---------------------------------------------------------------------------------------+
| Processes:                                |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
| ID ID                               Usage |
|=======================================================================================|
|    0   N/A  N/A      7518      G   /usr/local/libexec/Xorg                     172MiB |
| 0 N/A N/A 7609 G xfwm4  2MiB |
| 0 N/A N/A 8219 G firefox  253MiB |
+---------------------------------------------------------------------------------------+

I don't know if it is correct,because VLC does not crash if I choose "VA-API video decoder",but it does if I use "VDPAU" video decoder or automatic.

I would like to know if there is a problem on VLC or in my system. Thanks.
 
Sorry Sir,

it was a typo. I'm using RELEASE :

Code:
# uname -a
FreeBSD marietto 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023     
root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
 
Hi,

I had the same problem the last few days on FreeBSD 13.2 with a GTX 1070 ti: segmentation fault when hardware acceleration (VDPAU) is enabled. I thought the same, this is likely a bug in VLC.
 
Hi,

I had the same problem the last few days on FreeBSD 13.2 with a GTX 1070 ti: segmentation fault when hardware acceleration (VDPAU) is enabled.

you had ? do you still have it even today or you solved it in some way ?
 
Why you don't set the hardware acceleration to VA-API video decoder instead of disabling it ? It works fine for me...
 
I plan to report this bug on the nvidia and on the VLC forums. Anyway,someone can explain if using VA-API instead of VDPAU produces a performance loss ?
 
I would like to know if there is a problem on VLC or in my system.
Can you try using a different video player so we know whether it's VLC's issue or not? multimedia/mpv is available and easy to use:
mpv ./video.ext
someone can explain if using VA-API instead of VDPAU produces a performance loss ?
I don't really know that much about this kind of thing, but from what I've read, apparently the proprietary Linux Nvidia drivers implement VDPAU, so VA-API is not directly usable (just uses a wrapper for VDPAU). This would hypothetically mean worse performance using VA-API. Of course, it's best to just experiment and find which yields better results (if you get VDPAU working).
 
The actual nvidia-driver port update solved the VLC problem for me.

My machine needs nvidia-driver-470 which doesn't yet have an update in the ports tree so I thought I'd update it "manually" to see if that did the trick (see https://download.nvidia.com/XFree86/FreeBSD-x86_64/ for available versions).

Code:
 $ uname -a
FreeBSD zoo-FreeBSD.home 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon Dec 11 04:56:01 UTC 2023

Code:
$ cd /usr/ports/x11/nvidia-driver-470
# pkg delete nvidia-driver-470
# make DISTVERSION=470.223.02 -DNO_CHECKSUM install clean

This is the same nvidia driver version I have on Debian Sid and Void. Unfortunately this doesn't solve the problem for me so for the moment I still have to use XVideo output (XCB) instead of Automatic or VDPAU. It was working ok until fairly recently, but I can't remember which pkg update(s) broke it.
 
I don't see the user jmos anymore
He still there?


Has that user been removed ?
Account is still active. Last seen on Wednesday (2 Jan. 2024).
 
Well it seems to be working again now after today's updates from the latest branch of the pkg repo:

Code:
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: dbus upgraded: 1.14.10_1,1 -> 1.14.10_2,1
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: libxkbcommon upgraded: 1.6.0 -> 1.6.0_1
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: ffmpeg upgraded: 6.1_5,1 -> 6.1.1,1
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: acpi_call upgraded: 1.0.1_1 -> 1.0.1_2
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: sudo upgraded: 1.9.15p4 -> 1.9.15p5
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: nvidia-settings upgraded: 470.86_1 -> 535.146.02
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: yt-dlp upgraded: 2023.11.16_1 -> 2023.12.30_1
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: sccache-overlay upgraded: 0.2.15_22 -> 0.2.15_23
Jan  9 01:37:23 zoo-FreeBSD pkg[35657]: xterm upgraded: 388 -> 389
.

Of these, I'm assuming it must have been the ffmpeg update that did it.
 
I'm not sure that it is caused by ffmpeg,because I have upgraded it to your version and I still have the problem.
 
I'm not sure that it is caused by ffmpeg,because I have upgraded it to your version and I still have the problem.

Those were all binary updates via pkg (therefore default config options). One difference from you is that I'm using nvidia-driver-470-470.223.02. Maybe that is relevant?

Oh and I set the video output back to Automatic. I just checked it still works if I set it explictly to VDPAU (not quite sure if that's what Automatic uses).

And (just to clarify), before the pkg updates I listed in my previous post it wasn't working for me and now it is.

I should also maybe add that when I built nvidia-driver-470-470.223.02, as detailed above, I turned off Linux compatibility support because I don't need it. Would be surprised if that had any relevance though.

Another minor addendum:

Code:
 $ pkg info -a | grep vlc
vlc-3.0.20_3,4               Qt based multimedia player and streaming server
 
Back
Top