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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

221 点作者 rrao84超过 4 年前

10 条评论

doomlaser超过 4 年前
My favorite video editing discovery of the last couple of years is Da Vinci Resolve. It rivals Adobe Premiere in many ways. Plus it&#x27;s cross-platform, and free: <a href="https:&#x2F;&#x2F;www.blackmagicdesign.com&#x2F;products&#x2F;davinciresolve&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.blackmagicdesign.com&#x2F;products&#x2F;davinciresolve&#x2F;</a><p>It also supports the OpenFX plugin format: <a href="http:&#x2F;&#x2F;openfx.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;openfx.sourceforge.net&#x2F;</a>
评论 #25023424 未加载
评论 #25025081 未加载
评论 #25023398 未加载
评论 #25024051 未加载
评论 #25024198 未加载
Everlag超过 4 年前
If you want to do fun things with ffmpeg as a cli, most roads end at filter_complex[0]. You can get some truly impressive results at the cost of maintaining really intricate commands. There&#x27;s also added value when onboarding a new teammate and seeing their eyes open when they find some of the commands you maintain...<p>Once you grok filter_complex, it becomes a lot easier to understand how people get very complex results out of ffmpeg.<p>Of less renown but worthy of a mention is the tee[1] muxer. It lets you take the same resulting input and pass it to different destinations. Incredibly handy, ie, for outputting DASH, HLS, and a regular ol mp4 from the same command WITHOUT having to redo the scaling or anything else that was in the filter_complex.<p>[0] <a href="https:&#x2F;&#x2F;ffmpeg.org&#x2F;ffmpeg-filters.html#Filtergraph-syntax-1" rel="nofollow">https:&#x2F;&#x2F;ffmpeg.org&#x2F;ffmpeg-filters.html#Filtergraph-syntax-1</a><p>[1] <a href="https:&#x2F;&#x2F;ffmpeg.org&#x2F;ffmpeg-formats.html#Examples-12" rel="nofollow">https:&#x2F;&#x2F;ffmpeg.org&#x2F;ffmpeg-formats.html#Examples-12</a> (links to examples which is where you should start, scroll up to see docs)
评论 #25025040 未加载
评论 #25024244 未加载
评论 #25023717 未加载
greggman3超过 4 年前
I wrote an Electron app (started as just a local web server) to basically do this. The UI is kind of like iPhotos or any other photo viewer except you can split view as many times as you want and views something different in each pane.<p>Here&#x27;s a short clip of 8 videos playing<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=nK52DY6sq9U" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=nK52DY6sq9U</a><p>or a better video starting from the basic UI, starting videos, zooming them to &quot;cover&quot; mode, and splitting and starting more<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=gH9h3XGkFmc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=gH9h3XGkFmc</a><p>Here&#x27;s the app<p><a href="https:&#x2F;&#x2F;mopho-v.org" rel="nofollow">https:&#x2F;&#x2F;mopho-v.org</a><p>You can also open multiple windows so if you have multiple monitors you can easily run one more videos per monitor until your computer can&#x27;t keep up.<p>note: It&#x27;s pretty alpha, several bugs, but I&#x27;ve used it several times a week, living with it&#x27;s bugs, for a couple of years. Not sure I can justify fixing it up as I&#x27;m the only person using it AFAICT but maybe it will give others inspiration. The code I&#x27;m sure is a mess. It was my first React app (a reason to give React a try).<p>It also works pretty good in VR as in on Oculus Rift I open my desktop and manipulate videos and splits with the touch controllers as a mouse. No particular VR support, just saying that most of the features have clickable buttons so it&#x27;s easy to use in VR.<p>A big limit is being Electron it can only play what Chromium plays (mp4, mkv, vp8, vp9). I&#x27;ve been wanting to look info FFMpeg in wasm to add support for other formats, saw the post yesterday someone had done something. I figured it might be too slow and that figuring out how to sync audio might be painful but it&#x27;s still on my magical &quot;someday I might&quot; to do list. Since Chromium already uses ffmpeg it might be easier to just patch Electron to use ffmpeg with all features enabled instead of just the few that ship with Chrome.
评论 #25024404 未加载
gnicholas超过 4 年前
When I was making a Kickstarter video, I used Keynote to arrange videos side by side, mask them, and change landscape&#x2F;portrait orientation. The output is surely not high quality, but if you are already experienced with Keynote and don&#x27;t need 4k, it&#x27;s actually a pretty handy tool.<p>It did the trick for me (my Kickstarter got funded!) and I later wrote a blog post about how to use Keynote to add special effects to video on the cheap.<p>1: <a href="https:&#x2F;&#x2F;medium.com&#x2F;hackernoon&#x2F;adding-visual-effects-to-your-kickstarter-video-on-the-cheap-thanks-to-keynote-eb69920d90eb" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;hackernoon&#x2F;adding-visual-effects-to-your-...</a>
caryme超过 4 年前
I&#x27;ve been using ffmpeg&#x27;s xgrid filter (similar to hstack and vstack, but allows for arbitrary grids) to produce virtual choir videos for my church choir during covid. Here&#x27;s an example: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Oeg9w8X6hrA" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Oeg9w8X6hrA</a>.<p>A lot of people are producing virtual choir videos right now, but I suspect few use a process similar to mine. I use Audacity to edit the audio separately, then crop the input videos using a face-aware cropping script (which uses <a href="https:&#x2F;&#x2F;github.com&#x2F;ageitgey&#x2F;face_recognition" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ageitgey&#x2F;face_recognition</a>), then generate a video grid using ffmpeg + xgrid.
评论 #25027815 未加载
ladberg超过 4 年前
I want to love ffmpeg but I honestly can&#x27;t stand that I have to spend ~15 minutes looking for the magical incantation to get the result I want. After I find it, it works quickly and has good results.<p>However, it really feels like video editing isn&#x27;t something that should be done on the command line. Does anyone know of decent GUI frontends to ffmpeg?
评论 #25023818 未加载
评论 #25024691 未加载
评论 #25027289 未加载
评论 #25023810 未加载
评论 #25025224 未加载
评论 #25024281 未加载
ahrjay超过 4 年前
I did something similar using filter_complex to create a 14x14 grid showing 196 days of earth full disc shots for my earthin24 Twitter bot. It&#x27;s truly impressive what ffmpeg can do <a href="https:&#x2F;&#x2F;ryanseddon.com&#x2F;javascript&#x2F;an-earth-mosaic&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ryanseddon.com&#x2F;javascript&#x2F;an-earth-mosaic&#x2F;</a>
kristopolous超过 4 年前
I was already doing this but recently I&#x27;ve started looking into obs (<a href="https:&#x2F;&#x2F;obsproject.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;obsproject.com&#x2F;</a>) as a possible alternative.<p>I can for instance, add and remove things and move them around the screen with a mouse, without having to restart things or do any math - sounds way more convenient.
867-5309超过 4 年前
&gt; videos with the same height and width<p>Surely this remarkable tool has a command or filter to fit videos within a specified area, whether it be zoom, pan, shortest height, and the like
评论 #25029319 未加载
raymond_goo超过 4 年前
Is it also possible to undo a stack video ?
评论 #25033973 未加载
评论 #25025592 未加载
评论 #25024730 未加载