elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.17k stars 53 forks source link

HW Acceleration on Ubuntu 22.04 #233

Closed xphoniex closed 1 year ago

xphoniex commented 1 year ago

I was looking at my mpv logs and noticed HW Acceleration is not working for me:

[vd] Opening decoder h264
[vd] Looking at hwdec h264-vaapi...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] using VAAPI EGL interop
[vo/gpu/vaapi-egl] Trying to open a x11 VA display...
[vo/gpu/vaapi-egl/vaapi] libva: VA-API version 1.14.0
[vo/gpu/vaapi-egl/vaapi] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
[vo/gpu/vaapi-egl/vaapi] libva: va_openDriver() returns -1
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Could not create device.
[vd] No hardware decoding available for this codec.
[vd] Using software decoding.

vainfo was returning something similar: va_openDriver() returns -1

I'm on Ubuntu 22.04 LTS Jammy, which the package for, does not exist. You have it for 22.10 but not 22.04.

So I built it from source, (also had to apt install libdrm-dev, maybe add it to list?) and now:

$ vainfo
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: VA-API NVDEC driver [egl backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointVLD

I have installed my driver using NVIDIA-Linux-x86_64-525.85.05.run file, and don't have anything else.

now in mpv, I get:

[vd] Opening decoder h264
[vd] Looking at hwdec h264-vaapi...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] using VAAPI EGL interop
[vo/gpu/vaapi-egl] Trying to open a x11 VA display...
[vo/gpu/vaapi-egl/vaapi] libva: VA-API version 1.14.0
[vo/gpu/vaapi-egl/vaapi] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
[vo/gpu/vaapi-egl/vaapi] libva: Found init function __vaDriverInit_1_0
[vo/gpu/vaapi-egl/vaapi] libva: va_openDriver() returns 0
[vo/gpu/vaapi-egl/vaapi] Initialized VAAPI: version 1.14
[ffmpeg] AVHWDeviceContext: VAAPI driver: VA-API NVDEC driver [egl backend].
[ffmpeg] AVHWDeviceContext: Driver not found in known nonstandard list, using standard behaviour.
[vo/gpu/vaapi-egl] Going to probe surface formats (may log bogus errors)...
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed)
[vo/gpu/vaapi-egl] Supported formats:
[vo/gpu/vaapi-egl] Done probing surface formats.
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Could not create device.
[vd] No hardware decoding available for this codec.
[vd] Using software decoding.

here's nvidia-smi:

$ nvidia-smi
Fri Aug 11 23:22:20 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.05    Driver Version: 525.85.05    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  Off |
| 34%   41C    P8    22W / 450W |    941MiB / 24564MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1183      G   /usr/lib/xorg/Xorg                242MiB |
|    0   N/A  N/A      1986      G   alacritty                          15MiB |
|    0   N/A  N/A      6223      G   ...7/usr/lib/firefox/firefox      179MiB |
|    0   N/A  N/A     22890      G   ...735348111746672520,262144       57MiB |
|    0   N/A  N/A    169356    C+G   mpv                               401MiB |
|    0   N/A  N/A    234712      G   alacritty                          15MiB |
|    0   N/A  N/A    238420      G   alacritty                          23MiB |
+-----------------------------------------------------------------------------+

Given the line [vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display., I thought this was a drm issue, so I rebooted and added nvidia_drm.modeset=1 at the end of my linux ... line in grub.

I tried both nvidia_drm.modeset and nvidia-drm.modeset, but mpv is still using software decoding, and drm seems to be enabled:

$ sudo cat /sys/module/nvidia_drm/parameters/modeset
Y

what's missing? what do I need to do?

xphoniex commented 1 year ago

Do I need to download CUDA for this to work?

Downloading cuda_12.2.1_535.86.10_linux.run right now, but Nvidia's server is dropping my download speed down to 100kb/s, so it's very annoying.

xphoniex commented 1 year ago

I can set NVD_BACKEND=direct and get this:

[vd] Opening decoder h264
[vd] Looking at hwdec h264-vaapi...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] using VAAPI EGL interop
[vo/gpu/vaapi-egl] Trying to open a x11 VA display...
[vo/gpu/vaapi-egl/vaapi] libva: VA-API version 1.14.0
[vo/gpu/vaapi-egl/vaapi] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
[vo/gpu/vaapi-egl/vaapi] libva: Found init function __vaDriverInit_1_0
[vo/gpu/vaapi-egl/vaapi] libva: va_openDriver() returns 0
[vo/gpu/vaapi-egl/vaapi] Initialized VAAPI: version 1.14
[ffmpeg] AVHWDeviceContext: VAAPI driver: VA-API NVDEC driver [direct backend].
[ffmpeg] AVHWDeviceContext: Driver not found in known nonstandard list, using standard behaviour.
[vo/gpu/vaapi-egl] Going to probe surface formats (may log bogus errors)...
[vo/gpu/vaapi-egl] Supported formats:
[vo/gpu/vaapi-egl]  nv12
[vo/gpu/vaapi-egl]  p010
[vo/gpu/vaapi-egl]  yuv444p
[vo/gpu/vaapi-egl] Done probing surface formats.
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Trying hardware decoding via h264-vaapi.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[af] [in] 44100Hz stereo 2ch floatp
[af] [userspeed] 44100Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 44100Hz stereo 2ch floatp
[vd] Pixel formats supported by decoder: vdpau cuda vaapi_vld yuv420p
[vd] Codec profile: High (0x64)
[vd] Requesting pixfmt 'vaapi_vld' from decoder.
[ffmpeg/video] h264: Reinit context to 1280x640, pix_fmt: vaapi_vld
[vd] Using hardware decoding (vaapi).

but the screen is just green. (I can also see Video Engine Utilization at 0% - 1%)

elFarto commented 1 year ago

It's pointless to use this driver with MPV, as that supports using NVDEC directly which is far more efficient.

xphoniex commented 1 year ago

But any idea why VA-API is not working?

In mpv, if I set hwdec=auto, I get NVDEC -- it's slower than CPU though :disappointed: .

Marking the issue as complete, but it'd still be nice to know what I did wrong, when setting up VA-API, in case some one comes across this issue via Google, etc.

elFarto commented 1 year ago

You could try running it with NVD_LOG=1 set and see if there's anything that points to an issues. But it's probably a question for the MPV devs.

