A VA-API implemention using NVIDIA's NVDEC

Overview

nvidia-vaapi-driver

This is an VA-API implementation that uses NVDEC as a backend. This implementation is specifically designed to be used by Firefox for accelerated decode of web content, and may not operate correctly in other applications.

This library requires that the nvidia_drm kernel module is configured with the parameter nvidia-drm.modeset=1

Codec Support

Only decoding video is currently supported.

Codec Supported Comments
AV1 Experimental support. Firefox 98+ is required.
H.264 ✔️
HEVC ✔️
VP8 ✔️
VP9 ✔️
MPEG-2 ✔️
VC-1 ✔️
MPEG-4 VA-API does not supply enough of the original bitstream to allow NVDEC to decode it.
JPEG This is unlikely to ever work, the two APIs are too different.

Currently, 10-bit and 12-bit videos are not supported due to the NVIDIA driver not allowing R16 and RG1616 surfaces to be imported. To view which codecs your card is capable of decoding you can use the vainfo command with this driver installed, or visit the NVIDIA website here.

Building

You'll need the gstreamer-plugins-bad library and the nv-codec-headers installed.

Then run the following commands:

meson setup build
meson install -C build

Debugging

The NVD_LOG environment variable can be used to control logging, NVD_LOG=1 will log to stdout, and NVD_LOG=<filename> will append to the specified file (or stdout if the file can't be opened).

Firefox

To use the driver with firefox you will need at least Firefox 96, the following config options need to be set in the about:config page:

Option Value Reason
media.ffmpeg.vaapi.enabled true Required, enables the use of VA-API.
media.rdd-ffmpeg.enabled true Required, default on FF97. Forces ffmpeg usage into the RDD process, rather than the content process.
media.av1.enabled false Optional, disables AV1. If your GPU doesn't support AV1, this will prevent sites using it and falling back to software decoding. Hopefully the site will fall back to using a different codec that is hardware accellerated.
gfx.x11-egl.force-enabled true This driver requires that Firefox use the EGL backend. If it isn't selecting it by default, it'll need to be forced on using this option or by setting the MOZ_X11_EGL environment variable to 1. It's recommended you try the environment variable method first to test it.
widget.dmabuf.force-enabled true Required for NVIDIA 470 series drivers, not required at all on 495+. This option has been shown to help getting decoding working on the 470 driver series. However it should be noted that Firefox isn't coded to allow DMA-BUF support without GBM support, so it may not function completely correctly when it's forced on.

In addition the following environment variables need to be set:

Variable Value Reason
LIBVA_DRIVER_NAME nvidia This forces libva to load the nvidia backend, as the current version doesn't know which driver to load for the nvidia-drm driver.
MOZ_DISABLE_RDD_SANDBOX 1 This disables the sandbox for the RDD process that the decoder runs in.
EGL_PLATFORM wayland This option is needed on FF98+, due to a regression that has been introduced.

MPV

Currently this only works with a build of MPV from git master.

There's no real reason to run it with mpv except for testing, as mpv already supports using nvdec directly. The test.sh script will run mpv with the file provided and various environment variables set to use the newly built driver

Issues
  • Driver not working on Firefox 99

    Driver not working on Firefox 99

    Hi there,

    I've upgraded to firefox-99.0b (beta1 and now beta2) some days ago and I am getting some wierd behavior that was not present before.

    Now, whenever a click on a youtbe video, e.g., I get NS_ERROR_OUT_OF_MEMORY error and the player stops.

    Log
    [94750-94750] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f273ab2ba60
    [94750-94750] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [94750-94750] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [94750-94750] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [94750-94750] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [94750-94750] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [94750-94750] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [94750-94750] ../src/vabackend.c: 457           nvCreateConfig got profile: 6 with 0 attributes
    [94750-94750] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [94750-94750] ../src/vabackend.c: 457           nvCreateConfig got profile: 13 with 0 attributes
    [94750-94750] ../src/vabackend.c: 457           nvCreateConfig got profile: 14 with 0 attributes
    [94750-94750] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [94750-94750] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f273ab2ba60
    [94750-94750] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [94750-94750] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95150-95170] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7efc8872b4c0
    [95150-95170] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95150-95170] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95150-95170] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95150-95170] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95150-95170] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95150-95170] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95150-95170] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95150-95170] ../src/vabackend.c: 457           nvCreateConfig got profile: 6 with 0 attributes
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7efc61774480 5
    [95150-95170] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7efc61774480 5
    [95150-95170] ../src/vabackend.c: 457           nvCreateConfig got profile: 13 with 0 attributes
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7efc61774380 5
    [95150-95170] ../src/vabackend.c: 457           nvCreateConfig got profile: 14 with 0 attributes
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 (nil) 0
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 0x7efc61774880 5
    [95150-95170] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95150-95170] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7efc61774080 5
    [95150-95171] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7efc61774a00 5
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32508
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7efc61774200 5
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95150-95171] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7efc61775900 5
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32508
    [95150-95171] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7efc61775980 5
    [95150-95171] ../src/vabackend.c: 635          nvCreateContext with 18 render targets, 18 surfaces, at 1920x1080
    [95150-95171] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [95150-95171] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 205A00000 (2048) for surface 24 (picIdx: 0)
    [95150-95171] ../src/export-buf.c: 300          allocateSurface presenting frame 1920x1080 0x7efc60bfe940 0x7efc60bfea60
    [95150-95171] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7efc61898151
    [95150-95171] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7efc61898151
    [95150-95171] ../src/export-buf.c: 421            exportCudaPtr Detected NV12/NV21 NVIDIA driver bug, attempting to work around
    [95150-95171] ../src/export-buf.c: 364              freeSurface Destroying EGLImage: 0x7efc61898151
    [95150-95171] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7efc60bfe940
    [95150-95171] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7efc60bfea60
    [95150-95171] ../src/export-buf.c: 300          allocateSurface presenting frame 1920x1080 0x7efc60bfe940 0x7efc60bfea60
    [95150-95171] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7efc618983e1
    [95150-95171] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7efc618983e1
    [95150-95171] ../src/export-buf.c: 431            exportCudaPtr Work around successful!
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a244fd400 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [95185-95199] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7fd0e2d2a3e0
    [95185-95199] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95185-95199] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95185-95199] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95185-95199] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95185-95199] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95185-95199] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95185-95199] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 6 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7fd0c0bdff00 5
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7fd0c0bdfb80 5
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 13 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7fd0c0bdff00 5
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 14 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 0x7fd0c0bdf800 5
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7fd0c0bdf200 5
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7fd0c0bdf800 5
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32720
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7fd0c0bdf900 5
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 854x480, format 1
    [95185-95199] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7fd0c0be0180 5
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32720
    [95185-95199] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7fd0c0be0900 5
    [95185-95199] ../src/vabackend.c: 635          nvCreateContext with 18 render targets, 18 surfaces, at 854x480
    [95185-95199] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [95185-95199] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 205828000 (1024) for surface 24 (picIdx: 0)
    [95185-95199] ../src/export-buf.c: 300          allocateSurface presenting frame 854x480 0x7fd0c28fda60 0x7fd0c28fdb80
    [95185-95199] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7fd0c0cfee51
    [95185-95199] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7fd0c0cfee51
    [95185-95199] ../src/export-buf.c: 421            exportCudaPtr Detected NV12/NV21 NVIDIA driver bug, attempting to work around
    [95185-95199] ../src/export-buf.c: 364              freeSurface Destroying EGLImage: 0x7fd0c0cfee51
    [95185-95199] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7fd0c28fda60
    [95185-95199] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7fd0c28fdb80
    [95185-95199] ../src/export-buf.c: 300          allocateSurface presenting frame 854x480 0x7fd0c28fda60 0x7fd0c28fdb80
    [95185-95199] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7fd0c0cfe831
    [95185-95199] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7fd0c0cfe831
    [95185-95199] ../src/export-buf.c: 431            exportCudaPtr Work around successful!
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a257eea00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [95214-95225] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f8931f2bc40
    [95214-95225] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95214-95225] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95214-95225] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95214-95225] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95214-95225] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95214-95225] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95214-95225] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95214-95225] ../src/vabackend.c: 457           nvCreateConfig got profile: 6 with 0 attributes
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f89151de780 5
    [95214-95225] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f89151dea80 5
    [95214-95225] ../src/vabackend.c: 457           nvCreateConfig got profile: 13 with 0 attributes
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f89151de400 5
    [95214-95225] ../src/vabackend.c: 457           nvCreateConfig got profile: 14 with 0 attributes
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 (nil) 0
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 0x7f89151dee00 5
    [95214-95225] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95214-95225] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f89151deb00 5
    [95214-95226] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f89151dee00 5
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32649
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f89151de600 5
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x360, format 1
    [95214-95226] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f89151df080 5
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32649
    [95214-95226] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f89151dfa80 5
    [95214-95226] ../src/vabackend.c: 635          nvCreateContext with 18 render targets, 18 surfaces, at 640x360
    [95214-95226] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [95214-95226] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 205828000 (1024) for surface 24 (picIdx: 0)
    [95214-95226] ../src/export-buf.c: 300          allocateSurface presenting frame 640x360 0x7f890aa8bb80 0x7f890aa8bca0
    [95214-95226] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f890aafb861
    [95214-95226] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f890aafb861
    [95214-95226] ../src/export-buf.c: 421            exportCudaPtr Detected NV12/NV21 NVIDIA driver bug, attempting to work around
    [95214-95226] ../src/export-buf.c: 364              freeSurface Destroying EGLImage: 0x7f890aafb861
    [95214-95226] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7f890aa8bb80
    [95214-95226] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7f890aa8bca0
    [95214-95226] ../src/export-buf.c: 300          allocateSurface presenting frame 640x360 0x7f890aa8bb80 0x7f890aa8bca0
    [95214-95226] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f890aafbe51
    [95214-95226] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f890aafbe51
    [95214-95226] ../src/export-buf.c: 431            exportCudaPtr Work around successful!
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a2438ae00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [95240-95251] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2b4c0
    [95240-95251] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95251] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95251] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95251] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95251] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95251] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95251] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95251] ../src/vabackend.c: 457           nvCreateConfig got profile: 6 with 0 attributes
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b50031f80 5
    [95240-95251] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b50031f80 5
    [95240-95251] ../src/vabackend.c: 457           nvCreateConfig got profile: 13 with 0 attributes
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b50031500 5
    [95240-95251] ../src/vabackend.c: 457           nvCreateConfig got profile: 14 with 0 attributes
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 (nil) 0
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 0x7f9b50031f80 5
    [95240-95251] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95240-95251] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f9b50031f80 5
    [95240-95248] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f9b77f2b4c0
    [95240-95248] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [95240-95248] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95240-95256] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2a3e0
    [95240-95256] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95256] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95256] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95256] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95256] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95256] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95256] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95256] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f9b77f2a3e0
    [95240-95256] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [95240-95256] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95240-95260] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2a3e0
    [95240-95260] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95260] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95260] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95260] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95260] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95260] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95260] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95260] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f9b77f2a3e0
    [95240-95260] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [95240-95260] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95240-95264] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2b880
    [95240-95264] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95264] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95264] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95264] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95264] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95264] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95264] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95264] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f9b77f2b880
    [95240-95264] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [95240-95264] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95240-95268] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2a3e0
    [95240-95268] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95268] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95268] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95268] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95268] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95268] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95268] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95268] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f9b77f2a3e0
    [95240-95268] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [95240-95268] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95240-95272] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2b4c0
    [95240-95272] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95272] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95272] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95272] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95272] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95272] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95272] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95275] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f9b77f2a3e0
    [95240-95275] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95240-95275] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95240-95275] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95240-95275] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95240-95275] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95240-95275] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95240-95275] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95240-95276] ../src/vabackend.c:1626              nvTerminate Terminating 0x7f9b77f2b4c0
    [95240-95276] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [95240-95276] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    [95240-95272] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b3cc6c780 5
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 32667
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b3cc6c200 5
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1088, format 1
    [95240-95272] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b3cc6dc00 5
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 32667
    [95240-95272] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f9b3cc6df00 5
    [95240-95272] ../src/vabackend.c: 635          nvCreateContext with 24 render targets, 24 surfaces, at 1920x1088
    [95240-95272] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [95240-95275] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 1
    [95240-95275] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 200200000 (2048) for surface 25 (picIdx: 0)
    [95240-95275] ../src/export-buf.c: 300          allocateSurface presenting frame 1920x1088 0x7f9b3db62280 0x7f9b3db623a0
    [95240-95275] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f9b500458c1
    [95240-95275] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f9b500458c1
    [95240-95275] ../src/export-buf.c: 421            exportCudaPtr Detected NV12/NV21 NVIDIA driver bug, attempting to work around
    [95240-95275] ../src/export-buf.c: 364              freeSurface Destroying EGLImage: 0x7f9b500458c1
    [95240-95275] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7f9b3db62280
    [95240-95275] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7f9b3db623a0
    [95240-95275] ../src/export-buf.c: 300          allocateSurface presenting frame 1920x1088 0x7f9b3db62280 0x7f9b3db623a0
    [95240-95275] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f9b50045891
    [95240-95275] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f9b50045891
    [95240-95275] ../src/export-buf.c: 431            exportCudaPtr Work around successful!
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a258d5f00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a258d5f00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [Child 94974, MediaDecoderStateMachine #1] WARNING: Decoder=7f7a258d5f00 Decode error: NS_ERROR_OUT_OF_MEMORY (0x8007000e): file /build/firefox-developer-edition/src/firefox-99.0/dom/media/MediaDecoderStateMachine.cpp:3577
    [94750-94811] ../src/export-buf.c:  52                    debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing
    
    [94750-94811] ../src/export-buf.c:  52                    debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing
    

    But, then, when I refresh the window with F5, everything goes back to normal

    Log
    [95618-95625] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f42e1b2a020
    [95618-95625] ../src/export-buf.c: 171          findCudaDisplay Found 4 EGL devices
    [95618-95625] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [95618-95625] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD129
    [95618-95625] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [95618-95625] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [95618-95625] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [95618-95625] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [95618-95625] ../src/vabackend.c: 457           nvCreateConfig got profile: 6 with 0 attributes
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f42bac72780 5
    [95618-95625] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f42bac72c00 5
    [95618-95625] ../src/vabackend.c: 457           nvCreateConfig got profile: 13 with 0 attributes
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f42bac72480 5
    [95618-95625] ../src/vabackend.c: 457           nvCreateConfig got profile: 14 with 0 attributes
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 (nil) 0
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 9 0x7f42bac72480 5
    [95618-95625] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95618-95625] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f42bac73000 5
    [95618-95626] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f42bac72a00 5
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32578
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f42bac72b80 5
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 1920x1080, format 1
    [95618-95626] ../src/vabackend.c: 457           nvCreateConfig got profile: 19 with 0 attributes
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 0
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f42bac73f80 5
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 (nil) 32578
    [95618-95626] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 10 0x7f42bac73180 5
    [95618-95626] ../src/vabackend.c: 635          nvCreateContext with 18 render targets, 18 surfaces, at 1920x1080
    [95618-95626] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [95618-95626] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 205A00000 (2048) for surface 24 (picIdx: 0)
    [95618-95626] ../src/export-buf.c: 300          allocateSurface presenting frame 1920x1080 0x7f42bacc5a60 0x7f42bacc5b80
    [95618-95626] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f42bad985c1
    [95618-95626] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f42bad985c1
    [95618-95626] ../src/export-buf.c: 421            exportCudaPtr Detected NV12/NV21 NVIDIA driver bug, attempting to work around
    [95618-95626] ../src/export-buf.c: 364              freeSurface Destroying EGLImage: 0x7f42bad985c1
    [95618-95626] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7f42bacc5a60
    [95618-95626] ../src/export-buf.c: 370              freeSurface Destroying CUarray: 0x7f42bacc5b80
    [95618-95626] ../src/export-buf.c: 300          allocateSurface presenting frame 1920x1080 0x7f42bacc5a60 0x7f42bacc5b80
    [95618-95626] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f42bad980f1
    [95618-95626] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f42bad980f1
    [95618-95626] ../src/export-buf.c: 431            exportCudaPtr Work around successful!
    

    It works for youtube, but it is not working for twich, for example. Do I need to change anything going from v98 -> v99?!

    OS: Garuda kwin X11 NVIDIA RTX 2060M, (510.54 driver) nvidia-vaapi-driver: git

    opened by qumaciel 48
  • Can't get it to work on Firefox 96/NVIDIA 470.94

    Can't get it to work on Firefox 96/NVIDIA 470.94

    For some reason, Firefox 96 doesn't seem to be enabling VA-API, despite me configuring everything as per the README file.

    Firefox log:

    $ LIBVA_DRIVER_NAME=nvidia MOZ_DISABLE_RDD_SANDBOX=1 NVD_LOG=1 MOZ_LOG="PlatformDecoderModule:5" firefox
    [Child 39613: Main Thread]: D/PlatformDecoderModule PDMInitializer, Init PDMs in Content process
    [Child 39613: Main Thread]: D/PlatformDecoderModule VA-API FFmpeg is disabled by platform
    [Child 39613: Main Thread]: D/PlatformDecoderModule VA-API FFmpeg is disabled by platform
    [Child 39613: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [RDD 39728: Main Thread]: D/PlatformDecoderModule PDMInitializer, Init PDMs in RDD process
    [RDD 39728: Main Thread]: D/PlatformDecoderModule VA-API FFmpeg is disabled by platform
    [RDD 39728: Main Thread]: D/PlatformDecoderModule VA-API FFmpeg is disabled by platform
    [RDD 39728: Main Thread]: D/PlatformDecoderModule Agnostic decoder rejects requested type
    [RDD 39728: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type
    [RDD 39728: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type
    [RDD 39728: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type
    [RDD 39728: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type
    [Child 39613: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [RDD 39728: MediaSupervisor #1]: D/PlatformDecoderModule VA-API is disabled by pref.
    [RDD 39728: MediaPDecoder #1]: D/PlatformDecoderModule Initialising FFmpeg decoder.
    [RDD 39728: MediaPDecoder #2]: D/PlatformDecoderModule Initialising FFmpeg decoder.
    [h264 @ 0x7ff69a14f400] nal_unit_type: 7(SPS), nal_ref_idc: 3
    [h264 @ 0x7ff69a14f400] nal_unit_type: 8(PPS), nal_ref_idc: 3
    [RDD 39728: MediaPDecoder #1]: D/PlatformDecoderModule FFmpeg init successful.
    [h264 @ 0x7ff69a14f400] nal_unit_type: 6(SEI), nal_ref_idc: 0
    [h264 @ 0x7ff69a14f400] nal_unit_type: 5(IDR), nal_ref_idc: 3
    [RDD 39728: MediaPDecoder #1]: D/PlatformDecoderModule Choosing FFmpeg pixel format for video decoding.
    [RDD 39728: MediaPDecoder #1]: D/PlatformDecoderModule Requesting pixel format YUV420P.
    [h264 @ 0x7ff69a14f400] Format yuv420p chosen by get_format().
    [h264 @ 0x7ff69a14f400] Reinit context to 640x480, pix_fmt: yuv420p
    [Child 39613: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    [Child 39613: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type
    

    Some other infos:

    • OS: Arch Linux
    • Display server: X11
    • GPU: GTX 660
    • Driver: 470.94
    • Firefox 96 (stable)
    $ sudo cat /sys/module/nvidia_drm/parameters/modeset
    Y
    
    $ LIBVA_DRIVER_NAME=nvidia vainfo
    vainfo: VA-API version: 1.13 (libva 2.13.0)
    vainfo: Driver version: VA-API NVDEC driver
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileVC1Simple              :	VAEntrypointVLD
          VAProfileVC1Main                :	VAEntrypointVLD
          VAProfileVC1Advanced            :	VAEntrypointVLD
          <unknown profile>               :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointVLD
          VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
    

    image

    Any help is appreciated. Thanks.

    opened by guihkx 48
  • not work with firefox on GTX 750

    not work with firefox on GTX 750

    on firefox 96.0.3 decoding fails with the following errors:

    log
    [101811-101825] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f8683be3200
    [101811-101825] ../src/export-buf.c: 171          findCudaDisplay Found 3 EGL devices
    [101811-101825] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [101811-101825] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD128
    [101811-101825] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [101811-101825] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [101811-101825] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [101811-101825] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [101811-101825] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f8663f93480 5
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 32646
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f8663f93480 5
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101811-101825] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f8663f93600 5
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [101811-101825] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7f8663f93600 5
    [101811-101825] ../src/vabackend.c: 635          nvCreateContext with 25 render targets, 25 surfaces, at 640x368
    [101811-101825] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [101811-101834] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 1
    [101811-101825] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 2
    [101811-101825] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 5017A8000 (1024) for surface 26 (picIdx: 0)
    [101811-101825] ../src/export-buf.c: 300          allocateSurface presenting frame 640x368 0x7f8662ff6040 0x7f8662ff6160
    [101811-101825] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7f86630fd2d1
    [101811-101825] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7f86630fd2d1
    [101811-101834] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 3
    [101811-101834] ../src/vabackend.c:1567    nvExportSurfaceHandle cuda error 'unspecified launch failure' (719)
    
    [101839-101845] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7effeb2e33e0
    [101839-101845] ../src/export-buf.c: 171          findCudaDisplay Found 3 EGL devices
    [101839-101845] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [101839-101845] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD128
    [101839-101845] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [101839-101845] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [101839-101845] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    [101839-101845] ../src/vabackend.c: 972      nvQueryImageFormats In nvQueryImageFormats
    [101839-101845] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7effcb693100 5
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 32511
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7effcb693100 5
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c:1064            nvDeriveImage In nvDeriveImage
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 552        nvCreateSurfaces2 creating 1 surface(s) 640x368, format 1
    [101839-101845] ../src/vabackend.c: 457           nvCreateConfig got profile: 7 with 0 attributes
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7effcb693480 5
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 (nil) 0
    [101839-101845] ../src/vabackend.c:1346 nvQuerySurfaceAttributes with 4 0x7effcb693480 5
    [101839-101845] ../src/vabackend.c: 635          nvCreateContext with 25 render targets, 25 surfaces, at 640x368
    [101839-101845] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 0
    [101839-101849] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 1
    [101839-101845] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 2
    [101839-101845] ../src/vabackend.c:1568    nvExportSurfaceHandle got address 5017A8000 (1024) for surface 26 (picIdx: 0)
    [101839-101845] ../src/export-buf.c: 300          allocateSurface presenting frame 640x368 0x7effca6f6940 0x7effca6f6a60
    [101839-101845] ../src/export-buf.c: 317          allocateSurface Adding frame from EGLStream: 0x7effca7fd301
    [101839-101845] ../src/export-buf.c: 330          allocateSurface Acquired image from EGLStream: 0x7effca7fd301
    [101839-101849] ../src/vabackend.c: 909             nvEndPicture cuvid decoded successful to idx: 3
    [101839-101849] ../src/vabackend.c:1567    nvExportSurfaceHandle cuda error 'unspecified launch failure' (719)
    
    [Child 101792, MediaDecoderStateMachine #1] WARNING: Decoder=7f41a5381300 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005): file /build/firefox/src/firefox-96.0.3/dom/media/MediaDecoderStateMachine.cpp:3568
    [Child 101792, MediaDecoderStateMachine #1] WARNING: Decoder=7f41a5381300 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005): file /build/firefox/src/firefox-96.0.3/dom/media/MediaDecoderStateMachine.cpp:3568
    

    mpv works without problems with same video. vainfo

    [99515-99515] ../src/export-buf.c: 171          findCudaDisplay Found 3 EGL devices
    [99515-99515] ../src/export-buf.c: 175          findCudaDisplay Got EGL_CUDA_DEVICE_NV value '0' from EGLDevice 0
    [99515-99515] ../src/export-buf.c: 135    checkModesetParameter Checking device file: /dev/dri/renderD128
    [99515-99515] ../src/export-buf.c: 209             initExporter Got EGLDisplay from CUDA device 0
    [99515-99515] ../src/export-buf.c: 239             initExporter Driver doesn't support 16-bit surfaces
    [99515-99515] ../src/export-buf.c:  95                reconnect Reconnecting to stream
    vainfo: VA-API version: 1.13 (libva 2.13.0)
    vainfo: Driver version: VA-API NVDEC driver
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            : VAEntrypointVLD
          VAProfileMPEG2Main              : VAEntrypointVLD
          VAProfileVC1Simple              : VAEntrypointVLD
          VAProfileVC1Main                : VAEntrypointVLD
          VAProfileVC1Advanced            : VAEntrypointVLD
          <unknown profile>               : VAEntrypointVLD
          VAProfileH264Main               : VAEntrypointVLD
          VAProfileH264High               : VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointVLD
    [99515-99515] ../src/vabackend.c:1626              nvTerminate Terminating 0x564b5002ae60
    [99515-99515] ../src/export-buf.c:  57          releaseExporter Releasing exporter, 0 outstanding frames
    [99515-99515] ../src/export-buf.c:  74          releaseExporter Done releasing frames
    

    nvidia-vaapi-driver version: 0.0.5.r8.g21d0803-1 (from aur) OS: Manjaro Linux cat /sys/module/nvidia_drm/parameters/modeset return: Y NVIDIA Driver Version: 495.46

    can this be fixed somehow?

    opened by KnightMurloc 32
  • I have a 3060Ti and want to help support AV1.

    I have a 3060Ti and want to help support AV1.

    Thanks for the great work for supporting hardware decoding on Linux. I have a 3060Ti (support AV1) desktop running ArchLinux, I have libraries/headers new enough to compile this project. How do I help test or develop the AV1 support? (I can write C, but I have zero knowledge about VAAPI).

    opened by johnjohnlin 32
  • Optimus hardware + latest from git => segfault

    Optimus hardware + latest from git => segfault

    Hi

    I am trying to start vainfo, but it segfaults. See log below.

    My variables:

    [email protected]:~$ set | grep "NV\|GLX\|LIBVA\|VDPA\|DRI"
    DRI_PRIME=1
    LIBVA_DRIVER_NAME=nvidia
    VDPAU_DRIVER=nvidia
    __GLX_VENDOR_LIBRARY_NAME=nvidia
    __NV_PRIME_RENDER_OFFLOAD=1
    

    Hardware:

    [email protected]:~$ lspci | grep "VGA\|3D"
    00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
    01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
    
    [email protected]:~$ NVD_LOG=1 gdb vainfo
    GNU gdb (Debian 10.1-2+b1) 10.1.90.20210103-git
    Copyright (C) 2021 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Type "show copying" and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <https://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
        <http://www.gnu.org/software/gdb/documentation/>.
    
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from vainfo...
    (No debugging symbols found in vainfo)
    (gdb) r
    Starting program: /usr/bin/vainfo 
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    libva info: VA-API version 1.10.0
    libva info: User environment variable requested driver 'nvidia'
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
    [New Thread 0x7fffee885640 (LWP 10934)]
    libva info: Found init function __vaDriverInit_1_0
    [10928-10928] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x55555556b3d0 10
    [10928-10928] ../src/vabackend.c:1645       __vaDriverInit_1_0 Non-DRM display type detected, defaulting to GPU ID 0. Use NVD_GPU to pick a specific GPU.
    [10928-10928] ../src/export-buf.c: 164       findGPUIndexFromFd Looking for GPU index: 0
    [10928-10928] ../src/export-buf.c: 175       findGPUIndexFromFd Found 4 EGL devices
    [10928-10928] ../src/export-buf.c: 184       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
    [10928-10928] ../src/export-buf.c: 136 checkModesetParameterFromFd Unable to check nvidia_drm modeset setting
    [10928-10928] ../src/export-buf.c: 208       findGPUIndexFromFd Selecting EGLDevice 0
    [New Thread 0x7fffed746640 (LWP 10935)]
    [New Thread 0x7fffecd81640 (LWP 10936)]
    [10928-10928] ../src/export-buf.c: 270             initExporter Driver doesn't support 16-bit surfaces
    [10928-10928] ../src/export-buf.c: 103                reconnect Reconnecting to stream
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.10 (libva 2.12.0)
    vainfo: Driver version: VA-API NVDEC driver
    
    Thread 1 "vainfo" received signal SIGSEGV, Segmentation fault.
    0x0000000000000000 in ?? ()
    (gdb) bt
    #0  0x0000000000000000 in  ()
    #1  0x00007ffff7fb9801 in vaToCuCodec (profile=VAProfileMPEG2Simple) at ../src/vabackend.c:261
    #2  0x00007ffff7fb9d98 in nvQueryConfigProfiles (ctx=0x55555556b3d0, profile_list=0x555555bff070, num_profiles=0x7fffffffde9c) at ../src/vabackend.c:376
    #3  0x00007ffff7e224b5 in vaQueryConfigProfiles () at /usr/lib/x86_64-linux-gnu/libva.so.2
    #4  0x00005555555564e3 in  ()
    #5  0x00007ffff7c547fd in __libc_start_main (main=
        0x555555556370, argc=1, argv=0x7fffffffdfc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdfb8) at ../csu/libc-start.c:332
    #6  0x00005555555568aa in  ()
    
    

    Any help?

    opened by MageSlayer 27
  • Jittery videos (AVC1)

    Jittery videos (AVC1)

    I use the Firefox plugin h264ify to force YouTube videos to use the AVC1 codec since my GPU doesn't support decoding VP9. I noticed that YouTube videos and Twitch streams are very jittery. It's particularly noticeable at 60fps. Audio is completely fine. It's hard to explain exactly and I don't know if this is the right term for it but it feels like the frame timings are wrong. Sometimes a frame is shown for too long, sometimes it jumps into the future by a frame or more. Most of the times this happens without any frames being dropped according to "Stats for nerds". I notice these jitters between multiple times a second to once every 5 seconds or so. ~~The h264ify plugin to my knowledge does not affect Twitch and when I disable it, I still notice the jitters on Twitch.~~ Edit: I can observe the jitters on some Twitch streams and VODS but not always.

    Among others, I tested and noticed it with videos like these and I think they highlight jitters quite clearly due to the smooth nature of the footage: https://www.youtube.com/playlist?list=UUlcA5er9C4GQjOf-oLyZXIA

    • Arch
    • Kernel 5.16.2-arch1-1
    • GTX 970
    • Proprietary driver version 495.46
    • X11
    • KDE Plasma
    • Firefox 96.0.2
    • cat /sys/module/nvidia_drm/parameters/modeset gives Y
    • I have configured the Firefox options as described in the README, excluding the last one which doesn't apply to my GPU driver version

    I'm on a relatively fresh install (2 days old) and I haven't made any manual changes related to Nvidia or graphics other than following the README of this repo.

    Edit: I have since followed these steps but the issues remain: https://www.reddit.com/r/kde/comments/p44ilu/fps_drops_and_laggy_animations_under_kde_plasma/h8x4epd/

    $ vainfo
    vainfo: VA-API version: 1.13 (libva 2.13.0)
    vainfo: Driver version: VA-API NVDEC driver
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            : VAEntrypointVLD
          VAProfileMPEG2Main              : VAEntrypointVLD
          VAProfileVC1Simple              : VAEntrypointVLD
          VAProfileVC1Main                : VAEntrypointVLD
          VAProfileVC1Advanced            : VAEntrypointVLD
          <unknown profile>               : VAEntrypointVLD
          VAProfileH264Main               : VAEntrypointVLD
          VAProfileH264High               : VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointVLD
          VAProfileVP8Version0_3          : VAEntrypointVLD
    

    Please let me know if I can provide more information.

    opened by Munzu 27
  • Driver no longer working with Firefox nightly since 2022-05-19

    Driver no longer working with Firefox nightly since 2022-05-19

    I'm X11 and Firefox 102.0b2 and nvidia driver version 515.48.07

    Everything from the readme has been set, except for widget.dmabuf.force-enabled and EGL_PLATFORM

    Logs
          8663.555154881 [240838-240838] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7fcbac711c40 31
          8663.555162122 [240838-240838] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 0 (0 max) instances
          8663.558699262 [240838-240838] ../src/export-buf.c: 159       findGPUIndexFromFd Looking for DRM device index: 0
          8663.559614757 [240838-240838] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8663.559667248 [240838-240838] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8663.559670908 [240838-240838] ../src/export-buf.c: 187       findGPUIndexFromFd Found drmDeviceIndex: 0
          8663.559673438 [240838-240838] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8663.593959629 [240838-240838] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8663.593966559 [240838-240838] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8663.613960106 [240838-240838] ../src/vabackend.c: 556           nvCreateConfig got profile: 6 with 0 attributes
          8663.613968816 [240838-240838] ../src/vabackend.c: 556           nvCreateConfig got profile: 7 with 0 attributes
          8663.613972306 [240838-240838] ../src/vabackend.c: 556           nvCreateConfig got profile: 13 with 0 attributes
          8663.613975196 [240838-240838] ../src/vabackend.c: 556           nvCreateConfig got profile: 14 with 0 attributes
          8663.613976556 [240838-240838] ../src/vabackend.c: 556           nvCreateConfig got profile: 19 with 0 attributes
          8663.613979656 [240838-240838] ../src/vabackend.c:1752              nvTerminate Terminating 0x7fcbac711c40
          8663.613982536 [240838-240838] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8663.615050752 [240838-240838] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8663.656769237 [240838-240838] ../src/vabackend.c:1766              nvTerminate Now have 0 (0 max) instances
    [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}"
    [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}"
    [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}"
    [2022-06-01T17:53:43Z ERROR mp4parse] Found 2 nul bytes in "\u{0}\u{0}"
          8694.009153032 [241591-241786] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872a5c0 31
          8694.009159062 [241591-241786] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 0 (0 max) instances
          8694.012024579 [241591-241786] ../src/export-buf.c: 159       findGPUIndexFromFd Looking for DRM device index: 0
          8694.013037684 [241591-241786] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.013098195 [241591-241786] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.013102985 [241591-241786] ../src/export-buf.c: 187       findGPUIndexFromFd Found drmDeviceIndex: 0
          8694.013104875 [241591-241786] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8694.070105240 [241591-241786] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.070114320 [241591-241786] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.070182020 [241591-241786] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.095835981 [241591-241786] ../src/vabackend.c: 556           nvCreateConfig got profile: 6 with 0 attributes
          8694.095850501 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0
          8694.095853751 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5
          8694.096842717 [241591-241786] ../src/vabackend.c: 556           nvCreateConfig got profile: 7 with 0 attributes
          8694.096850597 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0
          8694.096851977 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5
          8694.099708394 [241591-241786] ../src/vabackend.c: 556           nvCreateConfig got profile: 13 with 0 attributes
          8694.099716424 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0
          8694.099719224 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6c13193280 5
          8694.100939841 [241591-241786] ../src/vabackend.c: 556           nvCreateConfig got profile: 14 with 0 attributes
          8694.100946401 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 9 (nil) 0
          8694.100947851 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 9 0x7f6c13193280 5
          8694.102650511 [241591-241786] ../src/vabackend.c: 556           nvCreateConfig got profile: 19 with 0 attributes
          8694.102656381 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 10 (nil) 0
          8694.102657721 [241591-241786] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 10 0x7f6c13193280 5
          8694.104496682 [241591-241786] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c3872a5c0
          8694.104502202 [241591-241786] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.105564988 [241591-241786] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.140281452 [241591-241786] ../src/vabackend.c:1766              nvTerminate Now have 0 (0 max) instances
          8694.141261608 [241591-241791] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872b100 31
          8694.141268788 [241591-241791] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 0 (0 max) instances
          8694.141274538 [241591-241791] ../src/export-buf.c: 161       findGPUIndexFromFd Looking for GPU index: 0
          8694.141492089 [241591-241791] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.141516629 [241591-241791] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.141520299 [241591-241791] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8694.191052710 [241591-241791] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.191062750 [241591-241791] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.191163460 [241591-241791] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.191533672 [241591-241791] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c3872b100
          8694.191542043 [241591-241791] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.192602539 [241591-241791] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.230463012 [241591-241791] ../src/vabackend.c:1766              nvTerminate Now have 0 (0 max) instances
          8694.230977445 [241591-241795] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c3872a5c0 31
          8694.230986715 [241591-241795] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 0 (0 max) instances
          8694.230994015 [241591-241795] ../src/export-buf.c: 161       findGPUIndexFromFd Looking for GPU index: 0
          8694.231262226 [241591-241795] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.231290336 [241591-241795] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.231294076 [241591-241795] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8694.280559715 [241591-241795] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.280567795 [241591-241795] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.280638046 [241591-241795] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.281060218 [241591-241791] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d56880 31
          8694.281065648 [241591-241791] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 1 (0 max) instances
          8694.281069028 [241591-241791] ../src/export-buf.c: 161       findGPUIndexFromFd Looking for GPU index: 0
          8694.281471831 [241591-241791] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.281498931 [241591-241791] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.281502411 [241591-241791] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8694.323710239 [241591-241800] ../src/vabackend.c: 556           nvCreateConfig got profile: 7 with 0 attributes
          8694.323889380 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0
          8694.323892360 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c1400 5
          8694.327382140 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 32620
          8694.327387990 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c1d00 5
          8694.328772498 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b100)
          8694.328779608 [241591-241800] ../src/vabackend.c:1211            nvDeriveImage In nvDeriveImage
          8694.328784938 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a480)
          8694.328788418 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a020)
          8694.328792159 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a700)
          8694.328795619 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a7a0)
          8694.328799069 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7a8e0)
          8694.328802009 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7aac0)
          8694.328805479 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b600)
          8694.328808629 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b880)
          8694.328813029 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bce0)
          8694.328816239 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b4c0)
          8694.328823769 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b920)
          8694.328827209 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7b560)
          8694.328833719 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bb00)
          8694.328837119 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bc40)
          8694.328841729 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bf60)
          8694.328845429 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7ba60)
          8694.328847569 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7bd80)
          8694.328852669 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfcc7be20)
          8694.328857889 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb1240)
          8694.328861239 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb0f20)
          8694.328864729 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb0340)
          8694.328867479 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb03e0)
          8694.328871269 [241591-241800] ../src/vabackend.c: 685        nvCreateSurfaces2 Creating surface 1920x1088, format 1 (0x7f6bfccb12e0)
          8694.329654744 [241591-241791] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.329659544 [241591-241791] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.329692574 [241591-241791] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.329920385 [241591-241795] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c10d56880
          8694.329925805 [241591-241795] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.330986972 [241591-241795] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.361406510 [241591-241795] ../src/vabackend.c:1766              nvTerminate Now have 1 (0 max) instances
          8694.362111864 [241591-241791] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d55f20 31
          8694.362118534 [241591-241791] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 1 (0 max) instances
          8694.362124444 [241591-241791] ../src/export-buf.c: 161       findGPUIndexFromFd Looking for GPU index: 0
          8694.362333815 [241591-241791] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.362357815 [241591-241791] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.362360795 [241591-241791] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8694.387051550 [241591-241800] ../src/vabackend.c: 556           nvCreateConfig got profile: 7 with 0 attributes
          8694.387067231 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 0
          8694.387069641 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c0c80 5
          8694.388816081 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 (nil) 32619
          8694.388824661 [241591-241800] ../src/vabackend.c:1493 nvQuerySurfaceAttributes with 4 0x7f6bfc5c0c80 5
          8694.390360450 [241591-241800] ../src/vabackend.c: 747          nvCreateContext with 24 render targets, 24 surfaces, at 1920x1088
          8694.399360803 [241591-241791] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.399368553 [241591-241791] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.399437053 [241591-241791] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.399695685 [241591-241795] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c10d55f20
          8694.399701255 [241591-241795] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.400738661 [241591-241795] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.400811881 [241591-241807] ../src/vabackend.c: 342          resolveSurfaces [RT] Resolve thread for 0x7f6bfc8da000 started
          8694.401674796 [241591-241800] ../src/vabackend.c:1022             nvEndPicture Decoded frame successfully to idx: 0 (0x7f6bfccb12e0)
          8694.401683596 [241591-241807] ../src/vabackend.c: 357          resolveSurfaces Reading from queue: 0 1
          8694.401688826 [241591-241807] ../src/vabackend.c: 372          resolveSurfaces Mapping surface 0
          8694.404506473 [241591-241807] ../src/vabackend.c: 374          resolveSurfaces Mapped surface 0 to 20D600000 (2048)
          8694.404514553 [241591-241807] ../src/export-buf.c: 525           realiseSurface No free surfaces found
          8694.404518663 [241591-241791] ../src/vabackend.c:1022             nvEndPicture Decoded frame successfully to idx: 1 (0x7f6bfccb03e0)
          8694.404657114 [241591-241791] ../src/vabackend.c:1703    nvExportSurfaceHandle Exporting surface: 0 (0x7f6bfccb12e0)
          8694.404919535 [241591-241807] ../src/export-buf.c: 441     allocateBackingImage Presenting frame 0 1920x1088 (0x7f6bfccb12e0, 0x7f6bfc847a60, 0x7f6bfc847040)
          8694.409534512 [241591-241807] ../src/export-buf.c: 459     allocateBackingImage Adding frame from EGLStream: 0x7f6bfc5c7f61
          8694.409542182 [241591-241807] ../src/export-buf.c: 470     allocateBackingImage Acquired image from EGLStream: 0x7f6bfc5c7f61
          8694.409547452 [241591-241807] ../src/export-buf.c: 283       exportBackingImage eglExportDMABUFImageQueryMESA: 0x7f6bfc5c0f80 NV12 (3231564e) planes:2 mods:3000000004fe014 3000000004fe014
          8694.417349178 [241591-241791] ../src/vabackend.c:1744    nvExportSurfaceHandle Exporting with 1920 1088 0 1920 0 1920
          8694.417359728 [241591-241791] ../src/vabackend.c:1052            nvSyncSurface Syncing on surface: 0 (0x7f6bfccb12e0)
          8694.417361728 [241591-241791] ../src/vabackend.c:1057            nvSyncSurface Surface 0 not resolved, waiting
          8694.417821911 [241591-241791] ../src/vabackend.c:1067            nvSyncSurface Surface 0 resolved (0x7f6bfccb12e0)
          8694.417819211 [241591-241807] ../src/vabackend.c: 378          resolveSurfaces Surface 0 exported
          8694.417840181 [241591-241807] ../src/vabackend.c: 357          resolveSurfaces Reading from queue: 1 2
          8694.417843501 [241591-241807] ../src/vabackend.c: 372          resolveSurfaces Mapping surface 1
          8694.417873012 [241591-241807] ../src/vabackend.c: 374          resolveSurfaces Mapped surface 1 to 20D600000 (2048)
          8694.417876802 [241591-241807] ../src/export-buf.c: 525           realiseSurface No free surfaces found
          8694.418383485 [241591-241791] ../src/export-buf.c:  60                    debug [EGL] eglGetPlatformDisplay: EGL_BAD_PARAMETER error: In internal function: Additional INFO may be available
    
          8694.418389435 [241591-241791] ../src/export-buf.c:  60                    debug [EGL] eglGetPlatformDisplay: EGL_BAD_PARAMETER error: In function eglGetPlatformDisplay(), unsupported EGL Platform
    
          8694.424827832 [241591-241807] ../src/export-buf.c: 441     allocateBackingImage Presenting frame 1 1920x1088 (0x7f6bfccb03e0, 0x7f6bfc847dc0, 0x7f6bfc847160)
          8694.424967423 [241591-241807] ../src/export-buf.c: 459     allocateBackingImage Adding frame from EGLStream: 0x7f6bfc5c7d01
          8694.424972803 [241591-241807] ../src/export-buf.c: 470     allocateBackingImage Acquired image from EGLStream: 0x7f6bfc5c7d01
          8694.424978143 [241591-241807] ../src/export-buf.c: 283       exportBackingImage eglExportDMABUFImageQueryMESA: 0x7f6bfc5c0200 NV12 (3231564e) planes:2 mods:3000000004fe014 3000000004fe014
          8694.425525856 [241591-241807] ../src/vabackend.c: 378          resolveSurfaces Surface 1 exported
          8694.428314443 [241591-241795] ../src/vabackend.c:1766              nvTerminate Now have 1 (0 max) instances
          8694.440826066 [241591-241800] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d557a0 31
          8694.440831436 [241591-241800] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 1 (0 max) instances
          8694.440836406 [241591-241800] ../src/export-buf.c: 161       findGPUIndexFromFd Looking for GPU index: 0
          8694.441063078 [241591-241800] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.441083148 [241591-241800] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.441086138 [241591-241800] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
    ATTENTION: default value of option mesa_glthread overridden by environment.
    libEGL warning: egl: failed to create dri2 screen
          8694.446985732 [241591-241791] ../src/export-buf.c:  60                    debug [EGL] eglInitialize: DRI2: failed to create screen
    ATTENTION: default value of option mesa_glthread overridden by environment.
    *** MESA_GLSL_CACHE_DISABLE is deprecated; use MESA_SHADER_CACHE_DISABLE instead ***
          8694.458260478 [241591-241791] ../src/export-buf.c:  60                    debug [EGL] eglCreateImageKHR: _eglParseImageAttribList
          8694.469419694 [241591-241800] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.469428114 [241591-241800] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.469503604 [241591-241800] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.469649165 [241591-241791] ../src/vabackend.c: 830         nvDestroyContext Destroying context: 27
          8694.469657135 [241591-241791] ../src/vabackend.c: 252           destroyContext Signaling resolve thread to exit
          8694.469663185 [241591-241791] ../src/vabackend.c: 258           destroyContext Waiting for resolve thread to exit
          8694.469671645 [241591-241807] ../src/vabackend.c: 383          resolveSurfaces [RT] Resolve thread for 0x7f6bfc8da000 exiting
          8694.469710356 [241591-241791] ../src/vabackend.c: 260           destroyContext pthread_timedjoin_np finished with 0
          8694.479368273 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface 0 (0x7f6bfccb12e0)
          8694.479376443 [241591-241791] ../src/export-buf.c: 351 detachBackingImageFromSurface Detaching BackingImage 0x7f6bfc5c0f80 from Surface 0x7f6bfccb12e0
          8694.479384763 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface 1 (0x7f6bfccb03e0)
          8694.479388063 [241591-241791] ../src/export-buf.c: 351 detachBackingImageFromSurface Detaching BackingImage 0x7f6bfc5c0200 from Surface 0x7f6bfccb03e0
          8694.479390853 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfccb0340)
          8694.479394133 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479397993 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfccb0f20)
          8694.479400953 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479404333 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfccb1240)
          8694.479407143 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479409923 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7be20)
          8694.479412863 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479416023 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bd80)
          8694.479418783 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479420323 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7ba60)
          8694.479421753 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479424833 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bf60)
          8694.479426093 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479427463 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bc40)
          8694.479430053 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479433543 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bb00)
          8694.479435773 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479438623 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b560)
          8694.479441733 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479445533 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b920)
          8694.479447653 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479450243 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b4c0)
          8694.479453303 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479455683 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7bce0)
          8694.479460423 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479462043 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b880)
          8694.479466673 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479469453 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b600)
          8694.479472023 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479474463 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7aac0)
          8694.479479203 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479481973 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a8e0)
          8694.479484933 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479486563 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a7a0)
          8694.479488833 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479490233 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a700)
          8694.479492743 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479496263 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a020)
          8694.479498443 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479501843 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7a480)
          8694.479504523 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479507133 [241591-241791] ../src/vabackend.c: 719        nvDestroySurfaces Destroying surface -1 (0x7f6bfcc7b100)
          8694.479508403 [241591-241791] ../src/export-buf.c: 339 detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface
          8694.479512773 [241591-241791] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c3872a5c0
          8694.479515133 [241591-241791] ../src/export-buf.c: 318      destroyBackingImage Destroying BackingImage: 0x7f6bfc5c0200
          8694.479649644 [241591-241791] ../src/export-buf.c: 318      destroyBackingImage Destroying BackingImage: 0x7f6bfc5c0f80
          8694.479761025 [241591-241791] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.480826111 [241591-241791] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.510861197 [241591-241791] ../src/vabackend.c:1766              nvTerminate Now have 1 (0 max) instances
          8694.510928588 [241591-241800] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c10d557a0
          8694.510935518 [241591-241800] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.512001404 [241591-241800] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.544613385 [241591-241800] ../src/vabackend.c:1766              nvTerminate Now have 0 (0 max) instances
          8694.546206395 [241591-241791] ../src/vabackend.c:1775       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f6c10d55200 31
          8694.546215075 [241591-241791] ../src/vabackend.c:1778       __vaDriverInit_1_0 Now have 0 (0 max) instances
          8694.546223665 [241591-241791] ../src/export-buf.c: 161       findGPUIndexFromFd Looking for GPU index: 0
          8694.546564947 [241591-241791] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
          8694.546597707 [241591-241791] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
          8694.546601347 [241591-241791] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
          8694.584243808 [241591-241791] ../src/export-buf.c: 267             initExporter Driver doesn't support 16-bit surfaces
          8694.584254128 [241591-241791] ../src/export-buf.c:  99                reconnect Reconnecting to stream
          8694.584352429 [241591-241791] ../src/vabackend.c:1119      nvQueryImageFormats In nvQueryImageFormats
          8694.584581870 [241591-241791] ../src/vabackend.c:1752              nvTerminate Terminating 0x7f6c10d55200
          8694.584587240 [241591-241791] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
          8694.585646926 [241591-241791] ../src/export-buf.c:  82          releaseExporter Done releasing frames
          8694.625628910 [241591-241791] ../src/vabackend.c:1766              nvTerminate Now have 0 (0 max) instances
          8756.721295971 [240838-240838] ../src/export-buf.c:  60                    debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing
    
          8756.721305651 [240838-240838] ../src/export-buf.c:  60                    debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing
    
          8756.737157384 [240838-240838] ../src/export-buf.c:  60                    debug [EGL] eglCreateContext: EGL_BAD_MATCH error: In eglCreateContext: Failure in argument parsing
    
          8756.737166614 [240838-240838] ../src/export-buf.c:  60                    debug [EGL] eglCreateContext: EGL_BAD_ATTRIBUTE error: In eglCreateContext: Failure in argument parsing
    
    opened by Jeglerjeg 21
  • Vainfo fails with cuda error 'unknown error' (999)

    Vainfo fails with cuda error 'unknown error' (999)

    I've got nvidia-vaapi-driver 0.6 installed, and environmental variable LIBVA_DRIVER_NAME=nvdec. This is the output vainfo gives me libva info: VA-API version 1.14.0 libva info: User environment variable requested driver 'nvdec' libva info: Trying to open /usr/lib64/va/drivers/nvdec_drv_video.so

    opened by JustCauseWhyNot 20
  • Laggy video on WhatsApp Web

    Laggy video on WhatsApp Web

    Sometimes, videos from WhatsApp are rendered like this:

    https://user-images.githubusercontent.com/626206/167218177-fa5e066d-101d-4fe5-8519-17ec1cfbcea2.mp4

    This is the actual video:

    https://user-images.githubusercontent.com/626206/167217760-5a682c26-7e1e-42b2-900d-e5f81c6f80c5.mp4

    The command I used to get the logs:

    $ NVD_LOG=1 MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia MOZ_LOG="PlatformDecoderModule:5,Dmabuf:5" firefox &> firefox.txt
    

    Other info:

    • Arch Linux
    • VAAPI driver: 96f0428
    • Firefox 100
    • NVIDIA GTX 660 (driver 470.103.01)
    opened by guihkx 17
  • The decoder is not working with Firefox on Wayland

    The decoder is not working with Firefox on Wayland

    The VA-API decoder works fine with Firefox on X11 but on Wayland Firefox will fall back to software decoding.

    Firefox version: 98.0a1 (2022-02-03) Nvidia driver version: 510.47.03 nvidia-vaapi-driver: fefc5ff

    Environment variables and Firefox about:config

    LIBVA_DRIVER_NAME="nvidia"
    MOZ_ENABLE_WAYLAND="1"
    MOZ_DISABLE_RDD_SANDBOX="1"
    MOZ_LOG="PlatformDecoderModule:5"
    NVD_LOG="1"
    
    media.ffmpeg.vaapi.enabled=true
    media.rdd-ffmpeg.enabled=true
    media.av1.enabled=true
    gfx.x11-egl.force-enabled=true
    widget.dmabuf.force-enabled=true
    

    Logs for sample video smptebars_h264.mp4: wayland_h264.log x11_h264.log

    [32522-32559] ../src/export-buf.c:  52                    debug [EGL] eglGetDisplay: X screen is not using the NVIDIA driver.
    libEGL warning: DRI2: failed to create dri screen
    [32522-32559] ../src/export-buf.c:  52                    debug [EGL] eglCreateImageKHR: _eglParseImageAttribList
    [RDD 32522: MediaPDecoder #1]: D/PlatformDecoderModule   failed to create texture over DMABuf memory!
    
    firefox-issue nvidia-issue 
    opened by struq 16
  • Not working with 495.46 driver on wayland

    Not working with 495.46 driver on wayland

    When running vainfo I get:

    $ NVD_LOG=1 vainfo 
    [30879-30879] ../src/vabackend.c:1522       __vaDriverInit_1_0 Initing NVIDIA VA-API Driver
    libEGL warning: DRI2: failed to create dri screen
    [30879-30879] ../src/export-buf.c:  56                reconnect Reconnecting to stream
    [30879-30879] ../src/export-buf.c:  66                reconnect cuda error 'invalid resource handle' (400)
    

    Is there any more debug I could do to help understand?

    opened by X-dark 15
  • Deprecated

    Deprecated "mpv" debug option "--opengl-debug" be replaced by "--gpu-debug"

    https://github.com/elFarto/nvidia-vaapi-driver/blob/8e66a2fe429a57fda1bbd735842fe8fec87d1d7b/test.sh#L21

    [cplayer] Warning: option --opengl-debug was replaced with --gpu-debug and might be removed in the future.

    should be: $MPV -v --msg-level=all=debug --hwdec=vaapi --gpu-debug --hwdec-codecs=all --vd-lavc-check-hw-profile=no "[email protected]"

    opened by ManuLinares 0
  • [HELP] Prime offloading, can't add modeset=1 and this happens

    [HELP] Prime offloading, can't add modeset=1 and this happens

    opening firefox and playing a video stdout:

    env NVD_LOG=1 MOZ_X11_EGL=1 MOZ_DISABLE_RDD_SANDBOX=1 LIBVA_DRIVER_NAME=nvidia /usr/lib/firefox/firefox %u

    [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
    ATTENTION: default value of option mesa_glthread overridden by environment.
    ATTENTION: default value of option mesa_glthread overridden by environment.
    ATTENTION: default value of option mesa_glthread overridden by environment.
    ATTENTION: default value of option mesa_glthread overridden by environment.
    Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm
    Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
           762.693595332 [5524-5797] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522e020 31
           762.693623191 [5524-5797] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           763.182910504 [5524-5830] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522e5c0 31
           763.182924525 [5524-5830] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
    [2022-08-02T21:07:08Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
    [2022-08-02T21:07:08Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
    [2022-08-02T21:07:08Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
    [2022-08-02T21:07:08Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
           763.395038400 [5524-5845] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522f2e0 31
           763.395050125 [5524-5845] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           763.489993395 [5524-5850] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522e5c0 31
           763.490013462 [5524-5850] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           763.531776883 [5524-5857] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522fc40 31
           763.531800528 [5524-5857] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           763.550963724 [5524-5861] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522e5c0 31
           763.550991208 [5524-5861] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           763.582247032 [5524-5868] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522f2e0 31
           763.582271035 [5524-5868] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           763.584631584 [5524-5872] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522ed40 31
           763.584650985 [5524-5872] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           764.215076037 [5524-5886] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522e7a0 31
           764.215160354 [5524-5886] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           991.610334788 [5524-6184] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522fa60 31
           991.610405514 [5524-6184] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
           991.612651791 [5524-6189] ../src/vabackend.c:1780       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7f29e522e7a0 31
           991.612662894 [5524-6189] ../src/vabackend.c:1795       __vaDriverInit_1_0 Invalid driver for DRM device: i915
    libva error: /usr/lib/dri/nvidia_drv_video.so init failed
    
    ---
    
    

    I was trying to put nvidia-drm.modeset=1 in /etc/default/grub, or options nvidia_drm modeset=1 in /etc/modprobe.d/nvidia-drm.conf

    but when I restart the system, lightdm fails to init.


    My system

    Manjaro XFCE Using intel display (i915) with nvidia prime offloading (driver video-hybrid-intel-nvidia-prime)

    opened by ManuLinares 5
  • chrome-support branch displays wrong colors for vp9

    chrome-support branch displays wrong colors for vp9

    I tried the chrome-support branch.

    OS: Ubuntu 22.04 LTS
    Browser: Brave Version 1.41.100 Chromium: 103.0.5060.134 (Official Build) (64-bit)
    Graphics Processor: NVIDIA GeForce RTX 3070
    NVIDIA Driver Version: 515.48.07
    XDG_SESSION_TYPE: x11
    nvidia-vaapi-driver branch: chrome-support
    

    YouTube video: Big Buck Bunny 60fps 4K

    I use the enhanced-h264ify extension to toggle AV1 off / on.

    VP9: wrong colors, hardware accelerated

    image

    AV1: correct colors, not hardware accelerated

    image

    Brave arguments:

    brave-browser-stable \
        --disable-features=UseChromeOSDirectVideoDecoder \
        --enable-features=VaapiVideoDecoder \
        --use-gl=desktop $* &> /dev/null &
    
    opened by marioroy 25
  • vaapi version mismatch and driver errors

    vaapi version mismatch and driver errors

    System Info: Firefox version: 100.0 (64-bit) Ubuntu 22.04 15.05 kernel RTX 3080 Nvidia Driver: 510.60.02 nvidia_drm.modeset=1 set env:

    MOZ_DISABLE_RDD_SANDBOX=1
    MOZ_X11_EGL=1
    LIBVA_DRIVER_NAME=nvidia
    

    I've got some issues getting firefox (and other applications) to recognize the vaapi nvidia drivers correctly. I initially had some trouble removing VDPAU and installing NVDEC but vainfo is now reporting NVDEC is installed correctly:

    NVD_LOG=1 vainfo
    libva info: VA-API version 1.14.0
    libva info: User environment variable requested driver 'nvidia'
    libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
    libva info: Found init function __vaDriverInit_1_0
    [68770-68770] ../src/vabackend.c:1642       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x563151f88e50 10
    [68770-68770] ../src/vabackend.c:1645       __vaDriverInit_1_0 Non-DRM display type detected, defaulting to GPU ID 0. Use NVD_GPU to pick a specific GPU.
    [68770-68770] ../src/export-buf.c: 164       findGPUIndexFromFd Looking for GPU index: 0
    [68770-68770] ../src/export-buf.c: 175       findGPUIndexFromFd Found 3 EGL devices
    [68770-68770] ../src/export-buf.c: 184       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
    [68770-68770] ../src/export-buf.c: 136 checkModesetParameterFromFd Unable to check nvidia_drm modeset setting
    [68770-68770] ../src/export-buf.c: 208       findGPUIndexFromFd Selecting EGLDevice 0
    [68770-68770] ../src/export-buf.c: 270             initExporter Driver doesn't support 16-bit surfaces
    [68770-68770] ../src/export-buf.c: 103                reconnect Reconnecting to stream
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.14 (libva 2.12.0)
    vainfo: Driver version: VA-API NVDEC driver
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            :	VAEntrypointVLD
          VAProfileMPEG2Main              :	VAEntrypointVLD
          VAProfileVC1Simple              :	VAEntrypointVLD
          VAProfileVC1Main                :	VAEntrypointVLD
          VAProfileVC1Advanced            :	VAEntrypointVLD
          <unknown profile>               :	VAEntrypointVLD
          VAProfileH264Main               :	VAEntrypointVLD
          VAProfileH264High               :	VAEntrypointVLD
          VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
          VAProfileHEVCMain               :	VAEntrypointVLD
          VAProfileVP8Version0_3          :	VAEntrypointVLD
          VAProfileVP9Profile0            :	VAEntrypointVLD
          VAProfileAV1Profile0            :	VAEntrypointVLD
    [68770-68770] ../src/vabackend.c:1626              nvTerminate Terminating 0x563151f88e50
    [68770-68770] ../src/export-buf.c:  65          releaseExporter Releasing exporter, 0 outstanding frames
    [68770-68770] ../src/export-buf.c:  82          releaseExporter Done releasing frames
    
    
    However when I run firefox I can't get hardware decoding to work, and it's reporting an older version of va-api and some errors. I have tested 1080p/4k videos in youtube, vimeo, twitch, and a few other locations with the same results. Videos play but fall back to software decoding. GPU utilization remains low.
    firefox (vaapi 1.7.0) errors
    Gtk-Message: 11:39:27.937: Failed to load module "canberra-gtk-module"
    Gtk-Message: 11:39:27.938: Failed to load module "canberra-gtk-module"
    ATTENTION: default value of option mesa_glthread overridden by environment.
    ATTENTION: default value of option mesa_glthread overridden by environment.
    libva info: VA-API version 1.7.0
    libva info: User environment variable requested driver 'nvidia'
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
    libva info: va_openDriver() returns -1
    

    VLC at least reports the same newer vaapi version but still returns errors. I have tested various H264/HEVC files with the same results. Videos usually play with poor performance and fall back to software decoding. GPU utilization remains low.

    vlc (vaapi 1.14.0) errors
    [00007fda04004910] gl gl: Initialized libplacebo v4.192.1 (API v192)
    libva info: VA-API version 1.14.0
    libva info: User environment variable requested driver 'nvidia'
    libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
    libva info: Found init function __vaDriverInit_1_0
    libva info: va_openDriver() returns 0
    [00007fda04004910] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
    [00007fda006e7320] main video output error: video output creation failed
    [00007fda18cc9c50] main decoder error: failed to create video output
    [00007fda04099d90] gl gl: Initialized libplacebo v4.192.1 (API v192)
    [00007fda04099d90] gl gl: Initialized libplacebo v4.192.1 (API v192)
    

    I think hardware decoding is working with mpv player. I notice the "compute" type showing up in nvtop and cpu usage is fairly low for that process compared to when I use another video player. For a few videos I only see a green screen with audio, but I think that's an unrelated issue. I'm not exactly sure where to go from here.

    opened by conorlmcbride 13
  • Low framerate for some YouTube videos

    Low framerate for some YouTube videos

    OS: Arch Linux DE: Gnome on X11 Firefox version: 100.0-1 (Arch package) nvidia-vaapi-driver: AUR -Git package Card Model: Nvidia RTX 3080ti Nvidia driver version: 510.68.02-1 (Arch package)

    With Firefox 100 hitting in Arch today, I decided to try out this driver now that the bug that was happening FF99 was fixed. On some videos, playback is working as expected. On others, the video playback framerate is very low. I don't know if this is a specific codec issue (I don't know how to check which codec is in use on a YouTube video.

    Here's an example of a video with very slow framerate when this driver is enabled. Here's the log output from a quick session where i played a few seconds of the video.

    The command line I used for this test:

    $ LIBVA_DRIVER_NAME=nvidia MOZ_DISABLE_RDD_SANDBOX=1 NVD_LOG=vid.log firefox

    firefox-issue 
    opened by bcrescimanno 11
  • Video decode does not work after exiting sleep.

    Video decode does not work after exiting sleep.

    Firefox 98.0a1 (2022-01-23) Nvidia drivers: 510.39.01

    Video decode works properly after boot, but fails with the following log after entering sleep and exiting it

    libva info: VA-API version 1.13.0 libva info: User environment variable requested driver 'nvidia' libva info: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so [329498-329517] ../nvidia-vaapi-driver-0.0.3/src/vabackend.c: 84 init cuda error 'unknown error' (999)

    nvidia-issue 
    opened by Lucius-Q-User 17
Releases(v0.0.6)
  • v0.0.6(May 25, 2022)

    What's Changed

    • Multi-threaded decode. In previous versions the final steps of decoding a frame would only be started when vaExportSurfaceHandle was called. This wasn't correct, and only worked because ffmpeg based applications (such as Firefox) call it every frame, however that isn't required by VA-API. This change moves the final steps to a separate thread that begins when vaEndPicture is called.
    • Reworked GPU selection. We now use the the passed-in DRM fd to attempt to select the correct GPU to use. This can be overridden with the NVD_GPU environment variable which you can set to the id of the GPU you want to use. You can use the nvidia-smi tool to find the id.
    • Added option to limit the maximum instances per process using the NVD_MAX_INSTANCES environment variable. This setting limits how many concurrent contexts are allow, which can limit the amount of memory that's used. Useful for GPUs with limited VRAM on video heavy websites.
    • Added missing libva dependency to build, and set the minimum required version to 2.8.0.
    • Set EGL_SUPPORT_REUSE_NV to false when creating the EGLStream. This prevents NVIDIA's EGL library from buffering one of the frames, which could lead to the driver leaking that frame.
    • Update README.md to remove mention of FF96 being in beta. by @AdamSzopa in https://github.com/elFarto/nvidia-vaapi-driver/pull/55
    • meson: Add a wrap file for ff-nvcodec-headers by @nirbheek in https://github.com/elFarto/nvidia-vaapi-driver/pull/59
    • Add alignment and remove static by @pobrn in https://github.com/elFarto/nvidia-vaapi-driver/pull/67
    • vabackend: fix alignment of codecs by @pobrn in https://github.com/elFarto/nvidia-vaapi-driver/pull/72
    • vabackend: retain section from linker garbage collection by @pobrn in https://github.com/elFarto/nvidia-vaapi-driver/pull/81

    New Contributors

    • @AdamSzopa made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/55
    • @nirbheek made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/59

    Full Changelog: https://github.com/elFarto/nvidia-vaapi-driver/compare/v0.0.5...v0.0.6

    Source code(tar.gz)
    Source code(zip)
  • v0.0.5(Feb 12, 2022)

    What's Changed

    • AV1 support! This release adds support for decoding AV1 videos on 30-series NVIDIA cards. For use in Firefox, version 98+ is required. Thanks to @johnjohnlin, @Draghtnod, @struq, @philipl and @GageBerz for all the testing they did.
    • Reworked modeset check to ensure we always use the DRI render node, rather than the master node. Opening the master node causes a message to be logged to dmesg, which we want to avoid.

    Full Changelog: https://github.com/elFarto/nvidia-vaapi-driver/compare/v0.0.4...v0.0.5

    Source code(tar.gz)
    Source code(zip)
  • v0.0.4(Jan 31, 2022)

    What's Changed

    • Reworked surface export process. The previous surface export method (the key piece of code that made this library possible) only used two EGLImages to export finished frames to the client. Unfortunately this led to some weird artifacts where the wrong frame would end up in the EGLImage before the client used it. The export process has now been changed to have as many EGLImages as the client needs. This uses more memory, but fixes all the know visual glitches and has slightly less per-frame overhead.
    • Better clean-up on terminate. Some EGLImages were being left in memory causing a memory leak.
    • Improved surface allocation. Some clients don't provide a list of surfaces on context creation, so we need to take a guess at how many decode surfaces we need.
    • Improved device checking. Check the DRM render node if available instead of the master node, as that can generate an error message in the kernel log.
    • Added check for 16-bit surface support. We now check the driver to see if it has 16-bit surface support. Hopefully this will be added in a future NVIDIA driver version.

    Full Changelog: https://github.com/elFarto/nvidia-vaapi-driver/compare/v0.0.3...v0.0.4

    Source code(tar.gz)
    Source code(zip)
  • v0.0.3(Jan 22, 2022)

    What's Changed

    • Added av1 meson option to enable AV1 support at build time. The codec is still not functional, this is purely to allow testing.
    • Fixed VP8 support, this was broken due to lack of support on my 1060. Thanks to @imatimba for their testing!
    • Added a check for the Firefox sandbox on start-up, and fail to initalise if it's detected.
    • Added a check for the nvidia_drm modeset parameter on start-up, and fail to initalise if it's set to 0.

    Full Changelog: https://github.com/elFarto/nvidia-vaapi-driver/compare/v0.0.2...v0.0.3

    Source code(tar.gz)
    Source code(zip)
  • v0.0.2(Jan 14, 2022)

    What's Changed

    • MIT license, Proposed by @KAMiKAZOW in https://github.com/elFarto/nvidia-vaapi-driver/pull/10
    • Fix accumulating memory leaks by @anas2660 in https://github.com/elFarto/nvidia-vaapi-driver/pull/16
    • Fixed build issues on Arch by @dawidgarus in https://github.com/elFarto/nvidia-vaapi-driver/pull/9
    • General code cleanup by @pobrn in https://github.com/elFarto/nvidia-vaapi-driver/pull/19
    • Introduce use of nv-codec-headers by @philipl in https://github.com/elFarto/nvidia-vaapi-driver/pull/21
    • Fixed problems with EGL initialisation occasionally getting the wrong display
    • Fully removed AV1 from being advertised as supported
    • General bug fixes and logging improvements
    • Reworked the settings and environment variables needed to run in Firefox. We now ensure the driver is run in the RDD process, and disable that sandbox, instead of disabling the main content sandbox.
    • Fixed issue with NVIDIA 510 beta driver, #26
    • Fixed issue with Kodi using slightly different sizes for surfaces, #27
    • Fixed issue with Kodi attempting to use unimplemented codec, #28

    New Contributors

    • @KAMiKAZOW made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/10
    • @anas2660 made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/16
    • @dawidgarus made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/9
    • @pobrn made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/19
    • @philipl made their first contribution in https://github.com/elFarto/nvidia-vaapi-driver/pull/21

    Thank you to all the people who've contributed code and bug reports, they've help tremendously!

    Full Changelog: https://github.com/elFarto/nvidia-vaapi-driver/compare/v0.0.1...v0.0.2

    Source code(tar.gz)
    Source code(zip)
  • v0.0.1(Jan 3, 2022)

Owner
Stephen
Stephen
ResNet Implementation, Training, and Inference Using LibTorch C++ API

LibTorch C++ ResNet CIFAR Example Introduction ResNet implementation, training, and inference using LibTorch C++ API. Because there is no native imple

Lei Mao 20 Jun 20, 2022
Training and Evaluating Facial Classification Keras Models using the Tensorflow C API Implemented into a C++ Codebase.

CFace Training and Evaluating Facial Classification Keras Models using the Tensorflow C API Implemented into a C++ Codebase. Dependancies Tensorflow 2

null 8 Nov 23, 2021
Implement yolov5 with Tensorrt C++ api, and integrate batchedNMSPlugin. A Python wrapper is also provided.

yolov5 Original codes from tensorrtx. I modified the yololayer and integrated batchedNMSPlugin. A yolov5s.wts is provided for fast demo. How to genera

weiwei zhou 41 Jul 6, 2022
cudnn_frontend provides a c++ wrapper for the cudnn backend API and samples on how to use it

cuDNN Frontend API Introduction The cuDNN Frontend API is a C++ header-only library that demonstrates how to use the cuDNN C backend API. The cuDNN C

NVIDIA Corporation 105 Jul 25, 2022
Deep Learning API and Server in C++11 support for Caffe, Caffe2, PyTorch,TensorRT, Dlib, NCNN, Tensorflow, XGBoost and TSNE

Open Source Deep Learning Server & API DeepDetect (https://www.deepdetect.com/) is a machine learning API and server written in C++11. It makes state

JoliBrain 2.4k Aug 2, 2022
An unified library for fitting primitives from 3D point cloud data with both C++&Python API.

PrimitivesFittingLib An unified library for fitting multiple primitives from 3D point cloud data with both C++&Python API. The supported primitives ty

Yueci Deng 10 Jun 30, 2022
Header-only library for using Keras models in C++.

frugally-deep Use Keras models in C++ with ease Table of contents Introduction Usage Performance Requirements and Installation FAQ Introduction Would

Tobias Hermann 882 Aug 7, 2022
GPU Cloth TOP in TouchDesigner using CUDA-enabled NVIDIA Flex

This project demonstrates how to use NVIDIA FleX for GPU cloth simulation in a TouchDesigner Custom Operator. It also shows how to render dynamic meshes from the texture data using custom PBR GLSL material shaders inside TouchDesigner.

Vinícius Ginja 37 Jul 27, 2022
ICRA 2021 - Robust Place Recognition using an Imaging Lidar

Robust Place Recognition using an Imaging Lidar A place recognition package using high-resolution imaging lidar. For best performance, a lidar equippe

Tixiao Shan 275 Jul 28, 2022
Using PLT trampolines to provide a BLAS and LAPACK demuxing library.

libblastrampoline All problems in computer science can be solved by another level of indirection Using PLT trampolines to provide a BLAS and LAPACK de

Elliot Saba 44 May 13, 2022
A C library for product recommendations/suggestions using collaborative filtering (CF)

Recommender A C library for product recommendations/suggestions using collaborative filtering (CF). Recommender analyzes the feedback of some users (i

Ghassen Hamrouni 250 Aug 5, 2022
An open source machine learning library for performing regression tasks using RVM technique.

Introduction neonrvm is an open source machine learning library for performing regression tasks using RVM technique. It is written in C programming la

Siavash Eliasi 33 May 31, 2022
Spying on Microcontrollers using Current Sensing and embedded TinyML models

Welcome to CurrentSense-TinyML CurrentSense-TinyML is all about detecting microcontroller behaviour with current sensing and TinyML. Basically we are

Santander Security Research 69 Jul 27, 2022
Raspberry Pi guitar pedal using neural networks to emulate real amps and pedals.

NeuralPi NeuralPi is a guitar pedal using neural networks to emulate real amps and pedals on a Raspberry Pi 4. The NeuralPi software is a VST3 plugin

Keith Bloemer 674 Aug 10, 2022
vs2015上使用tensorRT加速yolov5推理(Using tensorrt to accelerate yolov5 reasoning on vs2015)

1、安装环境 CUDA10.2 TensorRT7.2 OpenCV3.4(工程中已给出,不需安装) vs2015 下载相关工程:https://github.com/wang-xinyu/tensorrtx.git 2、生成yolov5s.wts文件 在生成yolov5s.wts前,首先需要下载模

null 16 Apr 19, 2022
License plate parsing using Darknet and YOLO

DarkPlate Note that DarkPlate by itself is not a complete software project. The intended purpose was to create a simple project showing how to use Dar

Stéphane Charette 27 Apr 11, 2022
Super Mario Remake using C++, SFML, and Image Processing which was a project for Structure Programming Course, 1st Year

Super Mario Remake We use : C++ in OOP concepts SFML for game animations and sound effects. Image processing (Tensorflow and openCV) to add additional

Omar Elshopky 5 Jun 19, 2022
This is a small example project, that showcases the possibility of using a surrogate model to estimate the drag coefficient of arbitrary triangles.

flowAroundTriangles This is a small example project, that showcases the possibility of using a surrogate model to estimate the drag coefficient of arb

null 5 Jun 23, 2022