Skip to content

Commit 64b66d3

Browse files
jacobgkaumrvictory1leviport
authored
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 <levi@system76.com>
1 parent 6c89739 commit 64b66d3

File tree

1 file changed

+38
-15
lines changed

1 file changed

+38
-15
lines changed

content/codecs.md

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,50 +28,73 @@ Proprietary multimedia formats, such as MP3 files and DVD decoders, aren't inclu
2828

2929
## Open A Terminal
3030

31-
Press the Super Key <kbd><font-awesome-icon :icon="['fab', 'ubuntu']"></font-awesome-icon></kbd>, and type the word *terminal*, then press <kbd>Enter</kbd>. A <u>Terminal</u> window should open up.
31+
Press the Super key <kbd><font-awesome-icon :icon="['fab', 'ubuntu']"></font-awesome-icon></kbd> and type the word *terminal*, then press <kbd>Enter</kbd>. A <u>Terminal</u> window should open up.
3232

3333
## Install Packages
3434

35-
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 <kbd>Enter</kbd>:
35+
The commands below can be used to install various sets of packages. To paste into the terminal, use the "Edit" Menu, or press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd>.
36+
37+
You may be prompted for your `[sudo] password`. If so, type in your regular login/user password, then press <kbd>Enter</kbd> again. You will not see characters appear while you're typing the password.
38+
39+
Please note that packages listed with "bad" or "ugly" in the names below are not harmful to your system.
40+
41+
- Plugins marked "ugly" may not be legal to install in all juristictions due to copyright and patent law.
42+
- Plugins marked "bad" do not receive as many development resources from the GStreamer project, but are still supported in Pop!\_OS and Ubuntu.
43+
44+
### Install all available formats
45+
46+
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 <kbd>Enter</kbd>:
3647

3748
```
38-
sudo apt install -y ubuntu-restricted-extras
49+
sudo apt install -y ubuntu-restricted-extras gstreamer1.0-plugins-bad
3950
```
4051

41-
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.
52+
If you receive a prompt titled `Configuring ttf-mscorefonts-installer`, press `Tab` to select the `<Ok>` item, then press `Enter`. Next, use `Tab` again to select the `<Yes>` option to agree to the EULA, then press `Enter` again.
53+
54+
### Install only some formats
55+
56+
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.
4257

43-
Copy and paste the following line for Ubuntu/Pop!\_OS 18.04 and below, followed by <kbd>Enter</kbd>:
58+
For Ubuntu/Pop!\_OS **20.04 and above,** copy and paste the following line, followed by <kbd>Enter</kbd>:
4459

4560
```
46-
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
61+
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
4762
```
4863

49-
Copy and paste the following line for Ubuntu/Pop!\_OS 20.04 and above, followed by <kbd>Enter</kbd>:
64+
For Ubuntu/Pop!\_OS **18.04 and below,** copy and paste the following line, followed by <kbd>Enter</kbd>:
5065

5166
```
52-
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
67+
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
5368
```
5469

55-
To paste into the terminal, use the "Edit" Menu, or press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd>
70+
## Set up DVD Playback (optional)
5671

57-
You may be prompted for your `[sudo] password`. If so, type in your regular login/user password, then press <kbd>Enter</kbd> again. You should see several lines of output in the terminal. The command may take a few minutes to complete.
72+
Once you see the command above has finished, enter the following command to additionally install and enable DVD playback:
5873

59-
## Setup DVD Playback (optional)
74+
```
75+
sudo apt install -y libdvd-pkg
76+
```
6077

61-
Once you see the command above has finished, enter in the following command to enable DVD playback:
78+
When you see the `Configuring libdvd-pkg` prompt, press `Enter` to select the `<Ok>` option, then press `Enter` again to select the `<Yes>` option. After the command has completed, you will also need to initialize the library with the following command:
6279

6380
```
6481
sudo dpkg-reconfigure libdvd-pkg
6582
```
6683

84+
At the prompt, press `Enter` to select `<Yes>`.
85+
6786
## Restart Your Computer
6887

69-
After enabling codec support, it's recommended to restart your computer.
88+
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:
89+
90+
```
91+
sudo systemctl reboot
92+
```
7093

7194
## Useful Programs
7295

73-
The program <u>VLC</u> is a excellent media player with support for DVDs, CDs, and most formats of media files. It can be installed with the the <u>Pop!_Shop</u> in Pop!_OS, in the <u>Software Center</u> in Ubuntu, or with this command:
96+
The program <u>VLC</u> is an excellent media player with support for DVDs, CDs, and most formats of media files. It can be installed with the the <u>Pop!\_Shop</u> in Pop!\_OS, with the <u>Software Center</u> in Ubuntu, or with this command:
7497

7598
```
76-
sudo apt install vlc
99+
sudo apt install -y vlc
77100
```

0 commit comments

Comments
 (0)