SlideShare a Scribd company logo
1 of 9
Download to read offline
FFMPEG ON
UBUNTU
21.04 LINUX
Install and use on
Ubuntu Operating system
Prepared by: Satish Kumar
Founder, LinuxConcept
LINUXCONCEPT
LINUXCONCEPT
LINUXCONCEPT
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
A Ubuntu 21.04 Linux installed system or Server.
A non-root user with sudo privileges to add and
configure the repository and install the package.
The FFmpeg is the most potent and useful command-
line tool on Linux system for multimedia files
transcoding. You can use FFmpeg to convert multimedia
files between various video and audio formats and
resize videos. It has multiple audio and video libraries
such as libavcode, libavformat, and libavutil.
In this tutorial, you will learn how to install FFmpeg
into Ubuntu 21.04 Linux operating system. Here we will
also show you how to install FFmpeg stable and latest
version into various Ubuntu distro.
The same instruction you can use any other Ubuntu-
based Linux distribution Operating Systems.
Prerequisites
1.
2.


LINUXCONCEPT
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
INSTALL FFMPEG ON UBUNTU 21.04 LINUX OS
The FFmpeg package comes with Ubuntu default repository so
you can install it by using an apt package manager and this is
also a most comfortable way to install FFmpeg on Ubuntu
21.04 operating system.
The Ubuntu 21.04’s repository coming with FFmpeg 2.x or
FFmpeg 3.x version, but currently FFmpeg is available with 4.x
version also.
Follow below process to install FFmpeg on Ubuntu 21.04
Linux:
Step 01. First, update the package into the system using the
following command:
$ sudo apt update
Step 02: Now, you can install FFmpeg by using the following
command:
$ sudo apt install ffmpeg
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
Step 03: After installation of FFmpeg, you can validate it by
checking the version of FFmpeg as shown below:
$ ffmpeg –version
The output should look something like this:
Output:
ffmpeg version 2.4.14-0ubuntu0.16.04.1 Copyright (c) 2000-
2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
You can also check available FFmpeg’s all encoders and
decoders by using the following command:
$ ffmpeg –encoders
$ ffmpeg –decoders
Now, FFmpeg successfully installed into your Ubuntu 21.04
System or server.
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
INSTALL FFMPEG 4.X ON UBUNTU 21.04
OPERATING SYSTEM
The new version of FFmpeg is 4.x, which is not coming with
Ubuntu default distro.
Here, we will provide step by step process to install FFmpeg
4.x into Ubuntu 21.04 system or server.
The new version of FFmpeg 4.x is coming with various new
filters, encoders and decoders and this is available from the
Jonathon F’s PPA repository, so first, you need to add this
repository into your system before starting the process of
FFmpeg installation.
You can follow below steps to install FFmpeg 4.x on Ubuntu
21.04 Operating System:
Step 01. First, add jonathonf/ffmpeg-4 PPA:
$ sudo add-apt-repository ppa:jonathonf/ffmpeg-4
$ sudo apt-get update
Step 02. After adding the repository, use the apt package
manager to install FFmpeg by using the following command.
$ sudo apt install ffmpeg
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
Step 03. After installation of FFmpeg you can verify it by
using FFmpeg –version command:
$ ffmpeg –version
Output:
ffmpeg version 4.0.3-1~18.04.york0 Copyright (c) 2000-
2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
You will get following output:
Now, FFmpeg 4 installed on your Ubuntu system, and you can
use it.
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
Use of FFmpeg
Here we will explain some of the primary examples of FFmpeg
uses.
Basic Conversion
The good thing with FFmpeg is when you are going to convert
of video or audio file from one format to another you no need
to specify input or output format, It will automatically detect
input file format, and for the output format, it will take from
the file name extension.
Example 1 – Convert a video file from mp4 to webm:
$ ffmpeg –I input.mp4 output.webm
Example 2 – Convert an audio file from mp3 to ogg:
$ ffmpeg –I input.mp3 output.ogg
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
Specifying codecs
You can specify the codecs at the time of file conversion using
FFmpeg using –c option. It can be the name of supported
encoder/decoder or a unique value copy which simply copies
the input stream.
Example 1 – you can convert a video file from mp4 format to
webm using video codec “libvpx” and audio codec “libvorbis”
using following command:
$ ffmpeg –I input.mp4 –c:v libvpx –c:a libvorbis
output.webm
Example 2 – You can convert an audio file from mp3 format to
ogg encoded with the codec “libopus”.
$ ffmpeg –I input.mp3 –c:a libopus output.ogg
Conclusion
Now, you are ready to install FFmpeg on Ubuntu 21.04 and
any other Ubuntu-based Linux distribution. You can also visit
the FFmpeg official documentation page and learn more about
FFmpeg uses.
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
LINUXCONCEPT
THANK YOU
You can check our website https://linuxconcept.com for
more similar information on Linux or opensource
technologies.
https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/

