

It will identify the required format from the file extensions.įor instance, run the following command to convert an mp3 audio file to a wav audio file: $ ffmpeg -i input_audio.mp3 output_audio.wav -hide_banner To do so, you must specify the input and output file, the rest will be taken care of by FFmpeg.
#HOW TO USE FFMPEG TO CONVERT VIDEOS HOW TO#
Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 400x400, 90k tbr, 90k tbn, 90k tbc (attached pic)Ĭomment : Cover (front) 2) How to Convert Audio From One Format to AnotherįFmpeg allows you to convert audio files between different formats.

Title : Poi Vaadaa En Polikaatu Raasa - Srimathumithaĭuration: 00:02:03.53, start: 0.023021, bitrate: 330 kb/s $ ffmpeg -i video_file.mp4 -hide_banner $ ffmpeg -i audio.mp3 -hide_banner It works for audio and video files too as shown below: $ ffmpeg -i audio_file.mp3 -hide_banner To avoid that, add the “-hide_banner” flag. By default, it displays copyright information about FFmpeg. Run the command below to display information about the media file. The general syntax of FFmpeg is as follows: ffmpeg. Run the command below to get a list of formats supported by FFmpeg: $ ffmpeg -formats -hide_bannerĭ aac raw ADTS AAC (Advanced Audio Coding) The FFmpeg package can be installed on most Linux distributions from default repositories.įfmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developersīuilt with gcc 9 (Ubuntu 9.3.0-10ubuntu2)Ĭonfiguration: -prefix=/usr -extra-version=1ubuntu0.1 -toolchain=hardened -libdir=/usr/lib/x86_64-linux-gnu -incdir=/usr/include/x86_64-linux-gnu -arch=amd64 -enable-gpl -disable-stripping -enable-avresample -disable-filter=resample -enable-avisynth -enable-gnutls -enable-ladspa -enable-libaom -enable-libass -enable-libbluray -enable-libbs2b -enable-libcaca -enable-libcdio -enable-libcodec2 -enable-libflite -enable-libfontconfig -enable-libfreetype -enable-libfribidi -enable-libgme -enable-libgsm -enable-libjack -enable-libmp3lame -enable-libmysofa -enable-libopenjpeg -enable-libopenmpt -enable-libopus -enable-libpulse -enable-librsvg -enable-librubberband -enable-libshine -enable-libsnappy -enable-libsoxr -enable-libspeex -enable-libssh -enable-libtheora -enable-libtwolame -enable-libvidstab -enable-libvorbis -enable-libvpx -enable-libwavpack -enable-libwebp -enable-libx265 -enable-libxml2 -enable-libxvid -enable-libzmq -enable-libzvbi -enable-lv2 -enable-omx -enable-openal -enable-opencl -enable-opengl -enable-sdl2 -enable-libdc1394 -enable-libdrm -enable-libiec61883 -enable-nvenc -enable-chromaprint -enable-frei0r -enable-libx264 -enable-sharedĪs described at the beginning of the article, FFmpeg supports all popular audio and video formats. In this guide, we’ll show you how to easily convert audio and video files using FFmpeg in Linux Installing FFmpeg in Linux It offers some tools like ffmpeg, ffplay, and ffprobe that can be used by end-users for transcoding and playing. The libraries are libavcodec, libavutil, libavformat, libavfilter, libavdevice, libswscale and libswresample. It uses many libraries to perform all kinds of functions.

Also, you can use ffmpeg to make a more complex conversion. Most conversions can be made with one or two commands. Most Linux GUI video editors use ffmpeg in the background for conversion. So you don’t have to look for alternative tools for any media file conversion. It supports all popular audio and video formats. It allows you to record, convert and stream audio and video files. FFmpeg is a very flexible, powerful, cross-platform, and versatile command-line tool for converting media file formats.
