Zulko / moviepy

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

Accept file-like objects as input in all classes #2130

Open sohang3112 opened 3 months ago

sohang3112 commented 3 months ago

Allow classes like moviepy.editor.VideoFileClip to directly accept file handles and file-like objects alongside filenames. This eliminates the need for intermediate disk storage, reducing latency and enhancing efficiency. Also, in case of large videos, saving them to disk may not even be possible.

Some examples of file-like objects that could be passed (in addition to filenames and normal file handles):

xaviernogueira commented 2 months ago

I second this as valuable, especially when working with cloud providers.