More Related Content

Similar to F fmpeg on ubuntu 21.04 linux

Inptools Manual
Inptools ManualInptools Manual
Inptools ManualMawar 99
 
MacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuideMacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuideMacVide
 
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ..."Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...Edge AI and Vision Alliance
 
Ubuntu Core 技术详解
Ubuntu Core 技术详解Ubuntu Core 技术详解
Ubuntu Core 技术详解Rex Tsai
 
Server configuration
Server configurationServer configuration
Server configurationAisha Talat
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal BootloaderSatpal Parmar
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with ComposerJason Grimes
 
Software evolution analysis of ubuntu operating system
Software evolution analysis of ubuntu operating systemSoftware evolution analysis of ubuntu operating system
Software evolution analysis of ubuntu operating systemArpita Naik
 
Introducing composer - a php dependency manager
Introducing composer  - a php dependency managerIntroducing composer  - a php dependency manager
Introducing composer - a php dependency managerDigvijay Tiwari
 
TinyOS installation Guide And Manual
TinyOS installation Guide And ManualTinyOS installation Guide And Manual
TinyOS installation Guide And ManualAnkit Singh
 
Don't Fear the Autotools
Don't Fear the AutotoolsDon't Fear the Autotools
Don't Fear the AutotoolsScott Garman
 
Research on Audio and Video Streaming
Research on Audio and Video StreamingResearch on Audio and Video Streaming
Research on Audio and Video StreamingNyros Technologies
 
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.All Things Open
 

Similar to F fmpeg on ubuntu 21.04 linux (20)

Inptools Manual
Inptools ManualInptools Manual
Inptools Manual
 
Debug with termi nal r 2
Debug with termi nal  r 2Debug with termi nal  r 2
Debug with termi nal r 2
 
MacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuideMacVide FlashVideo Converter UserGuide
MacVide FlashVideo Converter UserGuide
 
HPC_MPI_CICD.pptx
HPC_MPI_CICD.pptxHPC_MPI_CICD.pptx
HPC_MPI_CICD.pptx
 
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ..."Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
"Building Complete Embedded Vision Systems on Linux—From Camera to Display," ...
 
Fltk tutorial
Fltk tutorialFltk tutorial
Fltk tutorial
 
Flatpak
FlatpakFlatpak
Flatpak
 
Backtrack Manual Part4
Backtrack Manual Part4Backtrack Manual Part4
Backtrack Manual Part4
 
Ubuntu Core 技术详解
Ubuntu Core 技术详解Ubuntu Core 技术详解
Ubuntu Core 技术详解
 
Server configuration
Server configurationServer configuration
Server configuration
 
U Boot or Universal Bootloader
U Boot or Universal BootloaderU Boot or Universal Bootloader
U Boot or Universal Bootloader
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with Composer
 
Software evolution analysis of ubuntu operating system
Software evolution analysis of ubuntu operating systemSoftware evolution analysis of ubuntu operating system
Software evolution analysis of ubuntu operating system
 
Introducing composer - a php dependency manager
Introducing composer  - a php dependency managerIntroducing composer  - a php dependency manager
Introducing composer - a php dependency manager
 
TinyOS installation Guide And Manual
TinyOS installation Guide And ManualTinyOS installation Guide And Manual
TinyOS installation Guide And Manual
 
Don't Fear the Autotools
Don't Fear the AutotoolsDon't Fear the Autotools
Don't Fear the Autotools
 
Linux internals v4
Linux internals v4Linux internals v4
Linux internals v4
 
Research on Audio and Video Streaming
Research on Audio and Video StreamingResearch on Audio and Video Streaming
Research on Audio and Video Streaming
 
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
 
Linux
LinuxLinux
Linux
 

Recently uploaded

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 

