Files
DevOps/Apps/yt-dlp/download.cmd
2025-12-06 23:25:31 +01:00

20 lines
769 B
Batchfile

@echo off
:: Download video from the internet
set url=%*
::echo %url%
:: yt-dlp --format "bestvideo[ext=mkv][height<='1080']+bestaudio/best" https://www.youtube.com/watch?v=<VIDEO_ID>
::"C:\Users\kbram\Downloads\media_download\yt-dlp" --sleep-interval 5 --max-sleep-interval 10 --format "bestvideo[ext=mkv][height<=1080]+bestaudio/best" "%url%"
::"C:\Users\kbram\Downloads\media_download\yt-dlp" --sleep-interval 5 --max-sleep-interval 10 --postprocessor-args "VideoConvertor:-vcodec libx265" --recode-video mkv --format "bestvideo[height<=1080]+bestaudio/best" "%url%"
"C:\Users\kbram\Downloads\media_download\yt-dlp" --postprocessor-args "VideoConvertor:-vcodec libx265" --recode-video mkv --format "bestvideo[height<=1080]+bestaudio/best" "%url%"
set url=