
To complete the installation, you must be the root user. Installing FFmpeg in Ubuntuįfmpeg does not come pre-installed in Ubuntu by default, so you will first have to install this program to use it. The tasks that can be performed with the aid of ffmpeg include audio file conversion, video file conversion, photo conversion, image file extraction from video files, generating videos from image files, extracting audio from video, cropping videos and photos, trimming videos, re-sizing videos, boosting volume, and creating screen recordings. So, in order to copy the streams with ffmpeg, you'd do: ffmpeg -i video.mp4 -codec copy video.avi ( As Peter.O mentioned, option order is important, so that's where -codec copy must go. There are obviously expensive tools out there that one can buy to fulfill one’s needs, but what if we could do this for free? What if a few lines of code could do almost any video-related task that you require?įfmpeg is a free and open-source video conversion, extraction, and editing tool that provides an answer to this question! What can ffmpeg not do? Almost nothing. If you're concerned with quality, a good rule of thumb is to avoid reencoding the streams when possible.

It has become so common, in fact, that creating and editing audio and video files have become the new normal in the span of only a few decades. In the modern world, with YouTube and other social media apps as the mainstream way to view digital media, uploading videos has become a common practice.