xphoniex commented 1 year ago
mpv logs with NVD_LOG=1 ```bash [vd] Opening decoder h264 [vd] Looking at hwdec h264-vaapi... [vo/gpu] Loading hwdec driver 'vaapi-egl' [vo/gpu/vaapi-egl] using VAAPI EGL interop [vo/gpu/vaapi-egl] Trying to open a x11 VA display... [vo/gpu/vaapi-egl/vaapi] libva: VA-API version 1.14.0 [vo/gpu/vaapi-egl/vaapi] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so [vo/gpu/vaapi-egl/vaapi] libva: Found init function __vaDriverInit_1_0 25194.658334156 [104862-104873] ../src/vabackend.c:2171 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 10 25194.658337500 [104862-104873] ../src/vabackend.c:2180 __vaDriverInit_1_0 Now have 0 (0 max) instances 25194.658338768 [104862-104873] ../src/vabackend.c:2203 __vaDriverInit_1_0 Selecting EGL backend 25194.658344725 [104862-104873] ../src/export-buf.c: 132 findGPUIndexFromFd Defaulting to CUDA GPU ID 0. Use NVD_GPU to select a specific CUDA GPU 25194.658347028 [104862-104873] ../src/export-buf.c: 149 findGPUIndexFromFd Looking for GPU index: 0 25194.658497991 [104862-104873] ../src/export-buf.c: 161 findGPUIndexFromFd Found 3 EGL devices 25194.658534345 [104862-104873] ../src/export-buf.c: 170 findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0 25194.658535958 [104862-104873] ../src/export-buf.c: 191 findGPUIndexFromFd Selecting EGLDevice 0 25194.659030167 [104862-104873] ../src/export-buf.c: 260 egl_initExporter Driver supports 16-bit surfaces [vo/gpu/vaapi-egl/vaapi] libva: va_openDriver() returns 0 [vo/gpu/vaapi-egl/vaapi] Initialized VAAPI: version 1.14 25194.699817867 [104862-104873] ../src/vabackend.c:1409 nvQueryImageFormats In nvQueryImageFormats [ffmpeg] AVHWDeviceContext: VAAPI driver: VA-API NVDEC driver [egl backend]. [ffmpeg] AVHWDeviceContext: Driver not found in known nonstandard list, using standard behaviour. [vo/gpu/vaapi-egl] Going to probe surface formats (may log bogus errors)... 25194.706796338 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 0 with 0 attributes 25194.706802788 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) (nil) 0 25194.706804600 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) 0x7fa6590e5d80 8 25194.707285648 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4080, height: 16 - 4080 25194.707294425 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658fee690) 25194.707297827 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.707329466 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x1) 25194.707333391 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa65852e840) 25194.707335320 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa658a95950) 25194.707338190 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658fee690) 25194.707339986 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.707397040 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658fee690, 0x7fa658ff0a20, 0x7fa658ff14f0) 25194.707399807 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'invalid resource handle' (400) 25194.707401341 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.707435932 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.707437775 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658fee690 (-1) 25194.707439259 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.707449688 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658fee690) 25194.707451300 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.707454873 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658fef670) 25194.707456572 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.707463940 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658fef670) 25194.707465301 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.707491716 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658fef670, 0x7fa658ff0690, 0x7fa658ff5ac0) 25194.707516110 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.707517672 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.707534463 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.707536191 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658fef670 (-1) 25194.707537361 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.707542811 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658fef670) 25194.707544108 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.707545997 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 1 with 0 attributes 25194.707548446 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) (nil) 0 25194.707550037 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) 0x7fa658ff0140 8 25194.708262594 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4080, height: 16 - 4080 25194.708270480 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658ff0280) 25194.708273284 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.708286286 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff0280) 25194.708288699 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.708294074 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff0280, 0x7fa658ff0540, 0x7fa658ff5200) 25194.708318294 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.708319960 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.708333010 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.708334789 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff0280 (-1) 25194.708336050 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.708343967 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff0280) 25194.708345536 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.708348814 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ff3670) 25194.708350440 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.708357519 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6590) 25194.708360102 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.708361939 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff3670) 25194.708363287 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.708367061 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff3670, 0x7fa658fefbc0, 0x7fa658ff92a0) 25194.708384372 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.708386288 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.708391735 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.708393537 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff3670 (-1) 25194.708394834 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.708399744 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff3670) 25194.708401050 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.708403092 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 8 with 0 attributes 25194.708405294 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) (nil) 0 25194.708406926 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) 0x7fa658ff36c0 8 25194.708907327 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 25194.708913767 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658fef5c0) 25194.708915902 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.708928034 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6920) 25194.708930693 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.708932837 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658fef5c0) 25194.708934371 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.708939590 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658fef5c0, 0x7fa658ff9da0, 0x7fa658ffa190) 25194.708960417 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.708961964 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.708972230 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.708973980 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658fef5c0 (-1) 25194.708975184 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.708981754 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658fef5c0) 25194.708983166 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.708986122 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ff8bf0) 25194.708987817 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.708993525 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff8bf0) 25194.708994846 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.708998405 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff8bf0, 0x7fa658ff8c90, 0x7fa658ff4bb0) 25194.709015067 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.709016679 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.709022197 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.709023787 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff8bf0 (-1) 25194.709024971 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.709029305 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff8bf0) 25194.709030573 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.709032584 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 9 with 0 attributes 25194.709034774 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) (nil) 0 25194.709036327 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) 0x7fa658ff5980 8 25194.709529775 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 25194.709536024 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658ff8ac0) 25194.709538191 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.709550196 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6860) 25194.709552885 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.709554956 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff8ac0) 25194.709556350 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.709561451 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff8ac0, 0x7fa658ffc030, 0x7fa658ffc420) 25194.709582109 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.709583656 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.709593643 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.709595373 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff8ac0 (-1) 25194.709596637 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.709603137 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff8ac0) 25194.709604517 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.709607412 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ff45b0) 25194.709608980 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.709614139 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff45b0) 25194.709615487 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.709618958 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff45b0, 0x7fa658ff8b60, 0x7fa658ffd860) 25194.709635415 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.709636949 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.709642017 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.709643600 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff45b0 (-1) 25194.709644772 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.709650276 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff45b0) 25194.709651576 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.709653644 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 10 with 0 attributes 25194.709655758 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) (nil) 0 25194.709657367 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) 0x7fa658ff5840 8 25194.710174490 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 25194.710181093 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658feebc0) 25194.710183490 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.710195974 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6920) 25194.710198829 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.710200532 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658feebc0) 25194.710202325 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.710207525 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658feebc0, 0x7fa658ff4680, 0x7fa658ffdf20) 25194.710228815 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.710230688 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.710240289 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.710241918 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658feebc0 (-1) 25194.710243349 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.710249776 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658feebc0) 25194.710251210 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.710254107 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ffc810) 25194.710255703 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.710260967 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ffc810) 25194.710262305 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.710265751 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ffc810, 0x7fa658ffc8b0, 0x7fa658ffd2e0) 25194.710282412 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.710283928 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.710289171 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.710290726 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ffc810 (-1) 25194.710291965 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.710296200 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ffc810) 25194.710297435 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.710299273 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 6 with 0 attributes 25194.710301293 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 25194.710302818 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x7fa658ff8e80 8 25194.710804936 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 25194.710811002 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658ff8dc0) 25194.710813071 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.710824859 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6920) 25194.710827435 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.710829579 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff8dc0) 25194.710830923 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.710836147 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff8dc0, 0x7fa658ff7aa0, 0x7fa658fff010) 25194.710856479 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.710858015 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.710867691 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.710869428 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff8dc0 (-1) 25194.710870599 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.710876994 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff8dc0) 25194.710878433 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.710881295 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ffe3e0) 25194.710882829 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.710888022 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ffe3e0) 25194.710889353 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.710892534 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ffe3e0, 0x7fa658ffd040, 0x7fa659000290) 25194.710908965 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.710910496 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.710915642 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.710917190 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ffe3e0 (-1) 25194.710918364 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.710922411 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ffe3e0) 25194.710923604 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.710925424 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 7 with 0 attributes 25194.710927399 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 25194.710928848 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x7fa65850f300 8 25194.711519944 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 25194.711525747 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658ff8e50) 25194.711527964 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.711539714 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6860) 25194.711542369 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.711544484 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff8e50) 25194.711546037 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.711551087 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff8e50, 0x7fa658ffe9c0, 0x7fa659000950) 25194.711571442 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.711572958 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.711582491 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.711584127 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff8e50 (-1) 25194.711585403 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.711591902 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff8e50) 25194.711593339 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.711596230 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ffeb80) 25194.711597988 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.711603748 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ffeb80) 25194.711605103 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.711608409 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ffeb80, 0x7fa658ffe310, 0x7fa659001680) 25194.711624824 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.711626355 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.711632195 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.711633822 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ffeb80 (-1) 25194.711635059 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.711639518 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ffeb80) 25194.711640815 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.711642436 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 13 with 0 attributes 25194.711644364 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 25194.711646068 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x7fa658ffe540 8 25194.712143103 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 25194.712150155 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658ff0140) 25194.712152734 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.712165607 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6920) 25194.712168526 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.712170886 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff0140) 25194.712172604 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.712177901 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff0140, 0x7fa658ffee40, 0x7fa6590023b0) 25194.712199330 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.712200916 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.712212257 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.712214043 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff0140 (-1) 25194.712215353 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.712222856 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff0140) 25194.712224311 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.712228066 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa658ff4840) 25194.712229692 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.712236311 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6590) 25194.712238716 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.712240648 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ff4840) 25194.712242105 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.712245746 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ff4840, 0x7fa659001000, 0x7fa6590030e0) 25194.712262578 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.712264179 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.712269933 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.712271586 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ff4840 (-1) 25194.712272793 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.712277501 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ff4840) 25194.712278780 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.712280383 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 17 with 0 attributes 25194.712282408 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (8) (nil) 0 25194.712284257 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (8) 0x7fa658ffcf00 8 25194.712778084 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 25194.712784232 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa65850f3d0) 25194.712786521 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.712796824 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa65850f3d0) 25194.712798291 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.712803588 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa65850f3d0, 0x7fa659002cf0, 0x7fa659001cc0) 25194.712824705 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.712826329 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.712837840 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.712839581 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa65850f3d0 (-1) 25194.712840827 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.712848045 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa65850f3d0) 25194.712849485 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.712852780 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa6590019d0) 25194.712854432 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.712861391 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6590) 25194.712863861 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.712865670 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa6590019d0) 25194.712867048 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.712870639 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa6590019d0, 0x7fa658ff47b0, 0x7fa658ff7940) 25194.712887311 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.712888846 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.712894342 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.712895996 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa6590019d0 (-1) 25194.712897208 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.712901593 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa6590019d0) 25194.712903008 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.712905098 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 14 with 0 attributes 25194.712907504 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 9 (8) (nil) 0 25194.712910812 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 9 (8) 0x7fa6580bf440 8 25194.713400336 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 25194.713406424 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa65850f3d0) 25194.713408580 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.713418839 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa65850f3d0) 25194.713420290 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.713425701 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa65850f3d0, 0x7fa659003980, 0x7fa659003fa0) 25194.713446445 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.713448017 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.713458734 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.713460431 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa65850f3d0 (-1) 25194.713461640 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.713468283 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa65850f3d0) 25194.713469712 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.713472597 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa659002920) 25194.713474112 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.713480712 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6590) 25194.713483211 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.713485131 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa659002920) 25194.713486390 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.713489719 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa659002920, 0x7fa658ffce80, 0x7fa659004cd0) 25194.713506590 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.713508106 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.713513350 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.713514945 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa659002920 (-1) 25194.713516185 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.713519891 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa659002920) 25194.713521358 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.713523528 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 32 with 0 attributes 25194.713525116 [104862-104873] ../src/vabackend.c: 711 nvCreateConfig Unable to determine surface type for VP9/AV1 codec due to no RTFormat specified. 25194.713527023 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 11 (8) (nil) 0 25194.713528571 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 11 (8) 0x7fa659000e00 8 25194.714019141 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 128 - 8192, height: 128 - 8192 25194.714025467 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658ffc9d0) 25194.714027690 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.714038031 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658ffc9d0) 25194.714039521 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.714045022 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658ffc9d0, 0x7fa6590019d0, 0x7fa6590052f0) 25194.714066742 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.714068388 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.714079882 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.714081622 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658ffc9d0 (-1) 25194.714082824 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.714089768 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658ffc9d0) 25194.714091211 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.714094382 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa6590035b0) 25194.714096131 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.714103113 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6590) 25194.714105655 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.714107448 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa6590035b0) 25194.714108742 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.714112556 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa6590035b0, 0x7fa6590048d0, 0x7fa658ff75c0) 25194.714129301 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.714130822 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.714136481 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.714138157 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa6590035b0 (-1) 25194.714139321 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.714143711 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa6590035b0) 25194.714144979 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.714146861 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 18 with 0 attributes 25194.714149084 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (10) (nil) 0 25194.714150726 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (10) 0x7fa6590045c0 8 25194.714649491 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 25194.714655780 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa6580bf420) 25194.714657943 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.714668011 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa6580bf420) 25194.714669554 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.714674744 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa6580bf420, 0x7fa6590043e0, 0x7fa659006020) 25194.714695810 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.714697444 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.714708198 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.714709868 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa6580bf420 (-1) 25194.714711163 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.714717781 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa6580bf420) 25194.714719154 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.714722081 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa6590028c0) 25194.714723776 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.714728916 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa6590028c0) 25194.714730291 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.714734101 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa6590028c0, 0x7fa659005af0, 0x7fa6590072a0) 25194.714750864 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.714752366 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.714757546 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.714759243 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa6590028c0 (-1) 25194.714760480 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.714764883 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa6590028c0) 25194.714766087 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.714767837 [104862-104873] ../src/vabackend.c: 648 nvCreateConfig got profile: 23 with 0 attributes 25194.714770005 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (12) (nil) 0 25194.714771569 [104862-104873] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (12) 0x7fa6590028c0 8 25194.715267096 [104862-104873] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 25194.715273245 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7fa658057260) 25194.715275470 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.715285151 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa658057260) 25194.715286555 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.715291632 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa658057260, 0x7fa6590027a0, 0x7fa6590078c0) 25194.715312516 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.715314069 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.715324383 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.715325978 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa658057260 (-1) 25194.715327178 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.715333571 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa658057260) 25194.715334909 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface 25194.715338326 [104862-104873] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7fa659003630) 25194.715339988 [104862-104873] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 25194.715346650 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7fa6584c6460) 25194.715349427 [104862-104873] ../src/export-buf.c: 56 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x100000000000001) 25194.715351511 [104862-104873] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7fa659003630) 25194.715352758 [104862-104873] ../src/export-buf.c: 528 egl_realiseSurface No free surfaces found 25194.715356220 [104862-104873] ../src/export-buf.c: 440 egl_allocateBackingImage Presenting frame -1 128x128 (0x7fa659003630, 0x7fa659005800, 0x7fa658fffe70) 25194.715372916 [104862-104873] ../src/export-buf.c: 441 egl_allocateBackingImage CUDA ERROR 'unknown error' (999) 25194.715374467 [104862-104873] ../src/export-buf.c: 95 reconnect Reconnecting to stream 25194.715379910 [104862-104873] ../src/export-buf.c: 115 reconnect CUDA ERROR 'operation not supported' (801) 25194.715381555 [104862-104873] ../src/export-buf.c: 533 egl_realiseSurface Unable to realise surface: 0x7fa659003630 (-1) 25194.715382713 [104862-104873] ../src/vabackend.c:2060 nvExportSurfaceHandle Unable to export surface [vo/gpu/vaapi-egl] vaExportSurfaceHandle() failed (resource allocation failed) 25194.715387274 [104862-104873] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7fa659003630) 25194.715388536 [104862-104873] ../src/export-buf.c: 335 egl_detachBackingImageFromSurface Cannot detach NULL BackingImage from Surface [vo/gpu/vaapi-egl] Supported formats: [vo/gpu/vaapi-egl] Done probing surface formats. 25194.715394404 [104862-104873] ../src/vabackend.c:2081 nvTerminate Terminating 0x7fa6584c2620 25194.715396068 [104862-104873] ../src/export-buf.c: 61 egl_releaseExporter Releasing exporter, 0 outstanding frames 25194.716477010 [104862-104873] ../src/export-buf.c: 78 egl_releaseExporter Done releasing frames 25194.716497648 [104862-104873] ../src/vabackend.c:2095 nvTerminate Now have 0 (0 max) instances [vo/gpu] Loading failed. [vo/gpu] Loading hwdec driver 'cuda-nvdec' [vo/gpu] Loading hwdec driver 'drmprime-drm' [vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display. [vo/gpu] Loading failed. [vd] Could not create device. [vd] No hardware decoding available for this codec. [vd] Using software decoding. [vd] Detected 32 logical cores. [vd] Requesting 16 threads for decoding. [vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [vf] User filter list: [vf] (empty) [ad] Codec list: [ad] aac - AAC (Advanced Audio Coding) [ad] aac_fixed (aac) - AAC (Advanced Audio Coding) [ad] Opening decoder aac [ad] Requesting 1 threads for decoding. [ad] Selected codec: aac (AAC (Advanced Audio Coding)) [af] User filter list: [af] (empty) [cplayer] Starting playback... [af] [in] 44100Hz stereo 2ch floatp [af] [userspeed] 44100Hz stereo 2ch floatp [af] [userspeed] (disabled) [af] [convert] 44100Hz stereo 2ch floatp [ffmpeg/video] h264: Reinit context to 1280x640, pix_fmt: yuv420p [vd] DR parameter change to 1280x642 yuv420p align=64 [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Allocating new DR image... [vd] Using software decoding. [vd] Allocating new DR image... [vd] Decoder format: 1280x640 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 [vf] [in] 1280x640 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] 1280x640 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] (disabled) [vf] [autorotate] 1280x640 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [autorotate] (disabled) [vf] [convert] 1280x640 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [convert] (disabled) [vf] [out] 1280x640 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 ```
elFarto commented 1 year ago

