hi there,
in the first place I would need to know more about your usecase, from your description I can only guess that you use the write_videofile() from the "moviepy" Python library, is this correct?
If this is the function you're talking about, your underlying Ffmpeg installation should be "CUDA enabled" and then the moviepy should be configured to use it properly
ThanassisKalv