Removed dpkg dependency for Widevine extracting

This commit is contained in:
Maksim Ivanov
2021-09-18 20:47:27 +03:00
committed by Ld-Hagen
parent db1616eaeb
commit 009d48f6f2
2 changed files with 15 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# Fix Opera Linux ffmpeg
# Fix Opera Linux ffmpeg & WidevineCdm
* Fix Opera html5 media content.
* 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.
@@ -16,8 +16,8 @@
1. **wget** (Is needed for downloading the ffmpeg lib and Chrome)
```sudo apt install wget```
2. **unzip** (Is needed for unzipping the downloaded file)
```sudo apt install unzip```
2. **unzip**, **binutils** (Is needed for unpacking the downloaded file)
```sudo apt install unzip binutils```
### How use
@@ -66,7 +66,7 @@
7. Delete the repo
```rm -rf ./fix-opera-linux-ffmpeg-widevine```
### Autostart after upgrade
### Autostart after upgrade (Debian-based distros)
1. Clone this repo
@@ -92,6 +92,10 @@
```sudo ln -s /root/.scripts/99fix-opera /etc/apt/apt.conf.d/```
7. Delete the repo
7. (Optional) Create an **alias**
```echo "alias fix-opera='sudo /root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc```
8. Delete the repo
```rm -rf ./fix-opera-linux-ffmpeg-widevine```

View File

@@ -51,11 +51,14 @@ if $FIX_WIDEVINE
rm -rf "$OPERA_FOLDER/lib_extra"
mkdir "$OPERA_FOLDER/lib_extra"
printf "\nDownloading Google Chrome ...\n"
wget -P "$TEMP_FOLDER" "$CHROME_DL_LINK"
mkdir "$TEMP_FOLDER/chrome"
cd "$TEMP_FOLDER/chrome"
wget "$CHROME_DL_LINK"
printf "\nExtracting Chrome to temporary folder ...\n"
CHROME_PKG_NAME=`basename $CHROME_DL_LINK`
dpkg -x "$TEMP_FOLDER/$CHROME_PKG_NAME" "$TEMP_FOLDER/chrome"
ar x "$CHROME_PKG_NAME"
tar xf data.tar.xz
printf "\nInstalling WidevineCdm ...\n"
cp -R "$TEMP_FOLDER/chrome/opt/google/chrome/WidevineCdm" "$OPERA_FOLDER/lib_extra/"
@@ -63,7 +66,6 @@ if $FIX_WIDEVINE
printf "\nDeleting temprorary files ...\n"
rm -rf "$TEMP_FOLDER/chrome"
rm "$TEMP_FOLDER/$CHROME_PKG_NAME"
else
printf "\nInstalling WidevineCdm skipped\n"
fi