You'll need NVD_BACKEND=direct set too.

xphoniex commented 1 year ago
mpv logs with NVD_BACKEND=direct NVD_LOG=1 ```bash [vd] Opening decoder h264 [vd] Looking at hwdec h264-vaapi... [vo/gpu] Loading hwdec driver 'vaapi-egl' [vo/gpu/vaapi-egl] using VAAPI EGL interop [vo/gpu/vaapi-egl] Trying to open a x11 VA display... [vo/gpu/vaapi-egl/vaapi] libva: VA-API version 1.14.0 [vo/gpu/vaapi-egl/vaapi] libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so [vo/gpu/vaapi-egl/vaapi] libva: Found init function __vaDriverInit_1_0 28632.695734047 [126019-126030] ../src/vabackend.c:2171 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 10 28632.695737146 [126019-126030] ../src/vabackend.c:2180 __vaDriverInit_1_0 Now have 0 (0 max) instances 28632.695738846 [126019-126030] ../src/vabackend.c:2206 __vaDriverInit_1_0 Selecting Direct backend 28632.695750408 [126019-126030] ../src/direct/direct-export-buf.c: 85 direct_initExporter Found NVIDIA GPU 0 at /dev/dri/renderD128 28632.695752089 [126019-126030] ../src/direct/nv-driver.c: 223 init_nvdriver Initing nvdriver... 28632.695754317 [126019-126030] ../src/direct/nv-driver.c: 228 init_nvdriver Got dev info: 100 1 2 6 28632.695765034 [126019-126030] ../src/direct/nv-driver.c: 246 init_nvdriver NVIDIA kernel driver version: , major version: 0 [vo/gpu/vaapi-egl/vaapi] libva: va_openDriver() returns 0 [vo/gpu/vaapi-egl/vaapi] Initialized VAAPI: version 1.14 28632.726787365 [126019-126030] ../src/vabackend.c:1409 nvQueryImageFormats In nvQueryImageFormats [ffmpeg] AVHWDeviceContext: VAAPI driver: VA-API NVDEC driver [direct backend]. [ffmpeg] AVHWDeviceContext: Driver not found in known nonstandard list, using standard behaviour. [vo/gpu/vaapi-egl] Going to probe surface formats (may log bogus errors)... 28632.734805982 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 0 with 0 attributes 28632.734812650 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) (nil) 0 28632.734815255 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) 0x7f3f7d0268c0 8 28632.735280323 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4080, height: 16 - 4080 28632.735288067 [126019-126030] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 1 (0x7f3f7d027930) 28632.735290760 [126019-126030] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 28632.735323648 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x1) 28632.735326717 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7f3f7c52cf50) 28632.735329035 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7f3f7c9d31d0) 28632.735331755 [126019-126030] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7f3f7d027930) 28632.735333952 [126019-126030] ../src/direct/direct-export-buf.c: 198 direct_allocateBackingImage Allocating BackingImages: 0x7f3f7cf30be0 128x128 28632.735335753 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.735337176 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 128x128 = 16384 28632.735394443 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 128x128 300000000606014 128 4000 28632.735396085 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x64 (0x3) 28632.735397165 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 128x64 = 8192 28632.735426301 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 64x64 300000000606013 128 2000 28632.735427702 [126019-126030] ../src/direct/direct-export-buf.c: 204 direct_allocateBackingImage Importing images 28632.735428839 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 128x128 = 4000 28632.735482498 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 64x64 = 2000 28632.735531727 [126019-126030] ../src/vabackend.c:2068 nvExportSurfaceHandle Exporting with 128 128 0 128 300000000606014 0 128 300000000606013 28632.735671564 [126019-126030] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7f3f7d027930) 28632.735673289 [126019-126030] ../src/direct/direct-export-buf.c: 243 destroyBackingImage Destroying BackingImage: 0x7f3f7cf30be0 28632.735730972 [126019-126030] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 100 (0x7f3f7cf32060) 28632.735733049 [126019-126030] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 28632.735743710 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x31) 28632.735746310 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7f3f7cf2ed40) 28632.735748517 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7f3f7d0273c0) 28632.735751207 [126019-126030] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7f3f7cf32060) 28632.735752960 [126019-126030] ../src/direct/direct-export-buf.c: 198 direct_allocateBackingImage Allocating BackingImages: 0x7f3f7d027800 128x128 28632.735754495 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.735755938 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 256x128 = 32768 28632.735794025 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 128x128 300000000606014 256 8000 28632.735795586 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x64 (0x3) 28632.735796922 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 256x64 = 16384 28632.735825859 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 64x64 300000000606013 256 4000 28632.735827201 [126019-126030] ../src/direct/direct-export-buf.c: 204 direct_allocateBackingImage Importing images 28632.735828281 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 128x128 = 8000 28632.735867604 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 64x64 = 4000 28632.735912423 [126019-126030] ../src/vabackend.c:2068 nvExportSurfaceHandle Exporting with 128 128 0 256 300000000606014 0 256 300000000606013 28632.736007878 [126019-126030] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7f3f7cf32060) 28632.736009323 [126019-126030] ../src/direct/direct-export-buf.c: 243 destroyBackingImage Destroying BackingImage: 0x7f3f7d027800 28632.736056965 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 1 with 0 attributes 28632.736059407 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) (nil) 0 28632.736061025 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 1 (8) 0x7f3f7cf33e80 8 28632.736833279 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4080, height: 16 - 4080 28632.736838630 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 8 with 0 attributes 28632.736841141 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) (nil) 0 28632.736842742 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) 0x7f3f7cf33080 8 28632.737304473 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 28632.737309878 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 9 with 0 attributes 28632.737312371 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) (nil) 0 28632.737314056 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) 0x7f3f7d0268c0 8 28632.737777813 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 28632.737783209 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 10 with 0 attributes 28632.737785781 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) (nil) 0 28632.737787351 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 3 (8) 0x7f3f7cf2ee00 8 28632.738239780 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 2032, height: 16 - 2032 28632.738244830 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 6 with 0 attributes 28632.738247061 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 28632.738248911 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x7f3f7cf2ef00 8 28632.738692968 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.738697987 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 7 with 0 attributes 28632.738700215 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 28632.738701714 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x7f3f7d0268c0 8 28632.739153184 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.739157877 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 13 with 0 attributes 28632.739160002 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 28632.739161764 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x7f3f7d026dc0 8 28632.739603980 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.739608665 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 17 with 0 attributes 28632.739611107 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (8) (nil) 0 28632.739612625 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (8) 0x7f3f7d026ec0 8 28632.740066813 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 28632.740071736 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 14 with 0 attributes 28632.740073826 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 9 (8) (nil) 0 28632.740075514 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 9 (8) 0x7f3f7d0268c0 8 28632.740534001 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.740538703 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 32 with 0 attributes 28632.740540462 [126019-126030] ../src/vabackend.c: 711 nvCreateConfig Unable to determine surface type for VP9/AV1 codec due to no RTFormat specified. 28632.740542509 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 11 (8) (nil) 0 28632.740544007 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 11 (8) 0x7f3f7cf2ee00 8 28632.740988658 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 128 - 8192, height: 128 - 8192 28632.740993599 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 18 with 0 attributes 28632.740996045 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (10) (nil) 0 28632.740997535 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (10) 0x7f3f7cf2ef00 8 28632.741453558 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 28632.741458507 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 23 with 0 attributes 28632.741460673 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (12) (nil) 0 28632.741462161 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (12) 0x7f3f7d0268c0 8 28632.741912520 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 28632.741917911 [126019-126030] ../src/vabackend.c: 648 nvCreateConfig got profile: 26 with 0 attributes 28632.741920156 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (8) (nil) 0 28632.741921850 [126019-126030] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 8 (8) 0x7f3f7cf33140 5 28632.742365005 [126019-126030] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 144 - 8192, height: 144 - 8192 28632.742370946 [126019-126030] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 128x128, format 4 (0x7f3f7d026f40) 28632.742372926 [126019-126030] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 28632.742388988 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x1) 28632.742391645 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7f3f7cd64a40) 28632.742393621 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x7f3f7ce46550) 28632.742395595 [126019-126030] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: -1 (0x7f3f7d026f40) 28632.742397218 [126019-126030] ../src/direct/direct-export-buf.c: 198 direct_allocateBackingImage Allocating BackingImages: 0x7f3f7cf31c30 128x128 28632.742398575 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.742399843 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 128x128 = 16384 28632.742450869 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 128x128 300000000606014 128 4000 28632.742452544 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.742453593 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 128x128 = 16384 28632.742481969 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 128x128 300000000606014 128 4000 28632.742483033 [126019-126030] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.742483968 [126019-126030] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 128x128 = 16384 28632.742511049 [126019-126030] ../src/direct/nv-driver.c: 508 alloc_image created image: 128x128 300000000606014 128 4000 28632.742512077 [126019-126030] ../src/direct/direct-export-buf.c: 204 direct_allocateBackingImage Importing images 28632.742513166 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 128x128 = 4000 28632.742561428 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 128x128 = 4000 28632.742598895 [126019-126030] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 128x128 = 4000 28632.742646862 [126019-126030] ../src/vabackend.c:2068 nvExportSurfaceHandle Exporting with 128 128 0 128 300000000606014 0 128 300000000606014 28632.742794976 [126019-126030] ../src/vabackend.c: 965 nvDestroySurfaces Destroying surface -1 (0x7f3f7d026f40) 28632.742796673 [126019-126030] ../src/direct/direct-export-buf.c: 243 destroyBackingImage Destroying BackingImage: 0x7f3f7cf31c30 [vo/gpu/vaapi-egl] Supported formats: [vo/gpu/vaapi-egl] nv12 [vo/gpu/vaapi-egl] p010 [vo/gpu/vaapi-egl] yuv444p [vo/gpu/vaapi-egl] Done probing surface formats. [vo/gpu] Loading hwdec driver 'cuda-nvdec' [vo/gpu] Loading hwdec driver 'drmprime-drm' [vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display. [vo/gpu] Loading failed. [vd] Trying hardware decoding via h264-vaapi. [vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) [vf] User filter list: [vf] (empty) [ad] Codec list: [ad] aac - AAC (Advanced Audio Coding) [ad] aac_fixed (aac) - AAC (Advanced Audio Coding) [ad] Opening decoder aac [ad] Requesting 1 threads for decoding. [ad] Selected codec: aac (AAC (Advanced Audio Coding)) [af] User filter list: [af] (empty) [cplayer] Starting playback... [af] [in] 44100Hz stereo 2ch floatp [af] [userspeed] 44100Hz stereo 2ch floatp [af] [userspeed] (disabled) [af] [convert] 44100Hz stereo 2ch floatp [vd] Pixel formats supported by decoder: vdpau cuda vaapi_vld yuv420p [vd] Codec profile: High (0x64) 28632.780018634 [126019-126019] ../src/vabackend.c: 648 nvCreateConfig got profile: 7 with 0 attributes 28632.780024908 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 28632.780026741 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x55ddb35c75c0 8 28632.780487574 [126019-126019] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.780493285 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 21981 28632.780494697 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x55ddb35c76c0 8 28632.780960899 [126019-126019] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.780969681 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb35c4f70) 28632.780971976 [126019-126019] ../src/vabackend.c:1503 nvDeriveImage In nvDeriveImage 28632.780974275 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34cf6d0) 28632.780975801 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34cfc60) 28632.780977162 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d01f0) 28632.780978490 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d0780) 28632.780979913 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d0d10) 28632.780981222 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d12a0) 28632.780982532 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d1830) 28632.780983937 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d1dc0) 28632.780985214 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d2350) 28632.780986501 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d28e0) 28632.780987959 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d2e70) 28632.780989245 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d3400) 28632.780990522 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d3990) 28632.780991911 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d3f20) 28632.780993186 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d44b0) 28632.780994805 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d4a40) 28632.780996224 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d4fd0) 28632.780997517 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d5560) 28632.780998823 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d5af0) 28632.781000255 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d6080) 28632.781001548 [126019-126019] ../src/vabackend.c: 931 nvCreateSurfaces2 Creating surface 1280x640, format 1 (0x55ddb34d6610) [vd] Requesting pixfmt 'vaapi_vld' from decoder. 28632.788981225 [126019-126019] ../src/vabackend.c: 648 nvCreateConfig got profile: 7 with 0 attributes 28632.788987002 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 0 28632.788989169 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x55ddb34d6140 8 28632.789461987 [126019-126019] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.789466996 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) (nil) 32764 28632.789468867 [126019-126019] ../src/vabackend.c:1765 nvQuerySurfaceAttributes with 4 (8) 0x55ddb34d4b00 8 28632.789934229 [126019-126019] ../src/vabackend.c:1838 nvQuerySurfaceAttributes Returning constraints: width: 48 - 4096, height: 16 - 4096 28632.789940003 [126019-126019] ../src/vabackend.c: 995 nvCreateContext with 22 render targets, 22 surfaces, at 1280x640 [ffmpeg/video] h264: Reinit context to 1280x640, pix_fmt: vaapi_vld 28632.793599951 [126019-126038] ../src/vabackend.c: 386 resolveSurfaces [RT] Resolve thread for 0x55ddb353ce60 started 28632.793737541 [126019-126019] ../src/vabackend.c:1311 nvEndPicture Decoded frame successfully to idx: 0 (0x55ddb34d6610) 28632.793743127 [126019-126038] ../src/vabackend.c: 399 resolveSurfaces Reading from queue: 0 1 28632.793745219 [126019-126038] ../src/vabackend.c: 415 resolveSurfaces Mapping surface 0 28632.794199138 [126019-126038] ../src/vabackend.c: 419 resolveSurfaces Mapped surface 0 to 0x20ec28000 (1536) 28632.794201426 [126019-126038] ../src/direct/direct-export-buf.c: 198 direct_allocateBackingImage Allocating BackingImages: 0x7f3f18000c70 1280x640 28632.794203899 [126019-126038] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.794205968 [126019-126038] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 1280x640 = 819200 28632.794201976 [126019-126019] ../src/vabackend.c:1311 nvEndPicture Decoded frame successfully to idx: 1 (0x55ddb34d6080) [vd] Using hardware decoding (vaapi). [vd] Decoder format: 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264 [vf] [in] 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 28632.794286852 [126019-126038] ../src/direct/nv-driver.c: 508 alloc_image created image: 1280x640 300000000606014 1280 c8000 28632.794288719 [126019-126038] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.794290182 [126019-126038] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 1280x384 = 491520 [vf] [userdeint] 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [userdeint] (disabled) [vf] [autorotate] 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [autorotate] (disabled) [vf] [convert] 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vf] [convert] (disabled) [vf] [out] 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 28632.794325698 [126019-126038] ../src/direct/nv-driver.c: 508 alloc_image created image: 640x320 300000000606014 1280 78000 28632.794327157 [126019-126038] ../src/direct/direct-export-buf.c: 204 direct_allocateBackingImage Importing images 28632.794328353 [126019-126038] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 1280x640 = c8000 [ao] Trying audio driver 'pulse' [ao/pulse] requested format: 44100 Hz, stereo channels, floatp 28632.794395705 [126019-126038] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 640x320 = 78000 28632.794471002 [126019-126038] ../src/vabackend.c: 423 resolveSurfaces Surface 0 exported 28632.794472950 [126019-126038] ../src/vabackend.c: 399 resolveSurfaces Reading from queue: 1 2 28632.794474378 [126019-126038] ../src/vabackend.c: 415 resolveSurfaces Mapping surface 1 [ao/pulse] Library version: 15.99.0 [ao/pulse] Proto: 35 [ao/pulse] Server proto: 4294967295 28632.794653297 [126019-126038] ../src/vabackend.c: 419 resolveSurfaces Mapped surface 1 to 0x20ec28000 (1536) 28632.794654975 [126019-126038] ../src/direct/direct-export-buf.c: 198 direct_allocateBackingImage Allocating BackingImages: 0x7f3f18002a70 1280x640 28632.794656514 [126019-126038] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.794658150 [126019-126038] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 1280x640 = 819200 28632.794714501 [126019-126038] ../src/direct/nv-driver.c: 508 alloc_image created image: 1280x640 300000000606014 1280 c8000 28632.794716149 [126019-126038] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.794717123 [126019-126038] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 1280x384 = 491520 28632.794745321 [126019-126038] ../src/direct/nv-driver.c: 508 alloc_image created image: 640x320 300000000606014 1280 78000 28632.794746680 [126019-126038] ../src/direct/direct-export-buf.c: 204 direct_allocateBackingImage Importing images 28632.794747752 [126019-126038] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 1280x640 = c8000 28632.794791075 [126019-126038] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 640x320 = 78000 28632.794847235 [126019-126038] ../src/vabackend.c: 423 resolveSurfaces Surface 1 exported [ao/pulse] Channel layouts: [ao/pulse] - #fl [ao/pulse] - #fr [ao/pulse] - #fc [ao/pulse] - #lfe [ao/pulse] - #bl [ao/pulse] - #br [ao/pulse] - #flc [ao/pulse] - #frc [ao/pulse] - #bc [ao/pulse] - #sl [ao/pulse] - #sr [ao/pulse] - #tc [ao/pulse] - #tfl [ao/pulse] - #tfc [ao/pulse] - #tfr [ao/pulse] - #tbl [ao/pulse] - #tbc [ao/pulse] - #tbr [ao/pulse] result: stereo [ao/pulse] device buffer: 4410 samples. [ao/pulse] using soft-buffer of 8820 samples. [cplayer] AO: [pulse] 44100Hz stereo 2ch float [cplayer] AO: Description: PulseAudio audio output [autoconvert] inserting resampler [swresample] format change, reinitializing resampler [swresample] 44100Hz stereo floatp -> 44100Hz stereo float [af] [out] 44100Hz stereo 2ch float 28632.795519223 [126019-126019] ../src/vabackend.c:1311 nvEndPicture Decoded frame successfully to idx: 2 (0x55ddb34d5af0) 28632.795523799 [126019-126038] ../src/vabackend.c: 399 resolveSurfaces Reading from queue: 2 3 28632.795525489 [126019-126038] ../src/vabackend.c: 415 resolveSurfaces Mapping surface 2 [cplayer] VO: [gpu] 1280x640 vaapi[nv12] [cplayer] VO: Description: Shader-based GPU Renderer [vo/gpu] reconfig to 1280x640 vaapi[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264 [vo/gpu] max content size: 2560x1440 [vo/gpu] monitor size: 2560x1440 28632.796065169 [126019-126038] ../src/vabackend.c: 419 resolveSurfaces Mapped surface 2 to 0x20ec28000 (1536) 28632.796066835 [126019-126038] ../src/direct/direct-export-buf.c: 198 direct_allocateBackingImage Allocating BackingImages: 0x7f3f18004b90 1280x640 28632.796067983 [126019-126038] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.796069256 [126019-126038] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 1280x640 = 819200 [vo/gpu/x11] not waiting for MapNotify 28632.796113462 [126019-126038] ../src/direct/nv-driver.c: 508 alloc_image created image: 1280x640 300000000606014 1280 c8000 28632.796115028 [126019-126038] ../src/direct/nv-driver.c: 423 alloc_image Calculated GOB size: 64x128 (0x4) 28632.796116339 [126019-126038] ../src/direct/nv-driver.c: 432 alloc_image Aligned image size: 1280x384 = 491520 28632.796163786 [126019-126038] ../src/direct/nv-driver.c: 508 alloc_image created image: 640x320 300000000606014 1280 78000 28632.796165539 [126019-126038] ../src/direct/direct-export-buf.c: 204 direct_allocateBackingImage Importing images 28632.796166624 [126019-126038] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 1280x640 = c8000 28632.796305473 [126019-126038] ../src/direct/direct-export-buf.c: 118 import_to_cuda importing memory size: 640x320 = 78000 28632.796361764 [126019-126038] ../src/vabackend.c: 423 resolveSurfaces Surface 2 exported [vo/gpu] Resize: 1229x1405 [vo/gpu] Window size: 1229x1405 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 1280x640 (1:1) [vo/gpu] Video display: (0, 0) 1280x640 -> (0, 395) 1229x614 [vo/gpu] Video scale: 0.960156/0.959375 [vo/gpu] OSD borders: l=0 t=395 r=0 b=396 [vo/gpu] Video borders: l=0 t=395 r=0 b=396 [vo/gpu] Reported display depth: 8 [vo/gpu/opengl] before video texture creation: OpenGL error INVALID_OPERATION. [vo/gpu] Testing FBO format rgba16f [vo/gpu] Resizing texture: 16x16 [vo/gpu] Using FBO format rgba16f. [vo/gpu] No advanced processing required. Enabling dumb mode. 28632.797070947 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x2029343632682820) 28632.797074960 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x6d20324c3456202d) 28632.797077468 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x48206d656d326d65) 28632.797079680 [126019-126030] ../src/direct/direct-export-buf.c: 42 debug [EGL] eglDestroyImageKHR: EGL_BAD_PARAMETER error: In eglDestroyImage: Invalid EGLImage (0x636564203436322e) 28632.797082617 [126019-126030] ../src/vabackend.c:2055 nvExportSurfaceHandle Exporting surface: 0 (0x55ddb34d6610) 28632.797085449 [126019-126030] ../src/vabackend.c:2068 nvExportSurfaceHandle Exporting with 1280 640 0 1280 300000000606014 0 1280 300000000606014 [vo/gpu/opengl] vertex shader source: [vo/gpu/opengl] [ 1] #version 440 [vo/gpu/opengl] [ 2] #define tex1D texture [vo/gpu/opengl] [ 3] #define tex3D texture [vo/gpu/opengl] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x)) [vo/gpu/opengl] [ 5] in vec2 vertex_position; [vo/gpu/opengl] [ 6] in vec2 vertex_texcoord0; [vo/gpu/opengl] [ 7] out vec2 texcoord0; [vo/gpu/opengl] [ 8] in vec2 vertex_texcoord1; [vo/gpu/opengl] [ 9] out vec2 texcoord1; [vo/gpu/opengl] [ 10] void main() { [vo/gpu/opengl] [ 11] gl_Position = vec4(vertex_position, 1.0, 1.0); [vo/gpu/opengl] [ 12] texcoord0 = vertex_texcoord0; [vo/gpu/opengl] [ 13] texcoord1 = vertex_texcoord1; [vo/gpu/opengl] [ 14] } [vo/gpu/opengl] fragment shader source: [vo/gpu/opengl] [ 1] #version 440 [vo/gpu/opengl] [ 2] #define tex1D texture [vo/gpu/opengl] [ 3] #define tex3D texture [vo/gpu/opengl] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x)) [vo/gpu/opengl] [ 5] out vec4 out_color; [vo/gpu/opengl] [ 6] in vec2 texcoord0; [vo/gpu/opengl] [ 7] in vec2 texcoord1; [vo/gpu/opengl] [ 8] layout(std140, binding=0) uniform UBO { [vo/gpu/opengl] [ 9] layout(offset=0) mat3 colormatrix; [vo/gpu/opengl] [ 10] layout(offset=48) vec3 colormatrix_c; [vo/gpu/opengl] [ 11] layout(offset=64) vec3 src_luma; [vo/gpu/opengl] [ 12] layout(offset=80) vec3 dst_luma; [vo/gpu/opengl] [ 13] layout(offset=96) vec2 texture_size0; [vo/gpu/opengl] [ 14] layout(offset=112) mat2 texture_rot0; [vo/gpu/opengl] [ 15] layout(offset=144) vec2 texture_off0; [vo/gpu/opengl] [ 16] layout(offset=152) vec2 pixel_size0; [vo/gpu/opengl] [ 17] layout(offset=160) vec2 texture_size1; [vo/gpu/opengl] [ 18] layout(offset=176) mat2 texture_rot1; [vo/gpu/opengl] [ 19] layout(offset=208) vec2 texture_off1; [vo/gpu/opengl] [ 20] layout(offset=216) vec2 pixel_size1; [vo/gpu/opengl] [ 21] }; [vo/gpu/opengl] [ 22] uniform sampler2D texture0; [vo/gpu/opengl] [ 23] uniform sampler2D texture1; [vo/gpu/opengl] [ 24] void main() { [vo/gpu/opengl] [ 25] vec4 color = vec4(0.0, 0.0, 0.0, 1.0); [vo/gpu/opengl] [ 26] color.r = 1.000000 * vec4(texture(texture0, texcoord0)).r; [vo/gpu/opengl] [ 27] color.gb = 1.000000 * vec4(texture(texture1, texcoord1)).rg; [vo/gpu/opengl] [ 28] color = color.rgbr; [vo/gpu/opengl] [ 29] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c; [vo/gpu/opengl] [ 30] color.a = 1.0; [vo/gpu/opengl] [ 31] // color mapping [vo/gpu/opengl] [ 32] color.rgb *= vec3(1.000000); [vo/gpu/opengl] [ 33] color.rgb *= vec3(1.000000); [vo/gpu/opengl] [ 34] out_color = color; [vo/gpu/opengl] [ 35] } [vo/gpu/opengl] shader link log (status=1): [vo/gpu/opengl] after rendering: OpenGL error INVALID_OPERATION. [cplayer] first video frame after restart shown [cplayer] audio ready ```
elFarto commented 1 year ago

