Menu

Cannot use hardware accelerated filters

Sonic
2025-01-11
2025-10-20
  • Sonic

    Sonic - 2025-01-11

    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

     
  • Kay

    Kay - 2025-10-20

    I don't have time right now, but as i just got 'hw' decoding working last night - though it will be possibly completely different to your usage case - after a while, so this might point you in the right direction:

    --

    -init_hw_device qsv=qsv -c:v hevc_qsv -global_quality:v 23 -look_ahead_depth 30 -pix_fmt p010le -map 0 -movflags use_metadata_tags -map_metadata 0 -filter:v "scale='if(gt(a,1.77),if(gt(iw,1920),1920,-1),if(lt(a,0.57),-1,-1))':'if(gt(a,1.77),if(gt(iw,1920),1920/16*9,-1),if(lt(a,0.57),if(gt(ih,1920),1920,-1),-1))'" -sws_flags lanczos -profile:v main10 -preset 5 -c:a libopus -b:a 128K -c:s copy


    for the GPU decode option box, i have it set to 'none'.

     

Log in to post a comment.