updated yt-dlp scripts

Cette révision appartient à :
Albirew 2024-11-14 20:16:24 +01:00
Parent d5b13b62d3
révision acf781bab0
Signé par: Albirew
ID de la clé GPG: 9D72DAEB1BB933C9
6 fichiers modifiés avec 43 ajouts et 29 suppressions

Voir le fichier

@ -1,9 +1,9 @@
# COLLECTION OF DOWNLOADING AND TRANSCODING SCRIPTS
### You'll need:
* ffmpeg
* [ffmpeg](https://www.gyan.dev/ffmpeg/builds/#release-builds)
* to use with convertion scripts
* yt-dlp
* [yt-dlp](https://github.com/yt-dlp/yt-dlp/releases)
* To use with youtube-dl scripts
### You may also want:
@ -11,3 +11,5 @@
* A little executable to play a sound file when one or all files has been processed
* [ProcessTamerPortable64](https://www.donationcoder.com/software/mouser/popular-apps/process-tamer)
* Control ffmpeg priority so you can still use your computer when encoding AV1 videos
* [PhantomJS](https://phantomjs.org/releases.html)
* Used by yt-dlp in extractors where javascript needs to be run

Voir le fichier

@ -3,6 +3,7 @@ chcp 65001 >nul
echo @echo off >0-conv.bat
set binpath=%~dp0
if not exist "%binpath%\ffmpeg.exe" echo ffmpeg not found. exiting... & echo. & pause & exit 1
echo cmd.exe /c tasklist /FI "IMAGENAME eq ProcessTamerTray.exe" ^| find /I /N "ProcessTamerTray.exe" ^|^|start "" "%binpath%ProcessTamerPortable64\ProcessTamerTray.exe" >>0-conv.bat
echo %~d1 >>0-conv.bat
echo cd %~dp1 >>0-conv.bat
:do
@ -19,6 +20,7 @@ echo "%binpath%\sounder.exe" /vol 25 "%binpath%\Infobulle.wav" >>0-conv.bat
shift /1
if [%1] NEQ [] goto do
echo "%binpath%\sounder.exe" "%binpath%\alert.wav" >>0-conv.bat
echo taskkill /im ProcessTamerTray.exe >>0-conv.bat >>0-conv.bat
echo pause >>0-conv.bat
echo OK
pause

Voir le fichier

@ -0,0 +1,23 @@
@echo off
set savepath=B:\Albirew\Bureau\YT
set binpath=%~dp0
echo Usage: yt-dlp.exe [OPTIONS] URL [URL...]
echo --geo-bypass-country CODE Force bypass geographic restriction with ISO 3166-2 country code
echo eg: -4 (IPv4) -geo-bypass-country us
echo.
echo Leave empty to update
echo.
set /P command=Enter options and video URL:
if ["%command%"] == [""] (
echo $^>yt-dlp --update
"%binpath%\yt-dlp.exe" --update
if %ERRORLEVEL% NEQ 0 pause
exit 0
)
mkdir %savepath% 2>nul
cd %savepath%
echo.
echo $^>yt-dlp -f "bv+ba/b" --console-title --remux-video mkv --write-auto-subs --embed-subs --convert-subs ass --sub-lang fr,en,en.* --yes-playlist --geo-bypass "%command%"
"%binpath%\yt-dlp.exe" -f "bv+ba/b" --console-title --remux-video mkv --write-auto-subs --embed-subs --convert-subs ass --sub-lang fr,en,en.* --yes-playlist --geo-bypass "%command%"
IF %ERRORLEVEL% NEQ 0 pause

Voir le fichier

@ -1,15 +1,23 @@
@echo off
set savepath=B:\Albirew\Bureau
set savepath=B:\Albirew\Bureau\YT
set binpath=%~dp0
cd %savepath%
echo Usage: yt-dlp.exe [OPTIONS] URL [URL...]
echo --geo-bypass-country CODE Force bypass geographic restriction with ISO 3166-2 country code
echo eg: -4 (IPv4) -geo-bypass-country us
echo.
set /P command=Enter options and video URL:
if ["%command%"] == [""] exit 0
echo Leave empty to update
echo.
echo $^>yt-dlp --extract-audio --audio-format mp3 --geo-bypass %command%
"%binpath%\yt-dlp.exe" --extract-audio --audio-format mp3 --geo-bypass %command%
set /P command=Enter options and video URL:
if ["%command%"] == [""] (
echo $^>yt-dlp --update
"%binpath%\yt-dlp.exe" --update
if %ERRORLEVEL% NEQ 0 pause
exit 0
)
mkdir %savepath% 2>nul
cd %savepath%
echo.
echo $^>yt-dlp -f "ba/b" --extract-audio --audio-format mp3 --geo-bypass %command%
"%binpath%\yt-dlp.exe" -f "ba/b" --extract-audio --audio-format mp3 --geo-bypass %command%
IF %ERRORLEVEL% NEQ 0 pause

Voir le fichier

@ -1,5 +0,0 @@
@echo off
set binpath=%~dp0
echo $^>yt-dlp --update
"%binpath%\yt-dlp.exe" --update
pause

Voir le fichier

@ -1,16 +0,0 @@
@echo off
set savepath=B:\Albirew\Bureau\YT
set binpath=%~dp0
mkdir %savepath% 2>nul
cd %savepath%
echo Usage: yt-dlp.exe [OPTIONS] URL [URL...]
echo --geo-bypass-country CODE Force bypass geographic restriction with ISO 3166-2 country code
echo eg: -4 (IPv4) -geo-bypass-country us
echo.
set /P command=Enter options and video URL:
if ["%command%"] == [""] exit 0
echo.
echo $^>yt-dlp -f "bv+ba/b" --console-title --remux-video mkv --write-subs --embed-subs --sub-lang fr,en --yes-playlist --geo-bypass %command%
"%binpath%\yt-dlp.exe" -f "bv+ba/b" --console-title --remux-video mkv --write-subs --embed-subs --sub-lang fr,en --yes-playlist --geo-bypass %command%
IF %ERRORLEVEL% NEQ 0 pause