It seems you have an EGL issue. What version of MPV do you have. You need at least v0.35.0 for this to work.

xphoniex commented 1 year ago

Yeah, I'm on mpv v0.34.1

--

I'm somewhat disappointed as even with NVDEC, which you said is more efficient than VA-API, I still get frame drops and jumps when I seek to another position when playing x265/HEVC file.

I have 13900k/4090, which is the best consumer grade hardware, and still can't get a smooth playback. Is there anything else I can tune?

elFarto commented 1 year ago

v0.34.1 doesn't have the patch necessary for it to work with this driver.

As for your performance issue, I'm not sure what could be causing that. Hardware that powerful should have no problem playing back any video. My 5900X/1060 can easily do multiple 4k HEVC streams without issue.

Do you the same issue if you use software decoding? If so, then your issue may be on the presentation side of things, rather than the decode.

xphoniex commented 1 year ago

I don't even do 4k, mine is 720p x265. I can play just fine, my issue is when I move to another position on the timeline, e.g. jumping a minute ahead/behind. That's when it slows down, starts to drop frames, and jumps to compensate, until it becomes smooth again.

I have this issue with both software and NVDEC.

asynapse commented 11 months ago

I encountered the same unfortunateness with video playback in mpv, where when starting a video, or after jumping forward or back, playback would slow down for a while, and eventually become smooth.

