2024-02-14, 05:43 PM
(2024-02-14, 02:45 AM)bitmap Wrote:(2024-02-10, 08:51 AM)nyanmisaka Wrote: So if you learn how to interact it with VA-API/QSV to avoid video memory copies, applying film-grain to video frames would be very fast.
https://ffmpeg.org/ffmpeg-all.html#toc-Examples-133
What do you mean by avoiding video memory copies?
As in not using the hwupload filter (really helps with deinterlacing)? Or that you'd literally have two copies of each frame because of how the process works? I thought libplacebo could work with HWA so would be part of the filter pipeline...
That is, referencing/mapping VA-API/QSV memory as Vulkan memory instead of making a copy.
libplacebo currently only accepts Vulkan memory.
decoder(vaapi) -> hwmap -> libplacebo(vulkan) -> hwmap -> encoder(vaapi)