2025/11/23 午前8:32、桃源老師 <[email protected]>のメール:



$ caffeinate -di ffmpeg -init_hw_device vulkan -i C2_t04.mkv -vf
format=yuv420p,hwupload,libplacebo=w=1920:h=1080:custom_shader_path=Anime4K_Clamp_Highlights.glsl,libplacebo=custom_shader_path=Anime4K_Restore_CNN_M.glsl,libplacebo=custom_shader_path=Anime4K_Upscale_CNN_x2_M.glsl,libplacebo=custom_shader_path=Anime4K_AutoDownscalePre_x2.glsl,libplacebo=custom_shader_path=Anime4K_AutoDownscalePre_x4.glsl,libplacebo=custom_shader_path=Anime4K_Upscale_CNN_x2_S.glsl,hwdownload,format=yuv420p
-c:v libx264 -preset medium -crf 18 -level 5.1 -c:a copy -c:s copy
C2_t04_ffmpeg_Anime4K_1080.mkv

And I got "[mvk-error]  VK_ERROR_OUT_OF_DEVICE_MEMORY..." message several
times at very first of encoding, but I get resulting output and it seems to
be fine...


Is this "[mvk-error]  VK_ERROR_OUT_OF_DEVICE_MEMORY..." error can be safely
ignored or is this error harmful?


Just following-up to my post...

Firstly, my ffmpeg command initializing vulkan was completely wrong. I used:

-init_hw_device vulkan

but, it should be:

-init_hw_device "vulkan=vk:0" -hwaccel vulkan -hwaccel_output_format vulkan

or:

-init_hw_device "vulkan=vk:0" -filter_hw_device vk


Secondarily, l used libplacebo custom shader multiple times, but it seems
accept only one, single shader. And this might be the cause of "[mvk-error]
 VK_ERROR_OUT_OF_DEVICE_MEMORY..." message...


Then, I just concatenate each shader using cat command. This seems like
worked, but resulting output video have unacceptable artifacts...

I confirmed my concatenated shader with mpv player, then found those
artifacts exists. They exists even though the shader applied as independent
glsl file. So I suspect that Anime4K shader is not usable because of my
poor hardware, Apple M2. Or my poor understandings with shader and so on...

I'm now trying to use ewa_lanczos to scaling up my input video...

If those follow-up have any misunderstandings or any wrong, kindly teach
me...


Best Regards,
Togen-Roushi
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to