TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 diydsp8 个月前
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 个月前
&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 未加载