elFarto / nvidia-vaapi-driver

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

Issue after upgrading to 525 series drivers #126

Closed qumaciel closed 1 year ago

qumaciel commented 1 year ago

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 commented 1 year ago

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

> vainfo -a
Trying display: wayland
Trying display: x11
elFarto commented 1 year ago

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 commented 1 year ago

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

elFarto commented 1 year ago

Sure, it's here.

Wish9051 commented 1 year ago

Seems like same issue persists in 525.60.11 version as well.

qumaciel commented 1 year ago

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

thesword53 commented 1 year ago

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

qumaciel commented 1 year ago

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

Wish9051 commented 1 year ago

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

CoelacanthusHex commented 1 year ago

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 commented 1 year ago

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.

elFarto commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

elFarto commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Is it possible to use Vulkan instead of EGL?

zbvk commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.

EriksRemess commented 1 year ago

Still same init failed in mpv.

elFarto commented 1 year ago

You do need to explicitly choose the direct backend with NVD_BACKEND=direct. I did update the README with that, but forgot to mention it here.

EriksRemess commented 1 year ago

Tried with and without NVD_BACKEND=direct, same issue. In Firefox it looks like it tries to use the decoding (I see brief activitiy in GreenWithEnvy decoder bar) but after playback starts, it plays without gpu decode.

elFarto commented 1 year ago

Can you run Firefox with NVD_LOG=1 set aswell, and open a new issue with the output?

crimist commented 1 year ago

Direct backend fixed this issue for me.

a79b9a@nvidia-vaapi-driver
local/nvidia 525.60.11-2
1080Ti
reliant8307 commented 1 year ago

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.

Direct backend worked for me too: cd1f6a9ebf3c94d9f955ff309a04b934c9da3c9b@nvidia-vaapi-driver Nvidia driver 525.60.11 RTX 2070 Mobile

someone13574 commented 1 year ago

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

Works for me:

cd1f6a9e@master Driver Version: 525.60.11 GTX 1660 SUPER

anonish commented 1 year ago

does using direct backend work with electron/chrome-based apps like discord?

elFarto commented 1 year ago

does using direct backend work with electron/chrome-based apps like discord?

No, Chrome doesn't support using DMA-BUF based VA-API yet, so is not compatible with this library.

anonish commented 1 year ago

No, Chrome doesn't support using DMA-BUF based VA-API yet, so is not compatible with this library.

oh sorry, i meant discord (electron based) as per an eariler comment on this issue. I just upgraded to 525.60.11 and latest git of this package and discord/telegram both seem to be working well, so mark me as another "it works!"

thesword53 commented 1 year ago

does using direct backend work with electron/chrome-based apps like discord?

VLC also doesn't work because vaDeriveImage isn't implemented (black screen). VLC also supports VDPAU but it doesn't work on Wayland sessions.

[00007f3c78c1a9c0] avcodec decoder: Using VA-API NVDEC driver [direct backend] for hardware decoding
[00007f3c58c875b0] vaapi_filters filter error: vaDeriveImage: operation failed
elFarto commented 1 year ago

oh sorry, i meant discord (electron based) as per an eariler comment on this issue. I just upgraded to 525.60.11 and latest git of this package and discord/telegram both seem to be working well, so mark me as another "it works!"

Yes, my apologies. It is now fixed for other applications that were crashing if they happen to load this library.

anonish commented 1 year ago

Yes, my apologies. It is now fixed for other applications that were crashing if they happen to load this library.

that's alright, I had a hard crash overnight with 525 driver so back to 520 for me until 525 stabilizes a bit more. on 520 i have no issues.

NoXPhasma commented 1 year ago

It works with NVD_BACKEND=direct on driver version 525.60.11 for me on a 1080. But the VRAM fills up over time and never gets freed, until I restart Firefox.

elFarto commented 1 year ago

It works with NVD_BACKEND=direct on driver version 525.60.11 for me on a 1080. But the VRAM fills up over time and never gets freed, until I restart Firefox.

There was an issue where the cuCtxDestroy call went missing from the nvTerminate function. Can you check if your's has it there?

NoXPhasma commented 1 year ago

@elFarto I've built it from the AUR yesterday with commit https://github.com/elFarto/nvidia-vaapi-driver/commit/cd1f6a9ebf3c94d9f955ff309a04b934c9da3c9b. Rebuilt it just now and will check if it is fixed.

NoXPhasma commented 1 year ago

