= 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 == [[https://ffmpeg.org/documentation.html|FFmpeg project documentation]] [[https://man.archlinux.org/man/ffmpeg.1|ffmpeg(1)]] ---- CategoryRicottone