by diydsp on 9/26/24, 5:10 AM with 3 comments
I was especially impressed with its suggestion to use OpenCV, but also when I asked it to do multiple video streams at once, and to arrange them in a 2x2 grid, it gracefully added a few lines of numpy calls to stack them up. Next step would be to add audio.
Check out the source here: https://github.com/diydsp/Video-Looper-in-Python
by zahlman on 9/26/24, 9:25 AM
It likely would be if you had to implement algorithms in Python at the pixel level on Python data structures. The libraries you use do the hard part in C and provide an API to Python.
Anyway, I see how this code would multiplex four sources into a 2x2 grid in an output feed - but not how it would loop anything... ?