Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue after upgrading to 525 series drivers #126

Closed
qumaciel opened this issue Nov 11, 2022 · 77 comments
Closed

Issue after upgrading to 525 series drivers #126

qumaciel opened this issue Nov 11, 2022 · 77 comments
Labels
nvidia-issue This is an issue with the NVIDIA GPU driver

Comments

@qumaciel
Copy link

Hi there,

After updating to 525.53 (proprietary) driver, I am unable to get hardware acceleration.

Console output
>env NVD_LOG=va.log MOZ_LOG="PlatformDecoderModule:5,Dmabuf:5" firefox-developer-edition
[GFX1-]: glxtest: VA-API test failed: process crashed. Please check your VA-API drivers.
[Parent 13936: Main Thread]: D/Dmabuf Using DRM device /dev/dri/renderD129
[Parent 13936: Main Thread]: D/Dmabuf nsDMABufDevice::Configure()
[Parent 13936: Main Thread]: D/Dmabuf Loading DMABuf system library libgbm.so.1 ...
[Parent 13936: Main Thread]: D/Dmabuf DMABuf is enabled
[Child 14158: Main Thread]: D/PlatformDecoderModule PDMInitializer, Init PDMs in Content process
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[2022-11-11T22:03:28Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[2022-11-11T22:03:28Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[RDD 14297: Main Thread]: D/PlatformDecoderModule PDMInitializer, Init PDMs in RDD process
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'video/avc'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/avc'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/avc'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp8'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp8'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/av1'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/av1'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'video/theora'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'video/theora'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'video/theora'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'video/theora'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/mp4a-latm'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mpeg'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mpeg'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/opus'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/opus'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/opus'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/opus'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/vorbis'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/vorbis'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/vorbis'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/vorbis'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/flac'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/flac'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/x-wav'
[RDD 14297: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/x-wav'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/x-wav'
[RDD 14297: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/x-wav'
[Utility 14298: Main Thread]: D/PlatformDecoderModule PDMInitializer, Init PDMs in Utility process
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/avc'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/avc'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp8'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp8'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/av1'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/av1'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'video/theora'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder rejects requested type 'video/theora'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mpeg'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mpeg'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/opus'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/opus'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/opus'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/vorbis'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/vorbis'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/vorbis'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/flac'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/flac'
[Utility 14298: Main Thread]: D/PlatformDecoderModule FFmpeg decoder rejects requested type 'audio/x-wav'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/x-wav'
[Utility 14298: Main Thread]: D/PlatformDecoderModule Agnostic decoder supports requested type 'audio/x-wav'
[2022-11-11T22:03:28Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[2022-11-11T22:03:28Z ERROR mp4parse] Found 2 nul bytes in "\0\0"
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: MediaSupervisor #1]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'audio/mp4a-latm'
[Utility 14298: MediaPDecoder #1]: D/PlatformDecoderModule FFMPEG: Initialising FFmpeg decoder
[Utility 14298: MediaPDecoder #1]: D/PlatformDecoderModule FFMPEG:   codec aac : AAC (Advanced Audio Coding)
[Utility 14298: MediaPDecoder #2]: D/PlatformDecoderModule FFMPEG: Initialising FFmpeg decoder
[Utility 14298: MediaPDecoder #2]: D/PlatformDecoderModule FFMPEG:   codec aac : AAC (Advanced Audio Coding)
[Utility 14298: MediaPDecoder #3]: D/PlatformDecoderModule FFMPEG: Initialising FFmpeg decoder
[Utility 14298: MediaPDecoder #3]: D/PlatformDecoderModule FFMPEG:   codec aac : AAC (Advanced Audio Coding)
[Utility 14298: MediaPDecoder #4]: D/PlatformDecoderModule FFMPEG: Initialising FFmpeg decoder
[Utility 14298: MediaPDecoder #4]: D/PlatformDecoderModule FFMPEG:   codec aac : AAC (Advanced Audio Coding)
[Utility 14298: MediaPDecoder #1]: D/PlatformDecoderModule FFMPEG:   FFmpeg decoder init successful.
[Child 14158: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6c00] ::PrepareTrimmers: sample[0,23219] no trimming information
[Utility 14298: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=23219µs ; mTime=0µs ; mTimecode=0µs
[Utility 14298: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=23219µs ; mTime=0µs ; mTimecode=0µs
[Utility 14298: MediaPDecoder #2]: D/PlatformDecoderModule FFMPEG:   FFmpeg decoder init successful.
[Child 14158: MediaPDecoder #3]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6c00] ::HandleDecodedResult: sample[0,23219] (decoded[0,23219] no trimming needed
[Child 14158: MediaPDecoder #2]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6de0] ::PrepareTrimmers: sample[0,23219] no trimming information
[Child 14158: MediaPDecoder #2]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6c00] ::PrepareTrimmers: sample[23219,46439] no trimming information
[Utility 14298: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=23219µs ; mTime=0µs ; mTimecode=0µs
[Utility 14298: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=23219µs ; mTime=0µs ; mTimecode=0µs
[Utility 14298: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=23220µs ; mTime=23219µs ; mTimecode=23219µs
[Utility 14298: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=23220µs ; mTime=23219µs ; mTimecode=23219µs
[Child 14158: MediaPDecoder #3]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6de0] ::HandleDecodedResult: sample[0,23219] (decoded[0,23219] no trimming needed
[Utility 14298: MediaPDecoder #3]: D/PlatformDecoderModule FFMPEG:   FFmpeg decoder init successful.
[Child 14158: MediaPDecoder #1]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6f20] ::PrepareTrimmers: sample[0,23219] no trimming information
[Child 14158: MediaPDecoder #3]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6c00] ::HandleDecodedResult: sample[23219,46439] (decoded[23219,46438] no trimming needed
[Child 14158: MediaPDecoder #3]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6de0] ::PrepareTrimmers: sample[23219,46439] no trimming information
[Child 14158: MediaPDecoder #3]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6c00] ::PrepareTrimmers: sample[46439,69659] no trimming information
[Utility 14298: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=23219µs ; mTime=0µs ; mTimecode=0µs
[Utility 14298: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=23219µs ; mTime=0µs ; mTimecode=0µs
[Utility 14298: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=23220µs ; mTime=23219µs ; mTimecode=23219µs
[Utility 14298: MediaPDecoder #3]: V/PlatformDecoderModule ProcessDecode: mDuration=23220µs ; mTime=46439µs ; mTimecode=46439µs
[Child 14158: MediaPDecoder #2]: V/PlatformDecoderModule AudioTrimmer[7f1bda1d6f20] ::HandleDecodedResult: sample[0,23219] (decoded[0,23219] no trimming needed
[Utility 14298: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=23220µs ; mTime=23219µs ; mTimecode=23219µs
[Utility 14298: MediaPDecoder #3]: V/PlatformDecoderModule ProcessDecode: mDuration=23220µs ; mTime=46439µs ; mTimecode=46439µs
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: MediaSupervisor #3]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: Hardware WebRender is off, VAAPI is disabled
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[RDD 14297: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=33000µs ; mTime=14000µs ; mTimecode=14000µs
[RDD 14297: Unnamed thread 7feddef73ca0]: D/PlatformDecoderModule FFVPX: Choosing FFmpeg pixel format for video decoding.
[RDD 14297: Unnamed thread 7feddef73ca0]: D/PlatformDecoderModule FFVPX: Requesting pixel format YUV420P.
[vp9 @ 0x7fedee26b800] Format yuv420p chosen by get_format().
[RDD 14297: Unnamed thread 7feddef73ca0]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee26b800 aFrame=7fedee2aa400
[RDD 14297: Unnamed thread 7feddef73ca0]: V/PlatformDecoderModule Created plane data, YSize=(1280, 736), CbCrSize=(640, 384), CroppedYSize=(1280, 720), CroppedCbCrSize=(640, 360), ColorDepth=0
[RDD 14297: Unnamed thread 7feddef73ca0]: D/PlatformDecoderModule FFVPX: Failed to allocate a texture client
[RDD 14297: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=0µs ; mTime=47000µs ; mTimecode=47000µs
[RDD 14297: Unnamed thread 7feddef73280]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee268000 aFrame=7fedee2ae000
[RDD 14297: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=34000µs ; mTime=47000µs ; mTimecode=47000µs
[RDD 14297: Unnamed thread 7feddef73820]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee26d400 aFrame=7feddef85400
[RDD 14297: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=33000µs ; mTime=81000µs ; mTimecode=81000µs
[RDD 14297: Unnamed thread 7feddef733a0]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee26c400 aFrame=7feddef87600
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Frame decode finished, time 21.68 ms averange decode time 21.68 ms decoded 1 frames
[RDD 14297: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Got one frame output with pts=14000 dts=14000 duration=33000 opaque=-9223372036854775808
[RDD 14297: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=33000µs ; mTime=114000µs ; mTimecode=114000µs
[RDD 14297: Unnamed thread 7feddef73ca0]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee26b800 aFrame=7fedee2aa400
[RDD 14297: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=34000µs ; mTime=147000µs ; mTimecode=147000µs
[RDD 14297: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Frame decode finished, time 0.61 ms averange decode time 11.14 ms decoded 2 frames
[RDD 14297: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Got one frame output with pts=47000 dts=47000 duration=34000 opaque=-9223372036854775808
[RDD 14297: Unnamed thread 7feddef73280]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee268000 aFrame=7fedee2ae000
[RDD 14297: MediaPDecoder #1]: V/PlatformDecoderModule ProcessDecode: mDuration=33000µs ; mTime=181000µs ; mTimecode=181000µs
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Frame decode finished, time 0.04 ms averange decode time 7.44 ms decoded 3 frames
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Got one frame output with pts=81000 dts=81000 duration=33000 opaque=-9223372036854775808
[RDD 14297: Unnamed thread 7feddef73820]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee26d400 aFrame=7feddef85400
[RDD 14297: MediaPDecoder #2]: V/PlatformDecoderModule ProcessDecode: mDuration=33000µs ; mTime=214000µs ; mTimecode=214000µs
[RDD 14297: Unnamed thread 7feddef733a0]: V/PlatformDecoderModule GetVideoBuffer: aCodecContext=7fedee26c400 aFrame=7feddef87600
[RDD 14297: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Frame decode finished, time 2.07 ms averange decode time 6.10 ms decoded 4 frames
[RDD 14297: MediaPDecoder #2]: D/PlatformDecoderModule FFVPX: Got one frame output with pts=114000 dts=114000 duration=33000 opaque=-9223372036854775808
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #2]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #2]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #2]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #2]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #3]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #3]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #3]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #3]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/avc
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/mp4a-latm
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #2]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #2]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder rejects requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox Utility Generic decoder supports requested type audio/opus
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #4]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 Codec ID 167
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising VA-API FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   libva library or symbols are missing.
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Initialising FFmpeg decoder
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   codec vp9 : Google VP9
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX: Set get_buffer2 for customized buffer allocation
[RDD 14297: MediaPDecoder #1]: D/PlatformDecoderModule FFVPX:   FFmpeg decoder init successful.
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: Main Thread]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[Child 14158: MediaPDecoder #1]: D/PlatformDecoderModule Sandbox RDD decoder supports requested type video/vp9
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFmpeg decoder supports requested type 'video/vp9'
[RDD 14297: MediaSupervisor #1]: D/PlatformDecoderModule FFVPX: FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/vp9 

From the actual vaapi.log I got a different output

vaapi.log
     15980.819843049 [13948-13948] ../src/vabackend.c:1856       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x7fda38823200 31
     15980.819897096 [13948-13948] ../src/vabackend.c:1877       __vaDriverInit_1_0 Now have 0 (0 max) instances
     15980.824847722 [13948-13948] ../src/export-buf.c: 159       findGPUIndexFromFd Looking for DRM device index: 1
     15980.826487801 [13948-13948] ../src/export-buf.c: 172       findGPUIndexFromFd Found 4 EGL devices
     15980.826597693 [13948-13948] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
     15980.826607707 [13948-13948] ../src/export-buf.c: 187       findGPUIndexFromFd Found drmDeviceIndex: 1
     15980.826611870 [13948-13948] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
     15980.885712173 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AB24
     15980.885733572 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XB24
     15980.885737103 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: R8  
     15980.885739310 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RG88
     15980.885741451 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: R16 
     15980.885743579 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RG32
     15980.885745684 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: GR32
     15980.885747730 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: UYVY
     15980.885749792 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AR12
     15980.885752112 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AB12
     15980.885754166 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RA12
     15980.885756245 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BA12
     15980.885758424 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XR15
     15980.885760488 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XB15
     15980.885762591 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RX15
     15980.885764657 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BX15
     15980.885766711 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AR15
     15980.885768779 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AB15
     15980.885770879 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RA15
     15980.885772944 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BA15
     15980.885775019 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AB4H
     15980.885777070 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XB4H
     15980.885779100 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AR24
     15980.885781178 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AS24
     15980.885783213 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XS24
     15980.885785272 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XR24
     15980.887935752 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RGB8
     15980.887941152 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BGR8
     15980.887943947 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RG16
     15980.887946452 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BG16
     15980.887948944 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RG24
     15980.887951400 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BG24
     15980.887959406 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AR30
     15980.887962025 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RX24
     15980.887964406 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BX24
     15980.887966811 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RA24
     15980.887969093 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BA24
     15980.887971263 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XR30
     15980.887973441 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: XB30
     15980.887975606 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RX30
     15980.887977802 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BX30
     15980.887980060 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: RA30
     15980.887982326 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: BA30
     15980.887984508 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: R101
     15980.887986887 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: R100
     15980.887989200 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: AB30
     15980.887991546 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: B101
     15980.887993868 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: B100
     15980.887996137 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: YU12
     15980.887998600 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: NV12
     15980.888001245 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: NV21
     15980.888004258 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: NV16
     15980.888007054 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: NV24
     15980.888009711 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: P010
     15980.888014766 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: P210
     15980.888017165 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: P012
     15980.888019506 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: HD01
     15980.888021734 [13948-13948] ../src/export-buf.c: 258             initExporter Found format: UHD0
     15980.888024280 [13948-13948] ../src/export-buf.c: 267             initExporter Driver supports 16-bit surfaces
     15980.888026900 [13948-13948] ../src/export-buf.c:  99                reconnect Reconnecting to stream
     15980.888089490 [13948-13948] ../src/export-buf.c: 118                reconnect cuda error 'operation not supported' (801)


It works in case a revert the update.
(side note, choosing media.rdd-ffvpx.enabled=true/false makes no difference)

OS: CachyOS x86_64
Kernel: 6.0.8-1-cachyos-pds
DE: Plasma 5.26.3
GPU: NVIDIA GeForce RTX 2060 Mobile
GPU: Intel CoffeeLake-H GT2 [UHD Graphics 630]

@qumaciel
Copy link
Author

qumaciel commented Nov 14, 2022

There is another thing, running vainfo I get a blank output.

> vainfo -a
Trying display: wayland
Trying display: x11

@elFarto
Copy link
Owner

elFarto commented Nov 14, 2022

Sorry, forgot to comment on this the other day. I've raised this issue on the NVIDIA forums, as I don't think it's an issue on our side.
Also, vainfo doesn't show anything as the driver kills the process if it detects a CUDA error.

@nirfse
Copy link

nirfse commented Nov 15, 2022

@elFarto Could you please share the link of your issue on the NVIDIA forums?

@elFarto
Copy link
Owner

elFarto commented Nov 15, 2022

Sure, it's here.

@Wish9051
Copy link

Seems like same issue persists in 525.60.11 version as well.

@qumaciel
Copy link
Author

Since they let it slide, I've also raised the issue on their open repository.

@thesword53
Copy link
Contributor

As a workaround, the direct-backend branch seems to work with NVD_BACKEND=direct environment variable.

@qumaciel
Copy link
Author

Nice! The direct-backend branch is working for me as well.

@Wish9051
Copy link

Wish9051 commented Dec 1, 2022

Unfortunately that didn't do it for me. Perhaps I'm missing out on something?

@CoelacanthusHex
Copy link

CoelacanthusHex commented Dec 1, 2022

Unfortunately when I try direct backend, I got

libva error: /usr/lib/dri//nvidia_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

In strace, I see

openat(AT_FDCWD, "/dev/nvidiactl", O_RDWR|O_CLOEXEC) = 13
openat(AT_FDCWD, "/dev/nvidia0", O_RDWR|O_CLOEXEC) = 14
ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x46, 0x2b, 0x28), 0x7ffef6f201d0) = 0
ioctl(13, _IOC(_IOC_READ|_IOC_WRITE, 0x46, 0xd4, 0x4), 0x7ffef6f201d0) = -1 EINVAL (Invalid argument)
close(13)                               = 0
close(14)                               = 0
ioctl(0, _IOC(_IOC_READ|_IOC_WRITE, 0x46, 0x2a, 0x20), 0x7ffef6f201d0) = -1 ENOTTY (Inappropriate ioctl for device)

@somewhatfrog
Copy link

somewhatfrog commented Dec 1, 2022

Not sure if related, but encoding works in OBS but Decoding is broken:

[AVHWDeviceContext @ 0x7f2368003c40] libva: /usr/lib/dri/nvidia_drv_video.so init failed
[AVHWDeviceContext @ 0x7f2368003c40] Failed to initialise VAAPI connection: 1 (operation failed).

Uninstalling nvidia-vaapi-driver fixes OBS and decoding starts to work again.

@qumaciel qumaciel changed the title Issue after upgrading to 525.53 driver Issue after upgrading to 525 series drivers Dec 1, 2022
@elFarto
Copy link
Owner

elFarto commented Dec 1, 2022

The direct backend is very experimental, and hasn't seen a lot of testing, so your mileage may vary.

I'm going to have a look into if there's a way around the original issue, but I'm not holding out much hope.

@elFarto
Copy link
Owner

elFarto commented Dec 1, 2022

I can't seem to find anyway to get it to work. I have push a small fix to master to let the driver fail gracefully, rather than just exiting the process when it encounters this error. This should let applications like Firefox or MPV not crash or log error messages when it happens and gracefully failover.

@Fxzzi
Copy link

Fxzzi commented Dec 1, 2022

I am having loads of issues with the latest 525 drivers. hardware acceleration in electron apps are broken (discord, pomotroid, etc) and on top of these issues too. Might just rollback to 520 and stay on there until these issues are fixed.

EDIT: seems the electron problems seem to be related to the nvidia vaapi driver. After updating to the latest git I am able to use discord with hardware acceleration and I no longer get the [76692:1201/191745.015943:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=256 errors. However the vaapi issue still remains as expected

@thesword53
Copy link
Contributor

The direct backend is very experimental, and hasn't seen a lot of testing, so your mileage may vary.

I'm going to have a look into if there's a way around the original issue, but I'm not holding out much hope.

Since Nvidia implemented GBM, I think they deprecated EGLStream.

@philipl
Copy link
Contributor

philipl commented Dec 2, 2022

Is it worth merging the direct-backend into master as a separate mode? Might be dealing with this for a while.

@elFarto
Copy link
Owner

elFarto commented Dec 2, 2022

Is it worth merging the direct-backend into master as a separate mode? Might be dealing with this for a while.

Potentially, but I was still undecided if releasing it is a good idea. It feels like it's going to be a pain to support long term.

@thesword53
Copy link
Contributor

Is it worth merging the direct-backend into master as a separate mode? Might be dealing with this for a while.

I think it's worth implementing a GBM backend since direct-backend uses directly the Nvidia driver which is not ABI/API stable and EGLStream isn't working with 525 drivers.

@elFarto
Copy link
Owner

elFarto commented Dec 2, 2022

I think it's worth implementing a GBM backend since direct-backend uses directly the Nvidia driver which is not ABI/API stable and EGLStream isn't working with 525 drivers.

As far as I know, that's not possible, as there's no GBM <> CUDA/NVDEC interoperability. We use the EGL/direct backend to be able to get frames out via a DMA-BUF. With EGL we can export from CUDA -> EGL -> DMA-BUF. With the direct backend, we can talk to the driver to create the image and then import it into CUDA and export to a DMA-BUF.

@Lastique
Copy link

Lastique commented Dec 2, 2022

Is it possible to use Vulkan instead of EGL?

@zbvk
Copy link

zbvk commented Dec 2, 2022

i can't tell you how happy i am i found this issue i've been pulling my hair out trying to understand what i did wrong turns out it was just a problem with the nvidia driver, sincerely go fuck yourself nvidia.

@philipl
Copy link
Contributor

philipl commented Dec 2, 2022

Is it possible to use Vulkan instead of EGL?

Maybe. Newer drivers support dma-buf import/export for buffers in vulkan. The complexity is that the buffer has to export to cuda as opaque fd and to the vaapi client as dma buf. I'm not sure you can export a buffer twice in two formats. There's also a bunch of work you need to do with semaphores to ensure consistent access. If I was going to experiment with this, I'd use libplacebo as it wraps a lot of the vulkan overhead. And of course, one could equally use full OpenGL as the buffer allocator to replace eglstreams.

@elFarto
Copy link
Owner

elFarto commented Dec 7, 2022

Is it worth merging the direct-backend into master as a separate mode? Might be dealing with this for a while.

The direct backend has now been merged into the master branch. If everyone could give it a test, that would be much appreciated.

@chiyuki0325
Copy link

chiyuki0325 commented Dec 10, 2022

I may have completely corrupted something. I rolled back to driver 520.56.06, but it still tries to use direct backend and gives DRM error.
This may be caused by changes brought by the direct backend.

$ unset NVD_BACKEND; export NVD_BACKEND=egl; export NVD_LOG=1; export LIBVA_DRIVER_NAME=nvidia

$ nvidia-smi
Sat Dec 10 23:22:48 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.56.06    Driver Version: 520.56.06    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| 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 Off |                  N/A |
| N/A   47C    P8     3W /  N/A |      5MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       764      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

$ vainfo
Trying display: wayland
Trying display: x11
        98.891975494 [3109-3109] ../src/vabackend.c:1872       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x55fd636ca830 10
        98.892001639 [3109-3109] ../src/vabackend.c:1889       __vaDriverInit_1_0 Invalid driver for DRM device: i915
libva error: /usr/lib/dri/nvidia_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

EDIT: I rolled back to 6e8b0d0 and it works for me now.

@elFarto
Copy link
Owner

elFarto commented Dec 10, 2022

$ vainfo
Trying display: wayland
Trying display: x11
98.891975494 [3109-3109] ../src/vabackend.c:1872 __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x55fd636ca830 10
98.892001639 [3109-3109] ../src/vabackend.c:1889 __vaDriverInit_1_0 Invalid driver for DRM device: i915

Ok, looks like it is possible for an X11 display to pass in a DRM fd. It's using DRI3 to open an fd and pass it into us. I've pushed an update to the DRM fd check to really lock down when we handle it.

@Bad3r
Copy link

Bad3r commented Dec 11, 2022

Edit: direct backend worked for me.
see #126 (comment) and #126 (comment)

@chiyuki0325
Copy link

chiyuki0325 commented Dec 11, 2022

The latest commit works for me, I see mpv in nvidia-smi and DEC in nvtop when using mpv --hwdec=nvdec-copy. This means that this issue has been resolved, and in 525 and future drivers, direct should be set as the default backend.

However, after many rounds of comparison, I found that nvidia-vaapi-driver is not available for Optimus systems at all. I also get high CPU and integrated graphics 3D usage while the NVIDIA graphics card is decoding the video. This is true even for previous 520xx drivers where I drew the wrong conclusions. On Windows with DXVA2 hwdec I only got 6% integrated graphics 3D usage, while on Linux with NVIDIA vaapi driver I got 98%.
It seems that whether it is with EGL or direct backend enabled, it is very performance-intensive when displaying frames decoded by NVIDIA graphics to the laptop screen. The resulting performance has a lot of dropped frames and is not even as good as decoding video directly with integrated graphics.

I'm also sorry for the multiple sloppy replies I just posted, I've now deleted them. I may need to open a new issue or continue this topic in #11.
Thanks again for your work on the direct backend.

525 logs.txt
520 logs.txt

@2shrestha22
Copy link

2shrestha22 commented Dec 11, 2022

Direct backend works for me on 1650Ti mobile GPU. Tested with Firefox and MPV. VLC never worked even with libva-vdpau-driver.
edit: also works with VLC.

@2shrestha22
Copy link

After a reboot I got:

❯ vainfo
Trying display: wayland
Trying display: x11
libva error: /usr/lib/dri/nvidia_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

@elFarto
Copy link
Owner

elFarto commented Dec 11, 2022

After a reboot I got:

❯ vainfo
Trying display: wayland
Trying display: x11
libva error: /usr/lib/dri/nvidia_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

Please post the output with NVD_LOG=1 set.

@reliant8307
Copy link

I can confirm the error on vainfo, using 4029d45 (but video playing on Firefox is perfect):

$ NVD_LOG=1 vainfo
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.16.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/xorg/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
     88772.279380810 [13332-13332] ../src/vabackend.c:1872       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x1b216d0 10
     88772.279384514 [13332-13332] ../src/vabackend.c:1894       __vaDriverInit_1_0 Now have 0 (0 max) instances
     88772.279386321 [13332-13332] ../src/vabackend.c:1919       __vaDriverInit_1_0 Selecting Direct backend
     88772.282063294 [13332-13332] ../src/direct/direct-export-buf.c:  59      direct_initExporter Manually opened DRM device
     88772.282067662 [13332-13332] ../src/direct/nv-driver.c: 190            init_nvdriver Initing nvdriver...
     88772.282069723 [13332-13332] ../src/direct/nv-driver.c: 165          get_device_info DRM_IOCTL_NVIDIA_GET_DEV_INFO failed: -1
     88772.282071654 [13332-13332] ../src/direct/nv-driver.c:  79            nv_rm_control nv_rm_control failed: -1 0
libva error: /usr/xorg/lib/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit

@elFarto
Copy link
Owner

elFarto commented Dec 11, 2022

I've merged in #137, which should do better when manually having to open the DRM device.

@reliant8307
Copy link

I've merged in #137, which should do better when manually having to open the DRM device.

#137 fixed the issue with vainfo. Thanks!

@2shrestha22
Copy link

2shrestha22 commented Dec 12, 2022

After a reboot I got:

❯ vainfo
Trying display: wayland
Trying display: x11
libva error: /usr/lib/dri/nvidia_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

Please post the output with NVD_LOG=1 set.

Will post the output if I got this issue again. Today morning it is working. I am not sure what is causing this. Thank you.
For now vainfo works and this is the output:

❯ vainfo
Trying display: wayland
Trying display: x11
       476.102148131 [3950-3950] ../src/vabackend.c:1872       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x56251dde6400 10
       476.102166806 [3950-3950] ../src/vabackend.c:1894       __vaDriverInit_1_0 Now have 0 (0 max) instances
       476.102177597 [3950-3950] ../src/vabackend.c:1919       __vaDriverInit_1_0 Selecting Direct backend
       476.110478061 [3950-3950] ../src/direct/direct-export-buf.c:  59      direct_initExporter Manually opened DRM device
       476.110500804 [3950-3950] ../src/direct/nv-driver.c: 190            init_nvdriver Initing nvdriver...
       476.110512526 [3950-3950] ../src/direct/nv-driver.c: 195            init_nvdriver Got dev info: 100 1 2 6
       476.110829813 [3950-3950] ../src/direct/nv-driver.c: 256            init_nvdriver NVIDIA kernel driver version: 525.60.11
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      <unknown profile>               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
       476.208442857 [3950-3950] ../src/vabackend.c:1843              nvTerminate Terminating 0x56251dde6400
       476.208513230 [3950-3950] ../src/vabackend.c:1857              nvTerminate Now have 0 (0 max) instances

Why is there <unknown profile>? I have seen it before.

@Korothi
Copy link

Korothi commented Dec 13, 2022

Download latest git
set NVD_BACKEND=direct
profit?
works on ampere (tested on 3080, arch)

@abcdabcd987
Copy link

abcdabcd987 commented Dec 13, 2022

I found Chrome failed to use hardware acceleration after upgrading NVIDIA driver to 525. Following the comments above, I'm able to make it work again! Here's the procedure:

  • yay -S nvidia-vaapi-driver-git (commit e2d256e)
  • Add NVD_BACKEND=direct to /etc/environment

My GPU: RTX 3080

@adamnejm
Copy link

Can also confirm that NVD_BACKEND=direct is working with nvidia 525.60.11-3 on RTX 3070 on Wayland.
The results below are pretty much the same compared to the 520 driver version without direct backend.


mpv --hwdec=nvdec-copy (4k60fps local video):

 (+) Video --vid=1 (*) (vp9 2880x2160 59.940fps)
Using hardware decoding (nvdec-copy).
VO: [gpu] 2880x2160 nv12
V: 00:00:18 / 00:00:18 (100%) Dropped: 13

CPU usage of the mpv process: 1.2%
GPU utilization hovers around: 10%


nvidia-smi pmon (while playing 1440p60fps video on YouTube):

# gpu        pid  type    sm   mem   enc   dec   command
# Idx          #   C/G     %     %     %     %   name
    0       2424     G     4     3     -     -   firefox
    0       4407   C+G     -     -     -     7   firefox
    0       1396     G     3     2     -     -   kwin_wayland

CPU usage of the RDD Process: 0.1%
Combined CPU usage of both firefox processes: ~2.4%
GPU utilization hovers around: 5%


vainfo:

Trying display: wayland
vainfo: VA-API version: 1.16 (libva 2.16.0)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      <unknown profile>               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD

More system information:

OS Arch Linux
Kernel 6.0.12-arch1-1
CPU Ryzen 5 5600X
GPU RTX 3070 SUPRIM X 8G (non-LHR)
MOBO MSI MAG B550
DE Plasma 5.26.4 (Wayland)

@SeongGino
Copy link

SeongGino commented Dec 14, 2022

Just coming in to verify that the direct backend from current git through AUR works for me on desktop 3060 Ti, driver 525, video decoding working on Librewolf.

Using an Arch system on Kernel 6.0.10, Plasma 5.26.4.

@EriksRemess
Copy link

EriksRemess commented Dec 15, 2022

Now works with 525.60.13 / RTX A4000 / kernel 6.1.0

@lzgmc
Copy link

lzgmc commented Dec 16, 2022

Oddly enough, direct mode doesn't work for me, even with the correct environment variables set up.
GPU: RTX 3070
NVIDIA driver version: 525.60.11
VA-API driver commit: acd4696
DE: GNOME 42.5, X11
Distro: Pop!_OS 22.04

$ echo $NVD_BACKEND
direct
$ vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
$ firefox
[GFX1-]: glxtest: VA-API test failed: process crashed. Please check your VA-API drivers.

Output of NVD_LOG:

       330.187850555 [6306-6306] ../src/vabackend.c:1781       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x5614d2bd3880 31
       330.187871995 [6306-6306] ../src/vabackend.c:1802       __vaDriverInit_1_0 Now have 0 (0 max) instances
       330.190412424 [6306-6306] ../src/export-buf.c: 159       findGPUIndexFromFd Looking for DRM device index: 0
       330.191176331 [6306-6306] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
       330.191233288 [6306-6306] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
       330.191238307 [6306-6306] ../src/export-buf.c: 187       findGPUIndexFromFd Found drmDeviceIndex: 0
       330.191241113 [6306-6306] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
       330.228741628 [6306-6306] ../src/export-buf.c: 265             initExporter Driver supports 16-bit surfaces
       330.228759642 [6306-6306] ../src/export-buf.c:  99                reconnect Reconnecting to stream
       330.228792273 [6306-6306] ../src/export-buf.c: 118                reconnect cuda error 'operation not supported' (801)

I also tried recompiling the driver using headers extracted with the extract_headers.sh script and got similar results.

@elFarto
Copy link
Owner

elFarto commented Dec 16, 2022

Output of NVD_LOG:

       330.187850555 [6306-6306] ../src/vabackend.c:1781       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x5614d2bd3880 31
       330.187871995 [6306-6306] ../src/vabackend.c:1802       __vaDriverInit_1_0 Now have 0 (0 max) instances
       330.190412424 [6306-6306] ../src/export-buf.c: 159       findGPUIndexFromFd Looking for DRM device index: 0
       330.191176331 [6306-6306] ../src/export-buf.c: 172       findGPUIndexFromFd Found 3 EGL devices
       330.191233288 [6306-6306] ../src/export-buf.c: 181       findGPUIndexFromFd Got EGL_CUDA_DEVICE_NV value '0' for EGLDevice 0
       330.191238307 [6306-6306] ../src/export-buf.c: 187       findGPUIndexFromFd Found drmDeviceIndex: 0
       330.191241113 [6306-6306] ../src/export-buf.c: 205       findGPUIndexFromFd Selecting EGLDevice 0
       330.228741628 [6306-6306] ../src/export-buf.c: 265             initExporter Driver supports 16-bit surfaces
       330.228759642 [6306-6306] ../src/export-buf.c:  99                reconnect Reconnecting to stream
       330.228792273 [6306-6306] ../src/export-buf.c: 118                reconnect cuda error 'operation not supported' (801)

This output is only printed with the egl backed, so you're not correctly selecting the direct one.

@yoqto
Copy link

yoqto commented Dec 16, 2022

The direct backend works perfectly in Firefox 108.0 on KDE Plasma 5.26.4 on X11 with a desktop 2080Ti and driver 525.60.13 👍 Thanks so much for this!

@lzgmc
Copy link

lzgmc commented Dec 17, 2022

This output is only printed with the egl backed, so you're not correctly selecting the direct one.

Upon further inspection, it looks like libva was loading a different version of the driver from /usr/local/lib/dri/ instead of /usr/lib/x86_64-linux-gnu/dri/, where the driver was supposed to be. I have no idea why it was doing that, but everything works now after a symlink. Thanks!

@elFarto
Copy link
Owner

elFarto commented Dec 17, 2022

Thanks for all your feedback! I'm going to close this issue now that v0.0.8 has been released.

@elFarto elFarto closed this as completed Dec 17, 2022
@Wurzlsepp0815
Copy link

Wurzlsepp0815 commented Dec 24, 2022

Working perfectly with NVD_BACKEND=direct and 525.60.11-0ubuntu0.22.04.1 on Linux Mint. Thank you!

System:
OS: Linux Mint (Cinnamon)
Kernel: 5.15.0-56-generic
CPU: Ryzen 9 3900X
GPU: Gigabyte RTX 4090 Gaming OC
Mainboard: MSI MPG X570 GAMING PRO CARBON WIFI

vainfo:

$ vainfo
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: 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 [direct backend]
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      <unknown profile>               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointVLD

nvidia-smi pmon: (4K/30fps YT)

# gpu        pid  type    sm   mem   enc   dec   command
# Idx          #   C/G     %     %     %     %   name
    0       1332     G     -     -     -     -   Xorg           
    0       1978     G     1     0     -     -   cinnamon       
    0       3852     G     -     -     -     -   Discord --type=
    0       4108     G     -     -     -     -   firefox        
    0       4895   C+G     -     -     -     7   firefox-bin    
    0       8242     G     -     -     -     -   thunderbird    
    0       9754     G     -     -     -     -   steam          
    0       9823     G     -     -     -     -   steamwebhelper 

RDD Process ~1% CPU
GPU ~1-2%

@Dungeonseeker
Copy link

Dungeonseeker commented Jan 19, 2023

Process to get everything running on Wayland, my laptop is an Optimus however it has a mux and I run it in Ultimate mode (essentially the Intel is only a passthrough for the display, the Nvidia is the card in use all of the time.

OS: ArcoLinux
Kernel: 6.1.6-zen1-2-zen
DE: Plasma 5.26.5
CPU: 12th Gen Intel i5-12450H (12) @ 4.400GHz
GPU: Intel Alder Lake-P GT1 [UHD Graphics]
GPU: NVIDIA GeForce RTX 3050 Ti Mobile

First the package on the AUR is orphaned and out of date, you MUST pull the latest version and build it manually (or just edit the PKGBUILD and change the build string)

/etc/environment

BROWSER=firefox
NVD_BACKEND=direct
MOZ_DISABLE_RDD_SANDBOX=1
MOZ_ENABLE_WAYLAND=1
EGL_PLATFORM=wayland
LIBVA_DRIVER_NAME=nvidia
__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json

Firefox about:config

media.ffmpeg.vaapi.enabled = true
media.rdd-ffmpeg.enabled = true
media.av1.enabled = false
gfx.x11-egl.force-enabled = true
gfx.webrender.all = true

After all that source /etc/environment (or more sensibly just reboot) then

nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.78.01 Driver Version: 525.78.01 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 | N/A |
| N/A 42C P0 14W / 60W | 809MiB / 4096MiB | 7% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
|=============================================================================|
| 0 N/A N/A 3320 C+G /usr/lib/firefox/firefox 306MiB |
|=============================================================================|

@sci-42ver
Copy link

sci-42ver commented Mar 31, 2023

I use nvidia 530
formerly , I maybe installed a wrong package libva-nvidia-driver and then changed to nvidia-vaapi-driver-git works fine in wayland after adding LIBVA_DRIVER_NAME=nvidia (NVD_BACKEND=direct not needed)

If only installed libva-vdpau-driver-vp9-git, maybe only detected x11 and even throw segmentation fault after saying 'Failed to create dedicated X11 display!'

env

$ pacman -Qs  nvidia
local/egl-wayland 2:1.1.11-3
    EGLStream-based Wayland external platform
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/nvidia-open-dkms 530.41.03-1
    NVIDIA open kernel modules
local/nvidia-utils 530.41.03-1
    NVIDIA drivers utilities
local/nvidia-vaapi-driver-git 0.0.9.r7.gc0a7f54-1
    A VA-API implemention using NVIDIA's NVDEC

vainfo

$ vainfo --display drm --device /dev/dri/renderD128                                              
Trying display: drm
vainfo: VA-API version: 1.17 (libva 2.17.1)
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
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD

@niyazFattahov
Copy link

I have amd-cpu + nvidia-gpu(gtx 1660ti)
Kubuntu 22.04.2, linux-5.15.0.73

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.41.03              Driver Version: 530.41.03    CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                  Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1660 Ti      Off| 00000000:0B:00.0  On |                  N/A |
|  0%   37C    P8               14W / 120W|    808MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1708      G   /usr/lib/xorg/Xorg                          359MiB |
|    0   N/A  N/A      2221      G   /usr/bin/kwin_x11                           209MiB |
|    0   N/A  N/A      2271      G   /usr/bin/plasmashell                         79MiB |
|    0   N/A  N/A      2337      G   /usr/bin/corectrl                            24MiB |
|    0   N/A  N/A      2375      G   /usr/bin/elisa                               13MiB |
|    0   N/A  N/A      2399      G   ...sktop/4806/usr/bin/telegram-desktop        2MiB |
|    0   N/A  N/A      6763      G   /usr/bin/krunner                             10MiB |
|    0   N/A  N/A      7457      G   ...4232489,16916911412312920486,262144       94MiB |
|    0   N/A  N/A     10036      G   ..._64-linux-gnu/libexec/kf5/kioslave5        1MiB |
|    0   N/A  N/A     10173      G   ..._64-linux-gnu/libexec/kf5/kioslave5        1MiB |
+---------------------------------------------------------------------------------------+
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: 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
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointVLD

When I try to play 4k(h264) video with vlc I get:

niyaz@niyaz-desktop-home  ~/Videos  vlc vid_264.mp4
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055e6e1fc8640] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f4ca80048b0] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
[00007f4ca80048b0] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
[00007f4cac161fd0] main video output error: video output creation failed
[00007f4cbcc210a0] main decoder error: failed to create video output
[00007f4ca84a36d0] gl gl: Initialized libplacebo v4.192.1 (API v192)
[00007f4ca84a36d0] gl gl: Initialized libplacebo v4.192.1 (API v192)
[00007f4ca84a36d0] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
libva info: va_openDriver() returns 0
[00007f4cbcceb2f0] avcodec decoder: Using VA-API NVDEC driver [egl backend] for hardware decoding

no matter NVD_BACKEND=direct or egl, result is the same
What's the reason for this? vlc could decode with vdpau, but I need vaapi for chromium/chrome

@elFarto
Copy link
Owner

elFarto commented Jun 12, 2023

What's the reason for this? vlc could decode with vdpau, but I need vaapi for chromium/chrome

This driver is specifically designed to work with Firefox/FFMPEG. It's not really intended to be used with VLC (as that can just use NVDEC directly). Chrome/Chromium support won't be for a while, there are several blockers that prevent it from working at the moment.

@kaimast
Copy link

kaimast commented Sep 10, 2023

I'm trying to use the direct backend on arch (with NVD_BACKEND=direct and LIBVA_DRIVER_NAME=nvidia) and get the following output from vainfo. Any idea what to do next?

Trying display: wayland
      1637.244635084 [10993-10993] ../nvidia-vaapi-driver-0.0.10/src/vabackend.c:2171       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 40
      1637.244659651 [10993-10993] ../nvidia-vaapi-driver-0.0.10/src/vabackend.c:2180       __vaDriverInit_1_0 Now have 0 (0 max) instances
      1637.244662719 [10993-10993] ../nvidia-vaapi-driver-0.0.10/src/vabackend.c:2206       __vaDriverInit_1_0 Selecting Direct backend
      1637.252504886 [10993-10993] ../nvidia-vaapi-driver-0.0.10/src/backend-common.c:  31            isNvidiaDrmFd Invalid driver for DRM device: i915
      1637.252516196 [10993-10993] ../nvidia-vaapi-driver-0.0.10/src/vabackend.c:2231       __vaDriverInit_1_0 Exporter failed
libva error: /usr/lib/dri/nvidia_drv_video.so init failed
vaInitialize failed with error code 1 (operation failed),exit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nvidia-issue This is an issue with the NVIDIA GPU driver
Projects
None yet
Development

No branches or pull requests