Compress video to a broadly compatible format:
ffmpeg -i input -c:v libx264 -pix_fmt yuv420p -crf 25 -preset slow -c:a libfdk_aac -b:a 128k output.mp4This incantation is what I end up needing 99% of the time I do something with ffmpeg.
I’ve been a fan of
libsvtav1lately.
It’s very simple.
ffmpeg -i input_file <deep-dark-magic-you-should-be-afraid-of> output_fileCouldn’t be simpler.
That you don’t need to prepend output-file with -o but need(?) to do it with the input / -i weirds me out every time I use ffmpeg (which is a lot).
No but that’s understandable- you can have any number of inputs (what’s the upper limit, I wonder) but everything goes into only one output…
Ah, ok? So anything after an -i is an input but the last thing is always the output so ot doesn’t need a mark? Interesting.
Pretty much!
Why learn ffmpeg when you can find the holy words that invokes the machine spirits transmutation codex and write them on your data slate to be used again later?
i cannot fix her. I’d let her read the wiki or just install canvas
I find it wild there are countless “convert videos online for free!” sites on the Internet full of bonus malware which are all just thin wrappers around ffmpeg. And yet they persist because people want googleable answers to their problem which don’t need a command line or downloading anything.
Personally I’ve got a Python script which provides a slightly friendlier wrapper around ffmpeg for my common use-cases.
But honestly ffmpeg is such a beast, so much of what we use daily depends on it under the hood.
Why learn when you can do what I do and look it up every single time you want to do something as though you are but a goldfish who learned to type?
Humans are fish who learned to type. And on average pretty golden
Why do you need to learn ffmpeg
Wanting to do anything with video for one
Not true. You can:
- create
- delete
- copy
- move
- spend an afternoon with windows movie maker
- think you are creating but forgot to reinstall the sd card
- upload to youtube without any editing like a boss
So many things you can do without ffmpeg
YouTube and windows movie maker are almost certainly using ffmpeg.
fr feels like its own programming language
This is literally only for the ffmpeg filters 😅





