From 64b66d3e47446c0e8393c8ad5fbf75e188821fb9 Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Tue, 20 Aug 2024 09:18:34 -0600 Subject: [PATCH] Codecs update (#1247) * Install libdvd-pkg * codecs: Make command instructions consistent & include TUI prompt info --------- Co-authored-by: mrvictory1 <108172910+mrvictory1@users.noreply.github.com> Co-authored-by: Levi Portenier --- content/codecs.md | 53 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/content/codecs.md b/content/codecs.md index 65c88d4fbf..b378a4d81d 100644 --- a/content/codecs.md +++ b/content/codecs.md @@ -28,50 +28,73 @@ Proprietary multimedia formats, such as MP3 files and DVD decoders, aren't inclu ## Open A Terminal -Press the Super Key , and type the word *terminal*, then press Enter. A Terminal window should open up. +Press the Super key and type the word *terminal*, then press Enter. A Terminal window should open up. ## Install Packages -Ubuntu and Pop!\_OS both have a package available which will install all available proprietary media codecs. Because of legal restrictions, this package cannot be installed automatically, but if you live in a territory where it is legal to do so, you can copy and paste the following line, followed by Enter: +The commands below can be used to install various sets of packages. To paste into the terminal, use the "Edit" Menu, or press Ctrl+Shift+V. + +You may be prompted for your `[sudo] password`. If so, type in your regular login/user password, then press Enter again. You will not see characters appear while you're typing the password. + +Please note that packages listed with "bad" or "ugly" in the names below are not harmful to your system. + +- Plugins marked "ugly" may not be legal to install in all juristictions due to copyright and patent law. +- Plugins marked "bad" do not receive as many development resources from the GStreamer project, but are still supported in Pop!\_OS and Ubuntu. + +### Install all available formats + +Ubuntu and Pop!\_OS both have a package available which will install most available proprietary media codecs. Because of legal restrictions, this package cannot be installed automatically, but if you live in a territory where it is legal to do so, you can copy and paste the following line, followed by Enter: ``` -sudo apt install -y ubuntu-restricted-extras +sudo apt install -y ubuntu-restricted-extras gstreamer1.0-plugins-bad ``` -If it is not legal for you to do so, or if you only want the minimum required codecs, you may do so manually. Please note that packages listed with "bad" in the names below are not harmful to your system, they are listed as "bad" in the system software repositories due to the non-free (as in libre) nature of the code within the packages. +If you receive a prompt titled `Configuring ttf-mscorefonts-installer`, press `Tab` to select the `` item, then press `Enter`. Next, use `Tab` again to select the `` option to agree to the EULA, then press `Enter` again. + +### Install only some formats + +If it is not legal for you to install all of the formats, or if you only want to install the formats you need, you can use the following manual commands. Remove any unwanted packages from the command before running it. -Copy and paste the following line for Ubuntu/Pop!\_OS 18.04 and below, followed by Enter: +For Ubuntu/Pop!\_OS **20.04 and above,** copy and paste the following line, followed by Enter: ``` -sudo apt install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavcodec-extra gstreamer1.0-libav gstreamer1.0-fluendo-mp3 chromium-codecs-ffmpeg-extra libdvd-pkg +sudo apt install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good libavcodec-extra gstreamer1.0-libav chromium-codecs-ffmpeg-extra ``` -Copy and paste the following line for Ubuntu/Pop!\_OS 20.04 and above, followed by Enter: +For Ubuntu/Pop!\_OS **18.04 and below,** copy and paste the following line, followed by Enter: ``` -sudo apt install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-plugins-good libavcodec-extra gstreamer1.0-libav chromium-codecs-ffmpeg-extra libdvd-pkg +sudo apt install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libavcodec-extra gstreamer1.0-libav gstreamer1.0-fluendo-mp3 chromium-codecs-ffmpeg-extra ``` -To paste into the terminal, use the "Edit" Menu, or press Ctrl+Shift+V +## Set up DVD Playback (optional) -You may be prompted for your `[sudo] password`. If so, type in your regular login/user password, then press Enter again. You should see several lines of output in the terminal. The command may take a few minutes to complete. +Once you see the command above has finished, enter the following command to additionally install and enable DVD playback: -## Setup DVD Playback (optional) +``` +sudo apt install -y libdvd-pkg +``` -Once you see the command above has finished, enter in the following command to enable DVD playback: +When you see the `Configuring libdvd-pkg` prompt, press `Enter` to select the `` option, then press `Enter` again to select the `` option. After the command has completed, you will also need to initialize the library with the following command: ``` sudo dpkg-reconfigure libdvd-pkg ``` +At the prompt, press `Enter` to select ``. + ## Restart Your Computer -After enabling codec support, it's recommended to restart your computer. +After enabling codec support, it's recommended to restart your computer so any running software can load in the new codecs. You can do this with the top-right menu, or with the following command after saving and closing any other work: + +``` +sudo systemctl reboot +``` ## Useful Programs -The program VLC is a excellent media player with support for DVDs, CDs, and most formats of media files. It can be installed with the the Pop!_Shop in Pop!_OS, in the Software Center in Ubuntu, or with this command: +The program VLC is an excellent media player with support for DVDs, CDs, and most formats of media files. It can be installed with the the Pop!\_Shop in Pop!\_OS, with the Software Center in Ubuntu, or with this command: ``` -sudo apt install vlc +sudo apt install -y vlc ```