
{"id":7254,"date":"2017-10-20T17:50:23","date_gmt":"2017-10-20T17:50:23","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=7254"},"modified":"2021-09-22T15:00:18","modified_gmt":"2021-09-22T15:00:18","slug":"install-media-codecs-ubuntu-17-10","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2017\/10\/install-media-codecs-ubuntu-17-10\/","title":{"rendered":"Quick Tip: How to Install Media Codecs in Ubuntu 21.10 Impish Idri"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/kid3-icon1200.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/kid3-icon.png\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-34054\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/kid3-icon.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/kid3-icon-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Due to legal reasons, Ubuntu does NOT include multi-media codecs out-of-the-box for audio and video playback. It&#8217;s however easy to install them via a single command.<\/p>\n<p>During the Ubuntu installing process, it provides an option &#8220;<i>Install third party software for graphics and Wi-Fi hardware and additional media formats<\/i>&#8221; in the wizard. If you didn&#8217;t enable it, Ubuntu refuses to play movie and sound via the default Totem media player and Rhythmbox music player.<\/p>\n<p>Without installing third-party player with bundled codecs, you can simply install the <b>ubuntu-restricted-extras<\/b> package to fix the issue. The package does not contain anything, but tells to install the following packages for you:<\/p>\n<ul>\n<li><code>ttf-mscorefonts-installer<\/code> &#8211; Install Microsoft TrueType core fonts.<\/li>\n<li><code>unrar<\/code> &#8211; non-free package enables ability to extract rar package in Ubuntu.<\/li>\n<li><code>libavcodec-extra<\/code> &#8211; FFmpeg library with encoder \/ decoder for audio and video codecs.<\/li>\n<li><code>chromium-codecs-ffmpeg-extra<\/code> &#8211; FFmpeg codecs for Chromium based web browser.<\/li>\n<li>And a few gstreamer1.0 plugins for audio \/ video playback, recording and editing.<\/li>\n<\/ul>\n<h3>How to Install Media Codecs in Ubuntu:<\/h3>\n<p>Firstly, open a terminal window either by searching from the &#8216;<i>Activities<\/i>&#8216; overview screen or by pressing Ctrl+Alt+T on keyboard.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/08\/open-gnometerminal.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/08\/open-gnometerminal.jpg\" alt=\"\" width=\"600\" height=\"270\" class=\"aligncenter size-full wp-image-34389\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/08\/open-gnometerminal.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/08\/open-gnometerminal-300x135.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>When terminal opens, copy and paste the command below into it and hit Enter:<\/p>\n<pre>sudo apt update && sudo apt install ubuntu-restricted-extras<\/pre>\n<p><i>Type your password (no visual feedback for security reason) when it prompts and hit Enter<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/apt-codecs.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/apt-codecs.png\" alt=\"\" width=\"600\" height=\"292\" class=\"aligncenter size-full wp-image-34667\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/apt-codecs.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/apt-codecs-300x146.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For Ubuntu flavors, e.g, KUbuntu, and LUbuntu, there are relevant package to install the commonly used media codecs and fonts.<\/p>\n<p>For KUbuntu users, open terminal emulator from start menu and run the command below instead:<\/p>\n<pre>sudo apt update && sudo install kubuntu-restricted-extras<\/pre>\n<p>And for LUbuntu, open terminal from start menu and run the command:<\/p>\n<pre>sudo apt update && sudo install lubuntu-restricted-extras<\/pre>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Due to legal reasons, Ubuntu does NOT include multi-media codecs out-of-the-box for audio and video playback. It&#8217;s however easy to install them via a single command. During the Ubuntu installing process, it provides an option &#8220;Install third party software for graphics and Wi-Fi hardware and additional media formats&#8221; in the wizard. If you didn&#8217;t enable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34666,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1463,1506],"class_list":["post-7254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-audio-codec","tag-media-codec"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=7254"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34666"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=7254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=7254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=7254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}