Similarly, if we wanted to extract the audio from this video after we’ve alreadyĭownloaded it, we could do so as such: ffmpeg -i input.mkv output.mp3Īgain, the presence of. mp4 extension,įfmpeg is smart enough to divine what to do. We’re using the -i parameter to specify the input file to ffmpeg, and then That’s simple to do: ffmpeg -i input.mkv output.mp4
Let’s suppose you want to convert that into something MKV files are not a format thatĪpple OSes tends to like. Let’s say you downloaded a file using youtube-dl and it ended up in a format Of functionality, but the above will at least get you started. There are some nuances to installation if you want support for certain sub-sets The easiest way to install ffmpeg is to use Homebrew: brew install ffmpeg Take forever, so instead I’ll just cover a handful of examples I find myself To cover every nook and cranny of ffmpeg would I’ve spoken about ffmpeg many times in the past, and I’ve often been asked to In fact, many media players and/or transcoders that you may know and love areĪctually just graphical front-ends for ffmpeg. Transcode media, rotate it, crop it, downsample, upsample, etc. Or video media and convert it to almost any other form.
That media? Or what happens if you want to do something with media you alreadyįfmpeg is almost always the answer. Last Thursday, I discussed youtube-dl, a tool that allows you toĮasily download various kinds of media from the web. Ffmpeg, The Ultimate Swiss Army Knife Thursday, 17 August 2017 ⚓