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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Automatic supercuts on the command line with Videogrep

352 点作者 saaaam将近 3 年前

25 条评论

vaughan将近 3 年前
I always wanted a markdown-like video editor. I want to chop up my videos and make notes about what is in them.<p>Text based document would be so much easier for this than big clunky Premiere.
评论 #31487504 未加载
评论 #31485754 未加载
评论 #31492496 未加载
评论 #31488384 未加载
评论 #31491839 未加载
评论 #31488463 未加载
评论 #31486719 未加载
giberson将近 3 年前
Any thought on providing an option to make a super cut that produces a desired output?<p>Ie `videogrep --input *.mp4 --produce &quot;I am a robot&quot;` and will find all the pieces it needs to produce the desired output?
评论 #31484872 未加载
filmgirlcw将近 3 年前
This is awesome! I’ve considered building something nearly identical over the years, as I’ve definitely used VTT files to aid in searching for content to edit, but never did because getting all the FFmpeg stuff to work made my head hurt. I’m so glad someone else has done the hard work for me and that it’s been documented so well!<p>Love this.
评论 #31484618 未加载
eduren将近 3 年前
If anyone else decides to give this a try on video files with multiple audio tracks, there doesn&#x27;t seem to be an easy way to tell it to select a certain track.<p>I got it working by manually adding `-map 0:2` (`2` being the trackid I&#x27;m interested in) when calling ffmpeg.<p>You&#x27;ll have to make that edit in both `videogrep&#x2F;transcribe.py` as well as `moviepy&#x2F;audio&#x2F;io&#x2F;readers.py`.<p>And I&#x27;m not sure how easy adding real support for that would be, considering that moviepy doesn&#x27;t currently have a way to support it (<a href="https:&#x2F;&#x2F;github.com&#x2F;Zulko&#x2F;moviepy&#x2F;issues&#x2F;1654" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Zulko&#x2F;moviepy&#x2F;issues&#x2F;1654</a>)
mmanfrin将近 3 年前
The short clip showing the results of searching for &#x27;ing&#x27; words caught me so off guard. I have the humor of a 12 year old.
评论 #31485025 未加载
abathur将近 3 年前
Exciting!<p>Back in 2011-12, my MFA (poetry) thesis project was a sort of poetic ~conversation between myself, and (selected) poems generated by a program I wrote, using transcripts of Glenn Beck&#x27;s TV show.<p>I really, <i>really</i> wanted to be able to generate video ~performances of the generated poem in each pair for my thesis reading (and for evolving the project beyond the thesis). I have to imagine videogrep could support that in some form, at least if I had the footage. (Not that I want to re-heat that particular project at this point).<p>Great work.
评论 #31484604 未加载
sirius87将近 3 年前
This is very cool! I wonder if Videogrep works better with videos sourced from Youtube (consistent formats, framerates, bitrates) compared to arbitrary sources.<p>I&#x27;ve used ffmpeg before to chop video bits and merge them before. Mixed results. It&#x27;d struggle to cut at exact frames or the audio would go out of sync or the frame rate would get messed up.<p>I gave up and decided to tackle the problem on the playback side. Like players respect subtitle srt&#x2F;vtt files, I wish there were a &quot;jumplist&quot; format (like a playlist but &quot;intra-file&quot;) that you could place alongside video&#x2F;audio files, and players would automatically play the media as per markers in the file, managing any prebuffering, etc. for smooth playback.<p>For a client project, I did this with the Exoplayer lib on Android, which kinda already has an &quot;evented&quot; playback support where you can queue events on the playback timeline. A &quot;jumplist&quot; file is a simple .jls CSV file with the same filename as the video file.<p>Each line contains: &lt;start-time&gt;,&lt;end-time&gt;,&lt;extra-features&gt;<p>&quot;extra-features&quot; could be playback speed, pan, zoom, whatever.<p>Code parses the file and queues events on the playback timeline (On tick 0 jump to first &lt;start-time&gt;, on each &lt;end-time&gt; go to next &lt;start-time&gt;).<p>I set it up to buffer the whole file aggressively, but that could be improved. Downside may be that more data is downloaded than is played. Upside is that multiple people can author their own &quot;jumplist&quot; files without time consuming re-encode of media.
rektide将近 3 年前
Resounding notions of Object Oriented Ontology[1] in Cinema[2][3] here, which is very much about pick out &amp; possibly stitching together key items from film.<p>&gt; &quot;<i>All of the elements of a shot’s mise en scène, all of the non-relational objects within the film frame, are figures of a sort. The figure is the likeness of a material object, whether that likeness is by-design or purely accidental. A shot is a cluster of cinematic figures, an entanglement. Actors and props are by no means the only kinds of cinematic figures—the space that they occupy and navigate is itself a figure&quot;</i><p>And the words they say, as seen here.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Object-oriented_ontology" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Object-oriented_ontology</a><p>[2] <a href="https:&#x2F;&#x2F;larvalsubjects.wordpress.com&#x2F;2010&#x2F;05&#x2F;03&#x2F;cinema-and-object-oriented-ontology&#x2F;" rel="nofollow">https:&#x2F;&#x2F;larvalsubjects.wordpress.com&#x2F;2010&#x2F;05&#x2F;03&#x2F;cinema-and-o...</a><p>[3] <a href="https:&#x2F;&#x2F;sullivandaniel.wordpress.com&#x2F;2010&#x2F;05&#x2F;02&#x2F;film-theory-as-a-form-of-procrastination&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sullivandaniel.wordpress.com&#x2F;2010&#x2F;05&#x2F;02&#x2F;film-theory-...</a>
r-k-jo将近 3 年前
Hi Sam, I&#x27;m big fan of your work! Coincidently, I just made a simple POC video editor by editing text using this speech to text model <a href="https:&#x2F;&#x2F;huggingface.co&#x2F;facebook&#x2F;wav2vec2-large-960h-lv60-self" rel="nofollow">https:&#x2F;&#x2F;huggingface.co&#x2F;facebook&#x2F;wav2vec2-large-960h-lv60-sel...</a>. It might be cool to integrate into your Videogrep tool, it also works offline with CPU or GPU, and gives you timestamps for word or character level.<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;radamar&#x2F;status&#x2F;1528660661097467904" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;radamar&#x2F;status&#x2F;1528660661097467904</a>
评论 #31485805 未加载
woudsma将近 3 年前
Very nice project!<p>Would be cool if it didn&#x27;t need a .srt file, but that it would scan the audio for a search prase.<p>Edit: Never mind, I see that you can create transcriptions using vosk!
评论 #31484104 未加载
评论 #31484222 未加载
评论 #31484018 未加载
nullc将近 3 年前
This needs a function where you can give it a string and it goes and finds the longest matches from the database then builds a video that says what the string says.<p>Also it would be fun if it output a kdenlive project file, so you could easily tweak the boundaries or clip orders.
xn将近 3 年前
Enjoying the serendipity of finding the right tool at the right time: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;xn&#x2F;status&#x2F;1528845032438083584" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;xn&#x2F;status&#x2F;1528845032438083584</a>
ellisd将近 3 年前
Videogrep + Youtube subtitle corpus = chef kiss emoji
867-5309将近 3 年前
great project! since it relies heavily on subtitle files, and as an alternative to generating your own, which websites would you recommend to find subtitles for videos which are not on youtube i.e. movies and series? preferably ones with ratings systems similar to guitar tabs websites - I can envisage a musical similarity in the variance and quality of user-submitted content e.g. timing, volume, tone, punctuation, expression, improvisation, etc. since I doubt many are composed from the actual scripts. I have never used vosk so am also wondering whether it would be quicker and more reliable than filtering and spot checking say a few subtitle files per video
评论 #31486168 未加载
sergiotapia将近 3 年前
Super niche but this would be great to build a comprehensive clip archive of the genovaverse.<p>Search by text, generated videos of frequent phrases and other meme-worthy sayings from the Sith Lord.<p>What do you think about that DALE?
aantix将近 3 年前
Are there any additional annotations that would be available? Identifying objects in the scene, sentiment or tone of speech, etc?
mdrzn将近 3 年前
Between this and VideoMentions I&#x27;m not sure what I love more!<p>Great work, can&#x27;t wait to try them!
867-5309将近 3 年前
somewhat related <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31209924" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31209924</a>
aktuel将近 3 年前
WTF is a supercut. ...OK apparently it means cutting a number of parts from the source video containing a given spoken text and joining them together again. Still not sure why you would call that a supercut.
评论 #31484306 未加载
评论 #31486352 未加载
评论 #31484283 未加载
评论 #31484708 未加载
评论 #31484202 未加载
lobocinza将近 3 年前
This is an useful tool for OSINT.
fulafel将近 3 年前
Is there a tool to generate subtitles locally?
harel将近 3 年前
The Donald Trump video made me laugh-out-loud for real like we used to do in the 90s.
OJFord将近 3 年前
Has Zuckerberg <i>deliberately</i> had work&#x2F;make-up done to look like his own avatar might in some sort of &#x27;metaverse&#x27; world? I can&#x27;t be alone in thinking a lot of those clips look more like gameplay footage than photography?
评论 #31485762 未加载
krat0sprakhar将近 3 年前
The YouTube video linked in that post (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=nGHbOckpifw" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=nGHbOckpifw</a>) is probably the most hilarious thing I&#x27;ll see this week. Thank you for sharing that.<p>Also is Zuckerberg for real? Half of those snippets look like it is a NPC from from a game. ¯\_(ツ)_&#x2F;¯
评论 #31486149 未加载
评论 #31485756 未加载
wiz21c将近 3 年前
If you don&#x27;t have time, just click on the Zuckerberg video on the homepage and experience something :-)
评论 #31488922 未加载