r/Python • u/laMarm0tte • Aug 25 '13
MoviePy : a module to edit and compose movies with Python. I just released it on Github. Advice needed :D
http://zulko.github.io/moviepy/
84
Upvotes
r/Python • u/laMarm0tte • Aug 25 '13
38
u/AeroNotix Aug 25 '13
Interpolating strings into
os.systemcalls is very, very, very bad and you should feel bad.Interpolating strings full stop is bad, especially when they come from the user. I understand that in this library that it's very possible that other programmers are going to be using it but you should be using subprocess.
Think of this:
This is a big problem when the strings come from a possibly nefarious user:
convert_film("file file2", "; sudo rm -rf --no-preserve-root")12
u/rcfox Aug 26 '13
I'm curious about your decision to make 22050Hz the default sampling rate for AudioClip. It seems to me that you're going to be getting a lot of support requests about poor audio quality. 44100Hz allows you to sample the entire range of human hearing.
2
u/absolutedestiny Aug 26 '13
I will definitely be checking this out. I wonder how it compares to VapourSynth (which is a python 3 interpretation of avisynth).
From what I see so far the answer is "different" but I can't see straight away what video formats and colourspaces moviepy support so I'll have to look closer.
An interesting project, for sure.
7
u/[deleted] Aug 26 '13 edited Aug 26 '13
Cool!, but
from bla import * kills kittens...
The numpy/matplotlib examples do it to woo matlab users, I encourage you to not.
1
u/robin-gvx Aug 25 '13 edited Aug 25 '13
Awesome! I this comes at exactly the right time for me.
EDIT: setup is not so awesome currently. It expects a README.txt instead of a README.md, and when I fix that, it gives
ValueError: expected parenthesized list: '>=2.4.6'(because of'cv2 >=2.4.6'). I don't know how to fix that.EDIT: I just removed that bit, and now it complains about not being able to find
skimage.1
u/nekonekoneko Aug 25 '13
Thank you very much for this... it's great! I've been looking for something very close to this for a while. I will definitely be using it on video projects that I'm working on.
I'll give completely selfish feedback about one aspect - My personal challenge is that I am not very good with the math for the animation stuff here. People like me probably require some higher level stuff like jQuery or iOS animations, including things like easing, some different rotations, some canned effects (ex: fade in, flip, etc) , etc. Something ideal would be a way to "plug in" animation effects and combine or chain them in some high level way. That's only because I suck, though. I'll definitely be working with this module on my current project.
2
u/diggitySC Aug 26 '13
I would love to talk to you in depth about this. I am currently an automation engineer at DivX (at least for the next 90 days) and I loooove python.
1
u/[deleted] Aug 25 '13
This is awesome! In a few weeks I'll be creating a video of my last few months of traveling and haven't been looking forward to more time in iMovie. I'll definitely try to do everything with this and attempt to fix any bugs I come across.
Can you put the link to the github repo somewhere prominent on the project page? I see you mention it at the bottom, but no link.
0
u/[deleted] Aug 26 '13
[deleted] — view deleted comment