Top 10 Important and Useful FFmpeg Commands

Top 10 Important and Useful FFmpeg Commands

Are you know that what are FFmpeg Commands? FFmpeg is a powerful and versatile command line tool for converting audio and video files. The FFmpeg is a free and available for windows, linux and mac. You may use these commands to join two video files or you may convert video into an animated GIF.

FFmpeg Commands
FFmpeg Commands

You can run the command ./ffmpeg-formats to get a list of every format that is supported by your FFmpeg installation.

You may like to read – How to Transfer Files and Settings From Another Computer?

  1. Split a video into multiple parts

Command is –

ffmpeg –I video.mp4 –t 00:00:40 –c copy part1.mp4 –ss 00:00:40 –codec copy part2.mp4

  1. Cut video file into a smaller clips

Command is –

ffmpeg –I input.mp4 –ss 00:00:50.0 –codec copy –t 20 output.mp4

  1. Convert video from one format to another

Command is –

ffmpeg –i youtube.flv –c:v libx264 filename.mp4

ffmpeg –i youtube.flv –c:v libx264 preset.mp4

  1. Mute a video

Command –

ffmpeg –i video.mp4 –an mute –video.mp4

  1. Join Video files

Command –

ffmpeg –f concat –i file –list.txt –c copy output.mp4

  1. Extract the audio from video

Command –

ffmpeg –i video.mp4 –vn –ab 256 audio.mp3

  1. Extract image frames from a video – Command – ffmpeg –ss 00:00:15 –i video.mp4 –vf scale=800:-1 –vframes 1 images.jpg

  2. Convert a video into animated GIF – Command – ffmpeg –i video.mp4 –vf scale=500:-1 –t 10 –r 10image.gif

  3. Convert video into images

Command –

ffmpeg –i movie.mp4 –r 0.25 frames -%oud.png

  1. Resize a video

Command –

ffmpeg –i input.mp4 –s 480×320 –c:a copy output.mpg

  1. Create video slideshow from images

Command –

ffmpeg –r 1/5 –i img%3d.png –c:v libx264 –r 30 –pix_fmt yuv420p slideshow.mp4

 

You may like to read – 20 FFmpeg Commands For Beginners

Shares 0

Leave a Reply

Your email address will not be published. Required fields are marked *