
To see a list of all supported formats, use: ffmpeg -formatsĪgain, you can add -hide_banner to omit information about the app. This will convert the input files to all specified formats. You can even specify more output files: ffmpeg -i audio_input.wav audio_output_1.mp3 audio_output_2.ogg Here are some examples: ffmpeg -i video_input.mp4 video_output.aviįfmpeg -i video_input.webm video_output.flvįfmpeg -i audio_input.mp3 audio_output.oggįfmpeg -i audio_input.wav audio_output.flac This works for video-to-video and audio-to-audio conversions. You only have to specify input and output files, since ffmpeg will get the required format from the file extensions. Convert Media FilesĪnother very useful way to use ffmpeg is for hassle-free conversion between different media formats. You can also use the same name for both an input and an output file, but you’ll have to add the -y tag before the output file name.ĭisplay info of a media file using ffmpegĪs you can see, the command now outputs only details concerning the media file you specified (encoder, streams etc.). Ffmpeg uses as many inputs and outputs as you provide. You have to keep in mind that all file options apply only to the file that follows them (you’ll have to write them again for the next file).Īny file not preceded by -i is considered an output file. The basic form a ffmpeg command is: ffmpeg. With ffmpeg installed, I’ll go over basic commands to get you started using this powerful tool.
LOCATE FFMPEG LINUX CLI HOW TO
To install ffmpeg in Fedora-based Linux distributions, you can use this command: sudo dnf install ffmpeg How to use ffmpeg: The Basics To install ffmpeg in Arch-based distributions, use the following command: sudo pacman -S ffmpeg Install ffmpeg in Fedora-based distributions Install the latest ffmpeeg in Ubuntu-based distros with PPA Install ffmpeg in Arch-based distributions
