Good morning,
I created a batch file to download the automation or manual video but problem decrypting the video error (see photo)
[Attachment 78117 - Click to enlarge]
[Attachment 78118 - Click to enlarge]
My code batch :
can you tell me where the problem comes from?Code:N_m3u8DL-RE "%MPD%" --key %Keys% -M format=mp4 --save-dir "./Downloads" --save-name "%Noms%"
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
maybe wrong key ?
test it manually. download and decrypt. if all work, issue is on your script. but isn't work, you have get wrong key. simply -
Hello lomero,
I found the solution to my problem while saving the key to a text file with WKS-KEYS, I had saved the key:kid like this to a text file. to decrypt the video with mp4decrypt. you must use KID:KEY to decrypt the video. -
here is my batch cmd in French:
@ECHO OFF
Title Download Video M6 Replay
mode 200,100 & color 0A
if not exist "Downloads" md "Downloads"
if not exist N_m3u8DL-RE.exe goto nothere
goto Name
:nothere
echo Attention il vous manque le executable N_m3u8DL-RE. Veuillez le laisser dans le meme dossier que ce fichier batch
pause
exit
:Name
color A
cls
echo. _____ __ _ _
echo. ^|_ _^| / _^| ^| ^| ^(_^)
echo. ^| ^| _ __ ^| ^|_ ___ _ __ _ __ ___ __ _^| ^|_ _ ___ _ __
echo. ^| ^| ^| '_ \^| _/ _ \^| '__^| '_ ` _ \ / _` ^| __^| ^|/ _ \^| '_ \
echo. _^| ^|_^| ^| ^| ^| ^|^| ^(_^) ^| ^| ^| ^| ^| ^| ^| ^| ^(_^| ^| ^|_^| ^| ^(_^) ^| ^| ^| ^|_ _ _
echo. ^|_____^|_^| ^|_^|_^| \___/^|_^| ^|_^| ^|_^| ^|_^|\__,_^|\__^|_^|\___/^|_^| ^|_^(_^|_^|_^)
echo.
echo.
echo Downloader Video M6 Replay
echo.
echo --------------------------------------------------------------------
echo Caracteres sont interdits dans le nom du fichier : \ / : * ? " < > |
echo --------------------------------------------------------------------
SET /P Noms="Veuillez entrer un noms de la video : "
if "%Noms%" == "" Goto Name
tart
SET /P MPD="Entrer le lien MPD de la video : "
IF "%MPD%" == "" GOTO start
if exist "Key.txt" (
goto Download
) else (
goto key
)
:Key
SET /P Keys="Entrer la cle de decryptage (Kid:Key): "
IF "%Keys%" == "" GOTO Key
cls
ECHO __ _____ ____ _____ ___
echo \ \ / /_ _^| _ \^| ____/ _ \
echo \ \ / / ^| ^|^| ^| ^| ^| _^|^| ^| ^| ^|
echo \ V / ^| ^|^| ^|_^| ^| ^|__^| ^|_^| ^|
echo \_/ ^|___^|____/^|_____\___/
echo.
ECHO Telechargement de la video.
ECHO.
echo la cle decryptage : %Keys%
echo.
echo.
N_m3u8DL-RE -M format=mp4 "%MPD%" --key "%Keys%" --save-dir "./Downloads" --save-name "%Noms%"
color 6
cls
echo ____ ___ __ __ ____ _ _____ _____ _____
echo / ___/ _ \^| \/ ^| _ \^| ^| ^| ____^|_ _^| ____^|
echo ^| ^| ^| ^| ^| ^| ^|\/^| ^| ^|_) ^| ^| ^| _^| ^| ^| ^| _^|
echo ^| ^|__^| ^|_^| ^| ^| ^| ^| __/^| ^|___^| ^|___ ^| ^| ^| ^|___
echo \____\___/^|_^| ^|_^|_^| ^|_____^|_____^| ^|_^| ^|_____^|
echo.
rd /s /q "Logs"
pause
goto Name
ownload
cls
ECHO __ _____ ____ _____ ___
echo \ \ / /_ _^| _ \^| ____/ _ \
echo \ \ / / ^| ^|^| ^| ^| ^| _^|^| ^| ^| ^|
echo \ V / ^| ^|^| ^|_^| ^| ^|__^| ^|_^| ^|
echo \_/ ^|___^|____/^|_____\___/
echo.
ECHO Telechargement de la video.
ECHO.
for /f "delims=: tokens=1,2" %%a in (Key.txt) do set $Fichier=%%a:%%b
if %%~za neq 1 (
echo la cle decryptage : %$Fichier%
echo.
echo.
N_m3u8DL-RE -M format=mp4 "%MPD%" --key "%$Fichier%" --save-dir "./Downloads" --save-name "%Noms%"
) else (
color 4
echo Attention le fichier Key.txt est vide.
)
color 6
cls
echo.
echo ____ ___ __ __ ____ _ _____ _____ _____
echo / ___/ _ \^| \/ ^| _ \^| ^| ^| ____^|_ _^| ____^|
echo ^| ^| ^| ^| ^| ^| ^|\/^| ^| ^|_) ^| ^| ^| _^| ^| ^| ^| _^|
echo ^| ^|__^| ^|_^| ^| ^| ^| ^| __/^| ^|___^| ^|___ ^| ^| ^| ^|___
echo \____\___/^|_^| ^|_^|_^| ^|_____^|_____^| ^|_^| ^|_____^|
echo.
rd /s /q "Logs"
del Key.txt
pause
goto Name
Similar Threads
-
I have a N_m3u8DL-RE problem in my CMD.
By Ehatevr in forum Newbie / General discussionsReplies: 3Last Post: 21st Feb 2024, 19:24 -
convert to lower bitrate CMD
By grabyea in forum Video Streaming DownloadingReplies: 18Last Post: 5th Nov 2022, 20:13 -
split videos CMD
By grabyea in forum Video ConversionReplies: 9Last Post: 5th Oct 2021, 10:04 -
convert video by cmd
By grabyea in forum Video ConversionReplies: 7Last Post: 30th Sep 2021, 05:55 -
convert with CMD
By grabyea in forum Video Streaming DownloadingReplies: 3Last Post: 13th Sep 2021, 11:37