Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.42k stars 1.55k forks source link

Amd Gpu HWaccelerated encoding #2022

Open crafael23 opened 1 year ago

crafael23 commented 1 year ago

I found that i could not make this properly work to be enccoded on my amd gpu for some reason, but I meddled around ffmpeg and figured a way to do it via the command line with no problems, for example with the comand ffmpeg -hwaccel d3d11va -hwaccel_device 0 -i Arly.mp4 -c:v hevc_amf -b:v 5M output.mp4 , I could visibly see the gpu temperature and usage go higher , but in moviepy i have not found a way to add those parameters properly so that it haas the sameish behavior as the command does. Could you give me some insight on to how could this be done or is it not properly supported at the moment with moviepy.