

We know we need to take off about 10 pixels total 5 onīoth the left and right sides. In this case, we’d like to remove the small black bars on the left and right What if you download a different file, but it has bars on the top/bottom or Pretty cool stuff, and pretty easy, once you learn to speak ffmpeg. The full file, not the one with the intro clipped. Thus, we have to change the end point for the -to since we’re starting from Note, though, we’re using the original file as the input again. The end point (again, in terms of the input), in addition to the -ss to set What if we wanted to do both at once? We can use the -to parameter to set Output.mp3 is 4:34 seconds, then we need to subtract 6 from that, to land onĠ0:04:28: ffmpeg -i output.mp3 -to 00:04:28 trimmed.mp3 To stop processing the input file, in the time system of the input file. We can handle that using the -to option, which sets when

However, we haven’t gotten rid of our outro yet, which lasts for the last six Into the input we wish to seek before we start “recording”, so to speak. Here, we’re using the oddly-named -ss parameter to set the hours:minutes:seconds Instruct ffmpeg to start the output at that point: ffmpeg -i input.mkv -ss 00:00:46 output.mp3 If you actually watch the video, there’s an intro section and an outro section mp3 will tell ffmpeg all it needs to know. 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 ⚓