I started having the same issue with mpv after refreshing my desktop, going from an Nvidia Geforce 1060 to using amdgpu (integrated graphics on my new processor). I had upgraded from ubuntu 20.04 to 22.04 as part of the hardware refresh, thinking that I needed to in order to get a more recent version of amdgpu. I initially attributed the mpv issue to be due to using the integrated graphics, as mpv playback was fine previously, but I had the same mpv playback issue after throwing the 1060 back in my refreshed system, running 22.04.

I installed the mpv and libcdio18 packages from Ubuntu 20.04 on my 22.04 system (obtained by running 'apt download ' for each package on a 20.04 system, and installed with 'dpkg -i ), and playback is smooth again like it was on 20.04, I marked the mpv package as held to prevent it from being upgraded, I'll probably take a crack at compiling a newer version in the near future:

$ dpkg -l mpv libcdio18
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name            Version         Architecture Description
+++-===============-===============-============-======================================
ii  libcdio18:amd64 2.0.0-2         amd64        library to read and control CD-ROM
hi  mpv             0.32.0-1ubuntu1 amd64        video player based on MPlayer/mplayer2

I think the version of mpv (0.34.1) that comes with ubuntu 22.04 is wonky :-|

xphoniex commented 11 months ago

@asynapse Thanks for sharing this, I'll give your solution a try.

I noticed a few weeks ago that this issue is less prevalent on Windows, so I tried the updated mpv from snap (0.36) but that didn't help either..