mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
Removed dpkg dependency for Widevine extracting
This commit is contained in:
16
README.md
16
README.md
@@ -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.
|
* 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.
|
* 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)
|
1. **wget** (Is needed for downloading the ffmpeg lib and Chrome)
|
||||||
```sudo apt install wget```
|
```sudo apt install wget```
|
||||||
|
|
||||||
2. **unzip** (Is needed for unzipping the downloaded file)
|
2. **unzip**, **binutils** (Is needed for unpacking the downloaded file)
|
||||||
```sudo apt install unzip```
|
```sudo apt install unzip binutils```
|
||||||
|
|
||||||
### How use
|
### How use
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
7. Delete the repo
|
7. Delete the repo
|
||||||
|
|
||||||
```rm -rf ./fix-opera-linux-ffmpeg-widevine```
|
```rm -rf ./fix-opera-linux-ffmpeg-widevine```
|
||||||
### Autostart after upgrade
|
### Autostart after upgrade (Debian-based distros)
|
||||||
|
|
||||||
1. Clone this repo
|
1. Clone this repo
|
||||||
|
|
||||||
@@ -92,6 +92,10 @@
|
|||||||
|
|
||||||
```sudo ln -s /root/.scripts/99fix-opera /etc/apt/apt.conf.d/```
|
```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```
|
```rm -rf ./fix-opera-linux-ffmpeg-widevine```
|
||||||
|
|||||||
@@ -51,11 +51,14 @@ if $FIX_WIDEVINE
|
|||||||
rm -rf "$OPERA_FOLDER/lib_extra"
|
rm -rf "$OPERA_FOLDER/lib_extra"
|
||||||
mkdir "$OPERA_FOLDER/lib_extra"
|
mkdir "$OPERA_FOLDER/lib_extra"
|
||||||
printf "\nDownloading Google Chrome ...\n"
|
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"
|
printf "\nExtracting Chrome to temporary folder ...\n"
|
||||||
CHROME_PKG_NAME=`basename $CHROME_DL_LINK`
|
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"
|
printf "\nInstalling WidevineCdm ...\n"
|
||||||
cp -R "$TEMP_FOLDER/chrome/opt/google/chrome/WidevineCdm" "$OPERA_FOLDER/lib_extra/"
|
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"
|
printf "\nDeleting temprorary files ...\n"
|
||||||
rm -rf "$TEMP_FOLDER/chrome"
|
rm -rf "$TEMP_FOLDER/chrome"
|
||||||
rm "$TEMP_FOLDER/$CHROME_PKG_NAME"
|
|
||||||
else
|
else
|
||||||
printf "\nInstalling WidevineCdm skipped\n"
|
printf "\nInstalling WidevineCdm skipped\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user