FFmpeg

ffmpeg(1) is a command-line utility for manipulating media files programmatically.


Installation

Most Linux or BSD distributions offer a ffmpeg package.


Usage

Converting Audio Files

To convert from MP3 into FLAC formats, try:

ffmpeg -i example.mp3 example.flac

The input and output formats are automatically detected from the filenames.

Converting Video Files

To convert from MP4 into WEBM formats, try:

ffmpeg -i example.mp4 example.webm

The input and output formats are automatically detected from the filenames.

Extracting Thumbnail Images

To extract the frame at 1 minute into a video as a PNG image, try:

ffmpeg -i example.webm -ss 00:01:00.000 -frames:v 1 example.png

Note that the -vframes (and other related options like -dframes) are deprecated in favor of -frames:v (and -frames:d, and so on).


See also

FFmpeg project documentation

ffmpeg(1)


CategoryRicottone

FFmpeg (last edited 2023-11-03 15:57:31 by DominicRicottone)