mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
53 lines
1.6 KiB
Markdown
53 lines
1.6 KiB
Markdown
# Fix Opera Linux ffmpeg & WidevineCdm
|
|
|
|
* Fix Opera html5 media content
|
|
* It script must be execute all times opera will fails on showing html5 media content.
|
|
* Now it also fixes WidevineCdm support for DRM video. You can try it on Vevo youtube channel for example.
|
|
|
|
## Requirements
|
|
|
|
1. **wget** (Is needed for downloading the ffmpeg lib and Chrome)
|
|
```sudo apt install wget```
|
|
|
|
2. **unzip**, **binutils** (Is needed for unpacking the downloaded file)
|
|
```sudo apt install unzip binutils```
|
|
|
|
## Usage
|
|
|
|
1. Clone this repo
|
|
|
|
```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git```
|
|
|
|
2. Go to the repo root folder
|
|
|
|
```cd ./fix-opera-linux-ffmpeg-widevine```
|
|
|
|
3. (*Optional*) Now you can simply start the script with superuser rights, but I'd recommend to skip this step and go forward.
|
|
|
|
```sudo ./fix-opera.sh```
|
|
|
|
4. Create a **.scripts** folder on **root**'s **home**
|
|
|
|
```sudo mkdir ~root/.scripts```
|
|
|
|
5. Copy the script into the **.scripts** folder
|
|
|
|
```sudo cp ./fix-opera.sh ~root/.scripts```
|
|
|
|
6. Choose one or both options
|
|
* (*Optional*) Create an **alias**. And then you'll be able to start it by typing ```fix-opera``` command in terminal.
|
|
|
|
```echo "alias fix-opera='sudo ~root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc```
|
|
|
|
```source ~/.bashrc```
|
|
|
|
* (*Optional*) Autostart after each opera upgrade (Debian-based distros)
|
|
|
|
```sudo cp ./99fix-opera ~root/.scripts```
|
|
|
|
```sudo ln -s ~root/.scripts/99fix-opera /etc/apt/apt.conf.d/```
|
|
|
|
8. Delete the repo
|
|
|
|
```cd .. && rm -rf ./fix-opera-linux-ffmpeg-widevine```
|