Opened 22 months ago

Last modified 21 months ago

#9796 new defect

How can I use the scale_vulkan filter?

Reported by: oneechan69 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by oneechan69)

I did some googling on how to use the scale_vulkan filter and about Vulkan on ffmpeg, but it appears there's only a few support threads that are hard to decipher, and there isn't much documentation for Vulkan on FFmpeg. Anyway, I tried two different commands hoping the filter would work:

ffmpeg -hide_banner -init_hw_device vulkan=gpu:0 -filter_hw_device gpu -i "input.mkv" -filter_complex "[0:V:0]hwupload,scale_vulkan=1920:1080:bilinear:yuv420p,hwdownload,format=yuv420p[out]" -map "[out]" "output.mkv" -y
ffmpeg -v verbose -init_hw_device vulkan=vul,linear_images=1 -i "input.mkv" -vf "hwupload,scale_vulkan=w=1920:h=1080:format=yuv420p,hwdownload,format=yuv420p" "output.mkv" -y

But I got the same error message:

[AVHWDeviceContext @ 0000029c32857e80] No memory type found for flags 0x2
[hwupload @ 0000029c40ea5bc0] Failed to upload frame: -22.
Error while filtering: Invalid argument
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[libvorbis @ 0000029c340afb40] 39 frames left in the queue on closing
Conversion failed!
Also, I don't really know how the filter works or if any particular hardware (perhaps certain GPUs) may be needed for it.

Change History (3)

comment:1 by oneechan69, 22 months ago

Description: modified (diff)

comment:2 by hydra3333, 21 months ago

Hello.
Did you have an ffmpeg exe with vulkan and the relevant filters enabled for that build ?

From the looks of your "partial" log (not a full output from ffmpeg without the banner hidden) you may have.

Just in case not, please see some info in this thread about building ffmpeg with it:
https://github.com/m-ab-s/media-autobuild_suite/issues/2235

comment:3 by hydra3333, 21 months ago

Also, when you do find out how to operate the filter(s) can you please post here ?
Thanks

Note: See TracTickets for help on using tickets.