F fmpeg on ubuntu 21.04 linux

  • 1. FFMPEG ON UBUNTU 21.04 LINUX Install and use on Ubuntu Operating system Prepared by: Satish Kumar Founder, LinuxConcept LINUXCONCEPT LINUXCONCEPT LINUXCONCEPT https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 2. A Ubuntu 21.04 Linux installed system or Server. A non-root user with sudo privileges to add and configure the repository and install the package. The FFmpeg is the most potent and useful command- line tool on Linux system for multimedia files transcoding. You can use FFmpeg to convert multimedia files between various video and audio formats and resize videos. It has multiple audio and video libraries such as libavcode, libavformat, and libavutil. In this tutorial, you will learn how to install FFmpeg into Ubuntu 21.04 Linux operating system. Here we will also show you how to install FFmpeg stable and latest version into various Ubuntu distro. The same instruction you can use any other Ubuntu- based Linux distribution Operating Systems. Prerequisites 1. 2. LINUXCONCEPT https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 3. LINUXCONCEPT INSTALL FFMPEG ON UBUNTU 21.04 LINUX OS The FFmpeg package comes with Ubuntu default repository so you can install it by using an apt package manager and this is also a most comfortable way to install FFmpeg on Ubuntu 21.04 operating system. The Ubuntu 21.04’s repository coming with FFmpeg 2.x or FFmpeg 3.x version, but currently FFmpeg is available with 4.x version also. Follow below process to install FFmpeg on Ubuntu 21.04 Linux: Step 01. First, update the package into the system using the following command: $ sudo apt update Step 02: Now, you can install FFmpeg by using the following command: $ sudo apt install ffmpeg https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 4. LINUXCONCEPT Step 03: After installation of FFmpeg, you can validate it by checking the version of FFmpeg as shown below: $ ffmpeg –version The output should look something like this: Output: ffmpeg version 2.4.14-0ubuntu0.16.04.1 Copyright (c) 2000- 2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) You can also check available FFmpeg’s all encoders and decoders by using the following command: $ ffmpeg –encoders $ ffmpeg –decoders Now, FFmpeg successfully installed into your Ubuntu 21.04 System or server. https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 5. LINUXCONCEPT INSTALL FFMPEG 4.X ON UBUNTU 21.04 OPERATING SYSTEM The new version of FFmpeg is 4.x, which is not coming with Ubuntu default distro. Here, we will provide step by step process to install FFmpeg 4.x into Ubuntu 21.04 system or server. The new version of FFmpeg 4.x is coming with various new filters, encoders and decoders and this is available from the Jonathon F’s PPA repository, so first, you need to add this repository into your system before starting the process of FFmpeg installation. You can follow below steps to install FFmpeg 4.x on Ubuntu 21.04 Operating System: Step 01. First, add jonathonf/ffmpeg-4 PPA: $ sudo add-apt-repository ppa:jonathonf/ffmpeg-4 $ sudo apt-get update Step 02. After adding the repository, use the apt package manager to install FFmpeg by using the following command. $ sudo apt install ffmpeg https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 6. LINUXCONCEPT Step 03. After installation of FFmpeg you can verify it by using FFmpeg –version command: $ ffmpeg –version Output: ffmpeg version 4.0.3-1~18.04.york0 Copyright (c) 2000- 2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) You will get following output: Now, FFmpeg 4 installed on your Ubuntu system, and you can use it. https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 7. LINUXCONCEPT Use of FFmpeg Here we will explain some of the primary examples of FFmpeg uses. Basic Conversion The good thing with FFmpeg is when you are going to convert of video or audio file from one format to another you no need to specify input or output format, It will automatically detect input file format, and for the output format, it will take from the file name extension. Example 1 – Convert a video file from mp4 to webm: $ ffmpeg –I input.mp4 output.webm Example 2 – Convert an audio file from mp3 to ogg: $ ffmpeg –I input.mp3 output.ogg https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 8. LINUXCONCEPT Specifying codecs You can specify the codecs at the time of file conversion using FFmpeg using –c option. It can be the name of supported encoder/decoder or a unique value copy which simply copies the input stream. Example 1 – you can convert a video file from mp4 format to webm using video codec “libvpx” and audio codec “libvorbis” using following command: $ ffmpeg –I input.mp4 –c:v libvpx –c:a libvorbis output.webm Example 2 – You can convert an audio file from mp3 format to ogg encoded with the codec “libopus”. $ ffmpeg –I input.mp3 –c:a libopus output.ogg Conclusion Now, you are ready to install FFmpeg on Ubuntu 21.04 and any other Ubuntu-based Linux distribution. You can also visit the FFmpeg official documentation page and learn more about FFmpeg uses. https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/
  • 9. LINUXCONCEPT THANK YOU You can check our website https://linuxconcept.com for more similar information on Linux or opensource technologies. https://linuxconcept.com/how-to-install-and-use-ffmpeg-on-ubuntu-21-04-linux-operating-system/