News for hackers. Stuff that matters.
Re:Programmatic Video Editing with Python by fareesh on Wednesday July 21, 2021 @04:01PM (#27911348)
What are some good / mature / performant libraries to programmatically achieve compositions of text, audio and image files, perhaps with a timeline in which these can be declared at various timestamps, and the output is a video file?

Does this one do it?

Re:Programmatic Video Editing with Python by minimaxir on Wednesday July 21, 2021 @04:21PM (#27911620)
Essentially this repo is a robust wrapper for FFMPEG, which is what most programmatic video editing tools use in one way or another.
Re:Programmatic Video Editing with Python by mr-wendel on Wednesday July 21, 2021 @04:05PM (#27911405)
I've had a lot of fun with https://github.com/mifi/editly. It seems a bit RAM hungry as you define lots (dozens?) of clips thought.

I found it super useful to write a quick Python script to auto-generate JSON in the format it wants, combining screenshots, headers, footers, and such into a nice demo-video.

Re:Programmatic Video Editing with Python by ackbar03 on Thursday July 22, 2021 @01:26AM (#27915683)
Just curious, what is your use case? I had to do some stuff like this for a school project a while ago, wrangled with ffmpeg whilst cursing under my breathe. Curious what other people do this for
Re:Programmatic Video Editing with Python by fareesh on Thursday July 22, 2021 @02:58AM (#27916225)
Essentially the same thing - ffmpeg syntax is very complex to maintain so I wanted to find out if there are better approaches to implementing this kind of solution.

The use-case is mostly audio conversations converted to video with the relevant speaker's face shown prominently, based on timestamp data.

Re:Programmatic Video Editing with Python by wizzwizz4 on Wednesday July 21, 2021 @04:25PM (#27911680)
AviSynth+ [0] is one of the most mature libraries around. It's performant enough to run live (usually), though I don't imagine it's heavily optimised.

[0]: https://avs-plus.net/

Re:Programmatic Video Editing with Python by Budabellly on Wednesday July 21, 2021 @11:50PM (#27915141)
Re:Programmatic Video Editing with Python by qbasic_forever on Wednesday July 21, 2021 @04:07PM (#27911434)
gstreamer is mature... still hard to say if it matches the other requirements (it is notoriously difficult to figure out and use from its docs)