Live data from Hacker News

Programmatic Video Editing with Python

github.com

41–44 of 44 posts

Re: Programmatic Video Editing with Python

#41
post #23
post #20

If you're interested in high performance video processing with Python and want something more than just a fancy ffmpeg wrapper, then I can highly recommend checking out Vapoursynth: https://www.vapoursynth.com/ It's been around for ~9 years and has a relatively large community around it, most visibly found on the Doom9 forums: http://forum.doom9.org/forumdisplay.php?f=82 I'm personally still mostly using Avisynth the…

For those desiring a GUI interface around VapourSynth and other advanced A/V processing tools, I strongly recommend StaxRip: https://github.com/staxrip/staxrip

Avisynth only, but if someone wants something more IDE like, I'm a big fan of AvsPmod: https://github.com/gispos/AvsPmod (actively maintained fork)

Not a full blown GUI, but it shows you a video preview, syntax highlighting, function definitions for plugins, etc. It doesn't support Vapoursynth, but you can program macros in Python.

Re: Programmatic Video Editing with Python

#42
post #27

I've always thought "from lib import star" is somewhat of a anti-pattern. Personally I think that makes sense - because sometimes when I read code, I just have no idea where something comes from. But I've seen import star everywhere, couple of examples: Doc for this product FastAI's course Bing ads code base So I'm guessing it is more of accepted than I expected? What does HackerNews think?

No, you’re right. It’s like picking your nose. Don’t ever do it. I don’t ever do it. Unless no one can see. Somewhat more seriously, don’t do it in anything other than one-off code once you’ve experimented enough to get the result you want unless you aren’t scared of the people who will yell at you about circular imports.

You pick your nose? Ew! I never pick my nose!

Re: Programmatic Video Editing with Python

#43

I love MoviePy! It's great when you have a lot of bits of audio, video, and text you need to glue together. I have used it to create some GPT-2-generated Peppa Pig cartoons ( https://www.youtube.com/watch?v=1TEwCA3KDtg ) -- stick the image, text, and speech together (aligned to the speech length), concat all the clips, and finally apply some fancy ffmpeg effects.

Thanks for the comment, I also have a zillion short family and travel video clips, so I will give it a try to. BTW, your YouTube video is hilarious!

Re: Programmatic Video Editing with Python

#44
Hi friend, have you tought of hiring a professional? I have used ImageRevolver, check them here https://imagerevolver.com/ , they offer services like Cinematography, Live Streaming, Video editing, 3D Modeling and more, I know you're asking how to use python for that but maybe if it's something urgent or you don't want to break your head give them a try!
Post reply on HN