Convert a video into animated GIFįFmpeg is an excellent tool for converting videos into animated GIFs and the quality isn’t bad either. ffmpeg -i video.mp4 -vn -ab 256 audio.mp3 7. The -vn switch extracts the audio portion from a video and we are using the -ab switch to save the audio as a 256kbps MP3 audio file. ffmpeg -i video.mp4 -an mute-video.mp4 6. Use the -an parameter to disable the audio portion of a video stream. Mute a video (Remove the audio component) ffmpeg -f concat -i file-list.txt -c copy output.mp4 5. Create a input file with a list of all source files that you wish to concatenate and then run this command. If you have multiple audio or video files encoded with the same codecs, you can join them into a single file using FFmpeg. ffmpeg -i youtube.flv -c:v libx264 filename.mp4 ffmpeg -i video.wmv -c:v libx264 -preset ultrafast video.mp4 4. Encoding a video takes time but you can speed up the process by forcing a preset though it would degrade the quality of the output video. You can use the -vcodec parameter to specify the encoding format to be used for the output video. This command will split the source video into 2 parts – one ending at 50s from the start and the other beginning at 50s and ending at the end of the input video. If you want to split a large video into multiple smaller clips without re-encoding, ffmpeg can help. You can use the time offset parameter (-ss) to specify the start time stamp in HH:MM:SS.ms format while the -t parameter is for specifying the actual duration of the clip in seconds. If you are just getting started, here are some commands that will give you good idea of the capabilities of this tool. ffmpeg -formats to get a list of every format that is supported by your FFmpeg installation. Whether you want to join two video files, extract the audio component from a video file, convert your video into an animated GIF, FFmpeg can do it all and even more.įFmpeg supports all popular audio and video formats.
It is free and available for Windows, Mac and Linux machines. FFmpeg is an extremely powerful and versatile command line tool for converting audio and video files.