TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I Made a Video Looper in Python with ChatGPT in Less Than 1 Hour

2 pointsby diydsp8 months ago
This is something I had been wondering about for a while: could ChatGPT help me make a videolooper? I had been assuming Python would be too slow, but I wanted to prove it out.. After about 45 minutes and only <i>7 iteration</i>, I came up with this working MVP!<p>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.<p>Check out the source here: <a href="https:&#x2F;&#x2F;github.com&#x2F;diydsp&#x2F;Video-Looper-in-Python">https:&#x2F;&#x2F;github.com&#x2F;diydsp&#x2F;Video-Looper-in-Python</a>

1 comment

zahlman8 months ago
&gt; I had been assuming Python would be too slow<p>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.<p>Anyway, I see how this code would multiplex four sources into a 2x2 grid in an output feed - but not how it would <i>loop</i> anything... ?
评论 #41657284 未加载