Devine On Win v0.01
--------------------------------
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 install --id GitHub.cli
winget upgrade --id GitHub.cli
(May have to confirm "Yes" on "User Account Control" prompt)
##########################################
[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
where python
winget search "python"
winget install --id Python.Python.3.12
#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
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)!
####################################################################
[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
#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:
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
#########################################
[11] Import your WVD's into the "Devine" ENV:
#########################################
devine wvd --help
devine wvd add *.wvd
devine wvd add %userprofile%\WVD\*.wvd
devine wvd parse xxxxxxxx_l3.wvd
############################
[12] Edit your "devine.yaml"
############################
https://forum.videohelp.com/attachment.php?attachmentid=78191
notepad %userprofile%\AppData\Local\devine\devine.yaml
nano %userprofile%\AppData\Local\devine\devine.yaml
directories:
services: %userprofile%\git\devine-services
#binaries: %userprofile%\bin
cdm:
default: xxxxxxx4_l3
#NF: xxxxxxxx_l3
#AMZN: chromecdm_903_l3
#NF: nexus_6_l1
#DSNP:
#jane_uhd: nexus_5_l1
#default: chromecdm_903_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
############################
[13] Downloading
############################
devine dl -w s17e01 ALL4 taskmaster
devine dl -w s02e01 ROKU 5ca90e5f970d580581f7293ae5dfa7bb
############################
[14] New CMD Terminal window
############################
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\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