2.7 KiB
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.
Index
Requirements
-
wget (Is needed for downloading the ffmpeg lib and Chrome)
sudo apt install wget -
unzip, binutils (Is needed for unpacking the downloaded file)
sudo apt install unzip binutils
How use
-
Clone this repo
git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git -
Go to the repo root folder
cd ./fix-opera-linux-ffmpeg-widevine -
Give execute permissions to the script file
chmod +x ./fix-opera.sh -
Execute the script using sudo (Is needed for put the ffmpeg lib into the opera instalation folder)
sudo ./fix-opera.sh
Create an alias
-
Clone this repo
git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git -
Create a script folder on your home
mkdir ~/.scripts -
Copy the script into the script folder
cp ./fix-opera-linux-ffmpeg-widevine/fix-opera.sh ~/.scripts -
Give execute permissions to the script file
chmod +x ~/.scripts/fix-opera.sh -
Create an alias on the .bashrc file (Remember replace <YOUR_USER> for your linux user)
echo "alias fix-opera='sudo /home/<YOUR_USER>/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc -
Update .bashrc file
source ~/.bashrc -
Delete the repo
rm -rf ./fix-opera-linux-ffmpeg-widevine
Autostart after upgrade (Debian-based distros)
-
Clone this repo
git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git -
Create a script folder on /root
sudo mkdir /root/.scripts -
Copy the script into the script folder
sudo cp ./fix-opera-linux-ffmpeg-widevine/fix-opera.sh /root/.scripts -
Give execute permissions to the script file
sudo chmod +x /root/.scripts/fix-opera.sh -
Copy apt config file into the script folder
sudo cp ./fix-opera-linux-ffmpeg-widevine/99fix-opera /root/.scripts -
Create symlink
sudo ln -s /root/.scripts/99fix-opera /etc/apt/apt.conf.d/ -
(Optional) Create an alias
echo "alias fix-opera='sudo /root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc -
Delete the repo
rm -rf ./fix-opera-linux-ffmpeg-widevine