[FFmpeg-trac] #8512(undetermined:open): The Vulkan based filter scale_vulkan does not work on NVIDIA hardware.
FFmpeg
trac at avcodec.org
Thu Feb 6 18:04:55 EET 2020
#8512: The Vulkan based filter scale_vulkan does not work on NVIDIA hardware.
-------------------------------------+-------------------------------------
Reporter: Brainiarc7 | Owner: philipl
Type: defect | Status: open
Priority: normal | Component:
| undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by philipl):
* owner: => philipl
* status: new => open
Comment:
You need to tell the decoder to actually output to GPU memory - by default
hwaccel always copies back to system memory.
So here's an example that decodes with nvdec, scales with vulkan and
encodes with nvenc, all in GPU memory with no copy back to system memory.
If you want to encode with a software encoder, then you need the
hwdownload,format=nv12 at the end instead of the second hwupload.
{{{
ffmpeg -hwaccel nvdec -hwaccel_output_format cuda -i in.mp4
-init_hw_device cuda=cuda:0 -filter_hw_device cuda -vf
hwupload=derive_device=vulkan,scale_vulkan=w=1920:h=1440,hwupload=derive_device=cuda
-c:v hevc_nvenc out.mp4
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8512#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list