Skip to main content

FFmpeg

Convert, cut, compress any audio or video file, on the command line.

In useCLIWindowsmacOSLinux ffmpeg.org

FFmpeg reads and writes just about every audio and video format. It has no interface: everything happens on the command line, which makes it the ideal tool for scripts — and for agents. Many programs, including yt-dlp and OBS, rely on it.

How I use it​

I do not learn its options by heart: I describe what I want to Claude Code, which writes the command. The needs are always the same:

ffmpeg -i video.mov -c:v libx264 -crf 23 video.mp4 # convert and compress
ffmpeg -ss 00:01:00 -to 00:01:30 -i in.mp4 -c copy out.mp4 # cut without re-encoding
ffmpeg -i video.mp4 -vn -c:a libmp3lame audio.mp3 # extract the audio
ffmpeg -i in.mp4 -vf "fps=15,scale=640:-1" anim.gif # make a GIF

It is installed with Scoop, in its full build.