Devine On Win v0.02
--------------------------------
Win 11 - CMD Prompt Instructions
--------------------------------
https://github.com/devine-dl/devine
################################
[1] #Run "Command Prompt" press:
################################
Win + R:
cmd
##########################################################
[2] #Go to "User" profile that you are are logged in with:
##########################################################
(When opening up CMD Promtp, you should be in the "path" but included just in case ...)
cd %userprofile%
#####################################################
[3] #Create a "bin" DIR to store/upgrade *.exe files:
#####################################################
mkdir bin
#The path should be:
%userprofile%\bin
C:\Users\YOURwindows-userNAME\bin
YOURwindows-userNAME = Username that you use on your PC to log in to Windows.
#############################################
[4] #Create a "git" DIR to store GIT projects
#############################################
mkdir git
#The path should be:
%userprofile%\git
C:\Users\YOURwindows-userNAME\git
YOURwindows-userNAME = Username that you use on your PC to log in to Windows.
################
[5] Install Git
#################
#Install/Upgrade "GIT"
winget search "Git"
winget install --id Git.Git
[The installer will request to run as administrator, expect a prompt.]
(May have to confirm "Yes" on "User Account Control" prompt)
("git" command will be in the path after reboot/close-open the CMD promtp)
#Upgrade/Uninstall
winget upgrade --id Git.Git
winget uninstall --id Git.Git
#Interactive Installation
winget install -i Git.Git
##########################################
[6] Installing Dependencies using "WinGet"
##########################################
--------
#FFMpeg
winget install --id Gyan.FFmpeg
-------
#aria2
winget install --id aria2.aria2
------------------------
#GNU.Nano (If not installed - to edit files in CMD)
winget install --id GNU.Nano
-------------
#Python.3.12
winget list --source "python"
where python
winget search "python"
winget search Python.Python
winget install -i Python.Python.3.12
(Setup window will pop up, so yo can confirm - Add python to PATH is ticked)
[The installer will request to run as administrator, expect a prompt.]
(May have to confirm "Yes" on "User Account Control" prompt)
("py" command will be in the path after reboot/close-open the CMD promtp)
#or
winget install --id Python.Python.3.12
(Silent install - with default options - no PATH etc.)
#Upgrade PIP
py -m pip install --upgrade pip
python -m pip install --upgrade pip
python.exe -m pip install --upgrade pip
#Notes for Python
py -3 -m ensurepip
pip install httpie
python -m pip install --upgrade packageXYZ
python -m pip install -U pip
----------------------
#Install Virtual ENV
https://pypi.org/project/virtualenv/
https://virtualenv.pypa.io/en/latest/user_guide.html
pip install virtualenv
virtualenv venv
------------
#MKVToolNix
winget install --id MoritzBunkus.MKVToolNix
(May have to confirm "Yes" on "User Account Control" prompt)
(It's nessecery to add the "BIN" DIR to Windows PATH = "Environment variables"), see below on How-To. [8]
###################################################################
[7] Downloding/Installing Dependencies using "Installer - exe/msi"
###################################################################
-------------
#CCExtractor
https://github.com/CCExtractor/ccextractor/releases
aria2c https://github.com/CCExtractor/ccextractor/releases/download/v0.94/CCExtractor.msi --dir %userprofile%\Downloads\ -o CCExtractor-v0.94.msi
(We should really check the files hash ....but .......)
msiexec /i "%userprofile%\Downloads\CCExtractor-v0.94.msi"
(May have to confirm "Yes" on "User Account Control" prompt, location of instllatioin, etc.)
(It's nessecery to add the "BIN" DIR to Windows PATH = "Environment variables"), see below on How-To. [8]
----------------
#Shaka-Packager
https://github.com/shaka-project/shaka-packager/releases/latest
https://ccextractor.org/public/general/command_line_usage/
aria2c https://github.com/shaka-project/shaka-packager/releases/download/v3.0.4/packager-win-x64.exe --dir %userprofile%\bin\ -o shaka-packager.exe
(It's nessecery to add the "BIN" DIR to Windows PATH = "Environment variables"), see below on How-To [8]
Be sure that EXE files placed in this Directory is/are from reputable source)!
----------------
#Hola-Proxy
https://github.com/Snawoot/hola-proxy/releases/latest
aria2c https://github.com/Snawoot/hola-proxy/releases/download/v1.13.1/hola-proxy.windows-amd64.exe --dir %userprofile%\bin\ -o hola-proxy.exe
(It's nessecery to add the "BIN" DIR to Windows PATH = "Environment variables"), see below on How-To [8]
Be sure that EXE files placed in this Directory is/are from reputable source)!
####################################################################
[8] Adding Shaka-Packager / CCExtractor / MKVToolNix to Windows PATH
####################################################################
CMD line wouldbe better, so if anyone knows how to do it from CMD,
please let us know.
Win + Edit the system environment variables
Open
Click the “Environment variables” button.
- Select - "System variables" ........bottom part
-- Click on "Path" (when highlighted)
-- Click on "Edit" button
-- Click on "NEW" button
-- Insert the full path without the quotes "C:\Users\xxxx\bin"
xxxx = Is your Windows "username".
-- Click on "NEW" button
-- Insert the full path without the quotes "c:\Program Files (x86)\CCExtractor\"
-- Click on "NEW" button
-- Insert the full path without the quotes "c:\Program Files\MKVToolNix\"
-- OK
-- OK
-- OK
(Alternative ways to get the "Environment variables"):
Win + R:
SystemPropertiesAdvanced
Win + R:
rundll32.exe sysdm.cpl,EditEnvironmentVariables
REBOOT = Windows ....(just in case).
###########################
[9] Download Devine "stabbedbybrick" Scripts
###########################
cd %userprofile%\git
git clone https://cdm-project.com/stabbedbybrick/devine-services
cd devine-services
dir
#To update/upgrade the "stabbedbybrick" Scripts
cd %userprofile%\git\devine-services
git pull
####################################
10 Devine Install (and Virtual ENV).
####################################
cd %userprofile%\git\devine-services
#Install the "Virtual ENV" in the current DIR
py -m venv env
#or
python3 -m venv env
#Activate the "Virtual ENV" for the current DIR
.\env\Scripts\activate
#Deactivate (when you finished, etc. or just close the CMD prompt)
deactivate
#Install Devine
pip install devine
pip search devine
pip show devine
pip index versions devine
pip install devine==
#Upgrade Devine
pip install devine --upgrade
#check:
devine -v
#see the help:
devine --help
#check ENV info:
devine env info
################################################
[11] Now let's check that all tools are working:
################################################
#Our "BIN" DIR is in place and we have Shaka-Packager/Hola-Proxy inside:
dir %userprofile%\bin
#Our "GIT" DIR is in place:
dir %userprofile%\git
#Git is installed and in the path::
git -v
#MKVToolNix is installed and in the path: !!!
mkvextract --version
mkvmerge --version
#FFMpeg is installed and in the path:
ffmpeg -version
#aria2 is installed and in the path:
aria2c --version
#GNU.Nano is installed and in the path:
nano -V
#Python.3.12 is installed and in the path:
py -V
pip -V
py -m pip
#Python Virtual ENV is installed
virtualenv venv
#CCExtractor is installed and in the path:
ccextractorwinfull --version
#Shaka-Packager "exe" is in the path:
shaka-packager -version
#Hola-Proxy "exe" is in the path:
hola-proxy --version
hola-proxy -list-countries
#########################################
[11] Import your WVD's into the "Devine" ENV:
#########################################
devine wvd --help
devine wvd add *.wvd
# Import WVD into "Devine" - "%userprofile%\WVD\" = "C:\Users\user\WVD\"
# Adjust the path accordingly
# Devine will delete all the imported *.wvd from the "source" DIR
devine wvd add %userprofile%\WVD\*.wvd
#check ENV info:
devine env info
#List all the "*.wvd" files
dir %userprofile%\AppData\Local\devine\WVDs
devine wvd parse xxxxxxxx_l3.wvd
devine wvd parse %userprofile%\AppData\Local\devine\WVDs\xxxxxxxx_l3.wvd
############################
[12] Edit your "devine.yaml"
############################
https://forum.videohelp.com/attachment.php?attachmentid=78191
#check ENV info for the correct PATH:
devine env info
notepad %userprofile%\AppData\Local\devine\devine.yaml
nano %userprofile%\AppData\Local\devine\devine.yaml
directories:
#Edit the proper PATH
services: C:\Users\xxxx\git\devine-services\services\
#binaries: C:\Users\xxxx\bin
cdm:
default: xxxxxxx4_l3
#NF: xxxxxxxx_l3
#AMZN: chromecdm_903_l3
#NF: nexus_6_l1
#DSNP:
#jane_uhd: nexus_5_l1
#tom_hd: ia_emulator_16.0.0_l3
credentials:
ALL4: email:password
#NF: email:password
#john: john@gmail.com:TheGuyWhoPaysForTheNetflix69420
#paul: john@gmail.com:TheGuyWhoUsesTheNetflix69421
#CTV:
#CBC: email:password
downloader: aria2c
aria2c: prealloc
profiles:
default: default
############################
[13] Downloading
############################
devine dl -w s17e01 ALL4 taskmaster
devine dl -w s02e01 ROKU 5ca90e5f970d580581f7293ae5dfa7bb
https://www.bbc.co.uk/iplayer/episodes/b007r3n8/would-i-lie-to-you
devine dl iP b007r3n8
https://www.bbc.co.uk/iplayer/episodes/m001w3pw/the-hairy-bikers-go-west
devine dl -w S01E07 iP m001w3pw
############################
[14] New CMD Terminal window
############################
(All the above commands are executed in the following DIR= Directory
on the PC:
cd %userprofile%\git\devine-services
With ENV enabled:
.\env\Scripts\activate
C:\Users\xxx\git\devine-services>ffmpeg -version
ffmpeg version 7.0-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
xxxx = Is your Windows "username".
.............................
Whenever you work with "Devine" and "Devine-Services" from stabbedbybrick:
cd %userprofile%\git\devine-services
Activate the Virtual ENV:
.\env\Scripts\activate
#Check all working:
devine -v
(env) C:\Users\user\git\devine-services>devine -v
/ __ \/ ____/ | / / _/ | / / ____/
/ / / / __/ | | / // // |/ / __/
/ /_/ / /___ | |/ // // /| / /___
/_____/_____/ |___/___/_/ |_/_____/
⠀
v3.3.1 Copyright © 2019-2024 rlaphoenix
https://github.com/devine-dl/devine
(If you have an OLD version of Python installed .......)
(env) C:\Users\xxxx\git\devine-services>devine -v
2024-04-08 16:03:57 [I] root : Devine version 1.2.0 Copyright (c) 2019-2024 rlaphoenix
2024-04-08 16:03:57 [I] root : Convenient Widevine-DRM Downloader and Decrypter.
2024-04-08 16:03:57 [I] root : https://github.com/devine-dl/devine