With latest commit, it frees memory once I stop a video or close the tab, but not entirely. It keeps growing the VRAM load over time when I watch several videos. Interestingly enough, I can not see that in nvidia-smi. According to the api, FF consumes less than 200 MB. Which comes not even close to how much gets freed once I close Firefox.

elFarto commented 1 year ago

I'm seeing the same memory issue here. There's a weird artifact of using the NVIDIA API directly, allocated memory doesn't show up against the process in nvidia-smi. It does show up in the total used memory though.

This is going to take a while to track down.

elFarto commented 1 year ago

Ok, give master a go. I think I found the issue, but I'm slightly confused as to what's happening. I thought when you imported the allocated memory into DRM it closed the fd, hence we had to duplicate the fd prior so we could give that one to CUDA. But now it seems not to be doing that, and the second fd must be closed at the same time the first one is.

NoXPhasma commented 1 year ago

Can confirm, it now frees the memory.

chiyuki0325 commented 1 year ago

This direct backend will not work under Optimus system. It used to work for me when using the legacy EGLStream backend with 520 drivers. While it doesn't work in Firefox and VLC, it works fine in MPV and SMPlayer. But after switching to this direct backend and latest 525 drivers, I got an init failed error.

Anyway, I'm looking forward to a Vulkan backend that works on any system.

elFarto commented 1 year ago

This direct backend will not work under Optimus system. It used to work for me when using the legacy EGLStream backend with 520 drivers. While it doesn't work in Firefox and VLC, it works fine in MPV and SMPlayer. But after switching to this direct backend and latest 525 drivers, I got an init failed error.

That's likely related to the hard coded device path that's still in the direct-backend.c file. If you change that to you NVIDIA card it should work.

crimist commented 1 year ago

@YidaozhanYa Try #137

chiyuki0325 commented 1 year ago

I tried #137 or changing renderD128 to renderD129 in the master branch, neither of which worked for me.
It's still trying to render with integrated graphics.

$ vainfo  # `prime-run vainfo` returns the same result
Trying display: wayland
Trying display: x11
       129.496002602 [4992-4992] ../src/vabackend.c:1872       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x562a259ed830 10
       129.496019414 [4992-4992] ../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
chiyuki0325 commented 1 year ago

btw I'm on a laptop with MUXless scheme and not using any optimus-manager or external monitor. Window system: X11 Integrated graphics: Intel CometLake-H GT2 [UHD Graphics] Discrete graphics: NVIDIA GeForce GTX 1650 Ti Mobile

chiyuki0325 commented 1 year ago

The following command correctly gets vainfo to run, but I still can't get it to work in mpv or any media player.
Seems like media players prefer X11 display over drm.

$ vainfo --display drm --device /dev/dri/renderD129
Trying display: drm
       584.898899514 [8758-8758] ../src/vabackend.c:1872       __vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x557fdc88a8e0 31
       584.898911096 [8758-8758] ../src/vabackend.c:1895       __vaDriverInit_1_0 Now have 0 (0 max) instances
       584.898913875 [8758-8758] ../src/vabackend.c:1920       __vaDriverInit_1_0 Selecting Direct backend
       584.903399679 [8758-8758] ../src/direct/nv-driver.c: 194            init_nvdriver Initing nvdriver...
       584.903420033 [8758-8758] ../src/direct/nv-driver.c: 199            init_nvdriver Got dev info: 100 0 0 0
       584.903472167 [8758-8758] ../src/direct/nv-driver.c:  40          nv_alloc_object Allocating NVObject: C1D00038
       584.903498235 [8758-8758] ../src/direct/nv-driver.c:  40          nv_alloc_object Allocating NVObject: CAF00000
       584.903516717 [8758-8758] ../src/direct/nv-driver.c:  40          nv_alloc_object Allocating NVObject: CAF00001
       584.903529248 [8758-8758] ../src/direct/nv-driver.c: 260            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
       584.983866700 [8758-8758] ../src/vabackend.c:1843              nvTerminate Terminating 0x557fdc88a8e0
       584.983871909 [8758-8758] ../src/direct/nv-driver.c:  58           nv_free_object Freeing NVObject: CAF00001
       584.983884302 [8758-8758] ../src/direct/nv-driver.c:  58           nv_free_object Freeing NVObject: CAF00000
       584.983894771 [8758-8758] ../src/direct/nv-driver.c:  58           nv_free_object Freeing NVObject: C1D00038
       584.983919440 [8758-8758] ../src/vabackend.c:1857              nvTerminate Now have 0 (0 max) instances
chiyuki0325 commented 1 year ago

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 6e8b0d067c52c3a7e0c3de745337e6e733c59207 and it works for me now.