{"id":10750,"date":"2021-10-05T08:14:50","date_gmt":"2021-10-05T08:14:50","guid":{"rendered":"https:\/\/linuxways.net\/?p=10750"},"modified":"2021-10-05T08:14:50","modified_gmt":"2021-10-05T08:14:50","slug":"how-to-install-and-use-ffmpeg-on-debian-11","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-and-use-ffmpeg-on-debian-11\/","title":{"rendered":"How to Install and Use FFmpeg on Debian 11"},"content":{"rendered":"<p><strong>FFmpeg<\/strong> is an open-source, freely available multimedia framework, used to encode, decode, mux, demux, transcode, filter, stream and play all multimedia files that have been built on any media platform. You can compile and execute FFmpeg on any type of operating distribution such as Microsoft Windows, Linux, Mac OS, Solaris, and BSD systems. It offers different amazing features that we will implement in this article.<\/p>\n<p>This article will describe how to<strong> install and use the FFmpeg multimedia framework on Debian 11 bullseye distribution<\/strong>.\u00a0Let us start the implementation.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<ul>\n<li>The Debian 11 bullseye distribution should be installed on your system.<\/li>\n<li>You need to log in with a user who has root or sudo privileges.<\/li>\n<\/ul>\n<h2><strong>Installation of FFmpeg on Debian 11 Bullseye<\/strong><\/h2>\n<p>By following the below-provided steps, you can install the FFmpeg framework on Debian 11 system:<\/p>\n<h3><strong>Step 1: Update and Upgrade the list of the Debian packages<\/strong><\/h3>\n<p>Open the command line window by searching the \u2018Terminal\u2019 application in the search bar. Before starting the installation of FFmpeg, it is recommended to update and upgrade the system apt cache by running the below-mentioned command:<\/p>\n<pre>$ sudo apt update &amp;&amp; sudo apt upgrade<\/pre>\n<h3><strong>Step 2: Install FFmpeg on Debian 11<\/strong><\/h3>\n<p>FFmpeg multimedia framework is available for installation in the official Debian repository. You can install this framework using the apt package manager on your system as follows:<\/p>\n<pre>$ sudo apt install ffmpeg<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"688\" class=\"wp-image-10751\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-11.png 920w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-11-300x224.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-11-768x574.png 768w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/p>\n<p>Press \u2018y\u2019 and then hit \u2018Enter\u2019 to continue the installation process. In a while, you will see that the installation of FFmpeg has been completed on your Debian 11 system.<\/p>\n<h3><strong>Step 3: Verify FFmpeg installation<\/strong><\/h3>\n<p>Once the installation is finished, you can check the installed FFmpeg version by issuing the following command:<\/p>\n<pre>$ ffmpeg -version<\/pre>\n<p>The installed FFmpeg version should display on the terminal as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"915\" height=\"69\" class=\"wp-image-10752\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-12.png 915w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-12-300x23.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-12-768x58.png 768w\" sizes=\"auto, (max-width: 915px) 100vw, 915px\" \/><\/p>\n<h2><strong>How to use the FFmpeg framework on Debian 11?<\/strong><\/h2>\n<p>We will explore in this section some useful FFmpeg commands. The basic syntax of the primary FFmpeg command usage is given below:<\/p>\n<pre>ffmpeg [global_options] {[input_file_options] -i input_url} \u2026{[output_file_options] output_url} \u2026<\/pre>\n<h2><strong>Basic examples for using FFmpeg framework<\/strong><\/h2>\n<p>Using FFmpeg, you can easily extract the audio or mp3 file from the mp4 video. The below-given syntax will use to extract the audio from the video file:<\/p>\n<pre>$ ffmpeg -i your-video.mp4 -vn audio.mp3<\/pre>\n<p>For example, we want to extract the audio from the sample_video.mp4 file. therefore, by running the following command you can perform this task:<\/p>\n<pre>$ ffmpeg -i sample_video.mp4 -vn new_audio.mp3<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"46\" class=\"wp-image-10753\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-13.png 917w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-13-300x15.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-13-768x39.png 768w\" sizes=\"auto, (max-width: 917px) 100vw, 917px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"69\" class=\"wp-image-10754\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-14.png 929w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-14-300x22.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-14-768x57.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/p>\n<p>You will see the new mp3 file will be created in the current directory as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"706\" class=\"wp-image-10755\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-15.png 996w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-15-300x213.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-15-768x544.png 768w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/p>\n<p>Similarly, you can also convert the video.mp4 file to webm file by using the following command:<\/p>\n<pre>$ ffmpeg -i existing_videofile.mp4 new_file.webm<\/pre>\n<p>To explore more options and features about FFmpeg, you can get help using the following command:<\/p>\n<pre>$ ffmpeg -h<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"913\" height=\"590\" class=\"wp-image-10756\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-16.png 913w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-16-300x194.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-16-768x496.png 768w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/p>\n<p>To display all supported formats, available encoder and decoders use the following commands:<\/p>\n<pre>$ ffmpeg -formats<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"581\" class=\"wp-image-10757\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-17.png 922w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-17-300x189.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-17-768x484.png 768w\" sizes=\"auto, (max-width: 922px) 100vw, 922px\" \/><\/p>\n<pre>$ ffmpeg -encoders<\/pre>\n<pre>$ ffmpeg \u2013decoders<\/pre>\n<h2><strong>Uninstall FFmpeg from Debian 11 bullseye<\/strong><\/h2>\n<p>To uninstall the FFmpeg framework, issue the below-mentioned command:<\/p>\n<pre>$ sudo apt purge \u2013remove ffmpeg<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"913\" height=\"300\" class=\"wp-image-10758\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-18.png 913w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-18-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-18-768x252.png 768w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>You learned in this article how to install and use the FFmpeg multimedia framework on Debian 11 bullseye distribution. We explored different options and useful FFmpeg commands for audio extraction from mp4 files. This is a lightweight and simple program. So, After installing the FFmpeg framework on your system, I hope you will never face any problem with file conversion.<\/p>","protected":false},"excerpt":{"rendered":"<p>FFmpeg is an open-source, freely available multimedia framework, used to encode, decode, mux, demux, transcode, filter, stream and play all multimedia files that have been built on any&hellip;<\/p>","protected":false},"author":1,"featured_media":10925,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[521,8],"class_list":["post-10750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-11","tag-ffmpeg"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=10750"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10750\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/10925"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=10750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=10750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=10750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}