You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to propose adding a user-friendly API to expose FFmpeg’s hardware acceleration options (e.g., NVENC, VAAPI, AMF) for video encoding. Currently, the FFMPEG_VideoWriter class internally allows passing extra FFmpeg parameters via ffmpeg_params, but this is not easily accessible to users.
🔹 Proposed Changes
Expose hardware acceleration options in a user-friendly way, rather than requiring users to manually pass ffmpeg_params.
Add a use_gpu flag in write_videofile(), which automatically configures hardware acceleration if supported.
Improve documentation to guide users on available GPU-accelerated codecs.
🛠 Implementation Plan
I’ve found that FFMPEG_VideoWriter already supports passing extra FFmpeg parameters:
if ffmpeg_params is not None:
cmd.extend(ffmpeg_params)
However, this is not well-documented or easy to use. I’d be happy to work on exposing this feature properly if the maintainers are open to it. Let me know if this aligns with MoviePy’s roadmap! 🚀
Description
I’d like to propose adding a user-friendly API to expose FFmpeg’s hardware acceleration options (e.g., NVENC, VAAPI, AMF) for video encoding. Currently, the
FFMPEG_VideoWriter
class internally allows passing extra FFmpeg parameters viaffmpeg_params
, but this is not easily accessible to users.🔹 Proposed Changes
ffmpeg_params
.use_gpu
flag inwrite_videofile()
, which automatically configures hardware acceleration if supported.🛠 Implementation Plan
I’ve found that
FFMPEG_VideoWriter
already supports passing extra FFmpeg parameters:However, this is not well-documented or easy to use. I’d be happy to work on exposing this feature properly if the maintainers are open to it. Let me know if this aligns with MoviePy’s roadmap! 🚀
📌 References
Would love to hear your thoughts! 😊
The text was updated successfully, but these errors were encountered: