{"id":9376,"date":"2021-01-07T16:11:33","date_gmt":"2021-01-07T21:11:33","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9376"},"modified":"2021-12-04T06:28:05","modified_gmt":"2021-12-04T06:28:05","slug":"install-use-ffmpeg-ubuntu-20-04-debian-10","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/install-use-ffmpeg-ubuntu-20-04-debian-10\/","title":{"rendered":"How to Install and Use FFmpeg on Ubuntu 20.04 or Debian 10"},"content":{"rendered":"\n
Here you will see how easy it is to install and use FFmpeg on Ubuntu 20.04 or Debian 10 and earlier to perform a variety of tasks on audio and video files.<\/p>\n\n\n\n
FFmpeg is an open-source<\/a> and cross-platform application for handling video, audio, and other multimedia files and streams. At its core is the command-line interface used to perform a large number of tasks while processing video and audio files.<\/p>\n\n\n\n First off, we will need to make sure our Ubuntu<\/a> or Debian<\/a> installation is up-to-date.<\/p>\n\n\n\n It so happens that Ubuntu 20.04 LTS contains the FFmpeg apt packages in the default repositories. We can simply execute the following commands:<\/p>\n\n\n\n Confirm the FFmpeg installed on your system by checking the version on your system using:<\/p>\n\n\n\n With an output that looks like this:<\/p>\n\n\n\n You can list the capabilities of FFmpeg by running any one of these commands in your terminal:<\/p>\n\n\n\n Converting an existing video file from avi to mp4 format:<\/p>\n\n\n\n Creating a video from many images:<\/p>\n\n\n\n Extracting images from a video:<\/p>\n\n\n\n Grab video from specified device and input:<\/p>\n\n\n\n For an extensive and in-depth guide on how to use FFmpeg on Ubuntu and other systems, you can check out the official documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" Here you will see how easy it is to install and use FFmpeg on Ubuntu 20.04 or Debian 10 and earlier to perform a variety of tasks on audio and…<\/p>\n","protected":false},"author":1,"featured_media":9377,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,28,16,18],"tags":[76,164,183,354,424,433,449,598,615],"yoast_head":"\n$ sudo apt update\n$ sudo apt upgrade<\/code><\/pre>\n\n\n\n
We can now Install FFmpeg on Ubuntu 20.04 or Debian 10<\/h2>\n\n\n\n
$ sudo apt install ffmpeg<\/code><\/pre>\n\n\n\n
$ ffmpeg -version<\/code><\/pre>\n\n\n\n
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers\nbuilt with gcc 9 (Ubuntu 9.3.0-10ubuntu2)<\/code><\/pre>\n\n\n\n
Some Examples<\/h2>\n\n\n\n
$ ffmpeg -i infile.avi outfile.mp4<\/code><\/pre>\n\n\n\n
$ ffmpeg -f image2 -framerate 12 -i foo-%03d.jpeg -s WxH foo.avi<\/code><\/pre>\n\n\n\n
$ ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg<\/code><\/pre>\n\n\n\n
$ ffmpeg -f oss -i \/dev\/dsp -f video4linux2 -i \/dev\/video0 \/tmp\/out.mpg<\/code><\/pre>\n\n\n\n