-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cannot use hardware accelerated filters #138
Comments
What ffmpeg.exe versión are you using? |
NVIDIA drivers are the latest game version,system version Windows 11 23H2 I am not pro user,Actually, I don't know much about ffmpge ,I use full 7.1 version ffmpge by gyan.dev。I want to use a sharpening filter to sharpen my video, but the CPU processing is too slow and it will drag down GPU encoding。I use -filters to query all the filters supported by the current version of FFMPGE,The only sharpening filter that supports hardware acceleration was found to be 'unshharp_opencl',This is the parameter I am currently trying: -c:v av1_nvenc -preset p7 -pix_fmt p010le -vf "unsharp_opencl=luma_msize_x=3:luma_msize_y=3:luma_amount=1.02:chroma_amount=1.0" -cq 38 -c:a aac -b:a 128K Yes, is still reporting errors: |
You may have to select a hardware device to use the hwupload/hwdownload feature: Then, use the filter like in these examples: |
Sorry to bother you again.Your reply makes me feel incredibly close to the right answer,Now I adjusted the parameters and confirmed that the system and the ffmpge I'm using support opencl.These are the parameters I'm using now: -init_hw_device opencl:0 -filter_hw_device OpenCL -vf "format=p010le,hwupload,unsharp_opencl=luma_msize_x=3:luma_msize_y=3:luma_amount=1.02:chroma_amount=1.0" -c:v av1_nvenc -preset p7 -cq 38 -c:a aac -b:a 128K I specify opencl hardware and use hwupload,but it still gives me an error,But I feel like I'm getting there.This is the ffmpge error message: [AVHWDeviceContext @ 000001fbd9bc7180] QSV to OpenCL mapping not usable. |
I don't know why qsv/d3d problems show up. |
Could you also try checking "Do not try preset"? |
This is a great FFMPGE GUI,I am using hardware (Nvidia 40 series graphics card) for encoding and decoding, everything is great。But when I tried to use hardware accelerated filters to assist with video processing, an error occurred. The scale_cuda or scale-npp filter should support hardware acceleration, but when I use the command line to call the filter, an error occurs。Here are the commands I used:-c:v av1_nvenc -preset p7 -pix_fmt p010le -vf "scale_npp=w=iw:h=ih:sharpness=2" -cq 38 -c:a aac -b:a 128K
I can't find many solutions online and I'm confused now. I hope it can be resolved
The text was updated successfully, but these errors were encountered: