-
Notifications
You must be signed in to change notification settings - Fork 60
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
nvCreateContext CUDA ERROR 'invalid argument' when trying decode using ffmpeg #259
Comments
This driver provides only hw accel in firefox. So it won't work in chome, ffmpeg etc etc etc. |
It should work in ffmpeg, as that's how Firefox access VA-API. The error you're getting is odd, a looks like a fundamental issue and I'm not sure what's causing it. Could you try playing back a smaller video (resolution wise)? |
So I downscaled the original video to 1280x720, and the same issue still happens
|
It looks like 33 surfaces is exactly 1 too many for the driver to handle. I've added some code to master to limit the surface count to 32 which should let it run, although it may not run correctly if ffmpeg actually tries to use all those surfaces (there's no way it actually needs that many to decode the video). |
@elFarto
This will work, with MOZ_DISABLE_RDD_SANDBOX be 0 or 1 |
I forgot to mention but if I switch the display output to my Intel iGPU, Firefox HW decoding on the iGPU works just fine without RDD flag |
I'm using the driver for Firefox hardware acceleration but it's not working so I tried it with ffmpeg first but it does not work either
Firefox infos:
NVD_LOG=1 vainfo:
ffmpeg -hwaccels:
NVD_LOG=1 ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD129 -i input.mp4 -c:v libx264 -crf 20 output.mp4:
The text was updated successfully, but these errors were encountered: