Live data from Hacker News

Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

ottverse.com

31–40 of 52 posts

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#31
post #8

I want to love ffmpeg but I honestly can'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. However, it really feels like video editing isn't something that should be done on the command line. Does anyone know of decent GUI frontends to ffmpeg?

There’s the MystiQ Video Converter: https://github.com/swl-x/MystiQ/

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#32

Earlier quoted context omitted.

Woah, it's cross platform and has Linux support?! Thanks for sharing!

Oh, it sadly requires `sudo` but only tells me it's for `/usr/bin/env`. Not that I'm security paranoid or anything but I'm afraid it'll bork my system by overwriting random things on my filesystem with root stuff. Gonna have to pass, sadly.

you could try running it in a sandbox

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#33

Earlier quoted context omitted.

Woah, it's cross platform and has Linux support?! Thanks for sharing!

Oh, it sadly requires `sudo` but only tells me it's for `/usr/bin/env`. Not that I'm security paranoid or anything but I'm afraid it'll bork my system by overwriting random things on my filesystem with root stuff. Gonna have to pass, sadly.

hm, does not seem to require sudo here on arch ?

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#36

Earlier quoted context omitted.

Woah, it's cross platform and has Linux support?! Thanks for sharing!

Oh, it sadly requires `sudo` but only tells me it's for `/usr/bin/env`. Not that I'm security paranoid or anything but I'm afraid it'll bork my system by overwriting random things on my filesystem with root stuff. Gonna have to pass, sadly.

Just run the installer in the terminal as `./DaVinci_Resolve_16.2.7_Linux.run --nonroot`.

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#37
post #3

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's also added value when onboarding a new teammate and seeing their eyes open when they find some of the commands you maintain... Once you grok filter_complex, it becomes a lot easier to understand how people get very complex resul…

I did some work on making CTF-style challenge videos using filter_complex to try to get folks to play around with using ffmpeg filters in scripts. I barely scratched the surface but it ended up being a lot of fun.

I'd be very interested in doing a filter_complex CTF challenge. Are you willing to share what you worked on?

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#38
I've been using ffmpeg'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's an example: https://www.youtube.com/watch?v=Oeg9w8X6hrA.

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 https://github.com/ageitgey/face_recognition), then generate a video grid using ffmpeg + xgrid.

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#39

Earlier quoted context omitted.

Oh, it sadly requires `sudo` but only tells me it's for `/usr/bin/env`. Not that I'm security paranoid or anything but I'm afraid it'll bork my system by overwriting random things on my filesystem with root stuff. Gonna have to pass, sadly.

Just run the installer in the terminal as `./DaVinci_Resolve_16.2.7_Linux.run --nonroot`.

Oh brilliant! Thank you!

Re: Stack Videos Horizontally, Vertically, in a Grid With FFmpeg

#40
post #29
post #3

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's also added value when onboarding a new teammate and seeing their eyes open when they find some of the commands you maintain... Once you grok filter_complex, it becomes a lot easier to understand how people get very complex resul…

As "intricate" as some -filter_complex commands may be, it's still readable. Spending 2 hours reading and testing out commands should be all you need to master it. I've been using many CLI tools for all kind of purpose and I think it cannot be stressed how well design the whole ffmpeg program is. I even made a whole music video montage out of it.

the thing that took a bit of time to keep from getting confused is audio mapping. streams are indexed from 0 while channels are indexed from 1. knowing when something needs the stream index vs the channel index gets weird until that one day it finally clicks. i also argue with its choices of channel layout names[0]. a lack of 5.1+2.0 to be labeled similar to L,R,C,LFE,Ls,Rs+Lt,Rt. instead, it wants to call it some 7.1 monstrosity. also, industry standard for 5.1 is L,R,C,LFE,Ls,Rs while FFMPEG calls it FL,FR,FC,LFE,BL,BR. They also forgo Lt/Rt for DL/DR. Maybe I'm too video centric, and these make more sense to an audio centric person???

[0]https://trac.ffmpeg.org/wiki/AudioChannelManipulation#Listch...

Post reply on HN