├── ytdlInfo.bat ├── ytdlUpdate.bat ├── ytdlBasic.bat ├── ytdlCustom.bat ├── LICENSE ├── README.md └── ytdlAdvanced.bat /ytdlInfo.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | color 0A 3 | ECHO ====================================================================================================================== 4 | ECHO. 5 | youtube-dl -v 6 | ECHO. 7 | ECHO ====================================================================================================================== 8 | ECHO. 9 | ECHO Done! 10 | PAUSE 11 | EXIT -------------------------------------------------------------------------------- /ytdlUpdate.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | color 0A 3 | ECHO ====================================================================================================================== 4 | ECHO. 5 | youtube-dl -U 6 | ECHO. 7 | ECHO ====================================================================================================================== 8 | ECHO. 9 | ECHO Wait... 10 | PAUSE 11 | EXIT -------------------------------------------------------------------------------- /ytdlBasic.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | color 0A 3 | ECHO ====================================================================================================================== 4 | ECHO. 5 | SET /P URL="[Enter video URL] " 6 | ECHO. 7 | ECHO ====================================================================================================================== 8 | ECHO. 9 | youtube-dl -o Downloads/%%(title)s.%%(ext)s -i --ignore-config --hls-prefer-native %URL% 10 | ECHO. 11 | ECHO ====================================================================================================================== 12 | ECHO. 13 | ECHO Done! 14 | PAUSE 15 | EXIT 16 | -------------------------------------------------------------------------------- /ytdlCustom.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | color 0A 3 | ECHO ====================================================================================================================== 4 | ECHO. 5 | SET /P URL="[Enter video URL] " 6 | SET /P arguments="Enter custom arguments: " 7 | ECHO. 8 | ECHO ====================================================================================================================== 9 | ECHO. 10 | youtube-dl -o Downloads/%%(title)s.%%(ext)s %URL% %arguments% 11 | ECHO. 12 | ECHO ====================================================================================================================== 13 | ECHO. 14 | ECHO Done! 15 | PAUSE 16 | EXIT 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # youtube-dl-batch 2 | These batch files are just made to simplify the usage of Windows .exe releases of http://rg3.github.io/youtube-dl/ (Source: https://github.com/rg3/youtube-dl) for people who want to just simply use `youtube-dl` as a tool to download high-quality videos from YouTube (or elsewhere) without using third-party services or software clients (since these usually come with video quality restrictions) rather than use it for development purposes. 3 | 4 | Videos with video quality above 720p will have to download the video and audio files seperately and then merge them into one file (thats just how YouTube works for some reason). To merge video and audio files `youtube-dl` requires that FFmpeg (https://www.ffmpeg.org/) is installed on your system or that the 'ffmpeg.exe' file is contained in the same folder as 'youtube-dl.exe'. 5 | 6 | **Note that the `youtube-dl.exe` file must be stored in the same directory as the .bat files in order to work.** 7 | 8 | ## ytdlBasic.bat 9 | This batch file is the most basic of all. It simply downloads the best available quality video by default. 10 | 11 | ## ytdlAdvanced.bat 12 | This batch file allows the user to enter a video URL and then proceeds to list all available formats for that video. It then prompt the user to manually select their desired video and audio formats. 13 | 14 | ## ytdlCustom.bat 15 | This batch file allows for very advanced usage by allowing you to manually enter multiple command-line arguments for `youtube-dl`. 16 | 17 | ## ytdlInfo.bat 18 | This batch file lists basic information about your current `youtube-dl` Windows .exe release. 19 | 20 | ## ytdlUpdate.bat 21 | This batch file updates your current `youtube-dl` .exe file if an update is available. 22 | 23 | ## Note 24 | This repository and its files are currently very barebones. This is all just made for fun and nothing too serious. I might add extra features later on. Feel free to contribute if you wish! 25 | -------------------------------------------------------------------------------- /ytdlAdvanced.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | color 0A 3 | ECHO ====================================================================================================================== 4 | ECHO. 5 | SET /P URL="[Enter video URL] " 6 | ECHO. 7 | ECHO ====================================================================================================================== 8 | goto formatList 9 | 10 | :formatList 11 | ECHO. 12 | youtube-dl -F %URL% 13 | ECHO. 14 | ECHO ====================================================================================================================== 15 | goto selection 16 | 17 | 18 | :selection 19 | ECHO. 20 | ECHO 1) Video + Audio 21 | ECHO 2) Single format (Audio only / Video only) 22 | ECHO. 23 | SET /P option="Select option: " 24 | if %option% == 1 (goto download) 25 | if %option% == 2 (goto downloadSingle) 26 | ECHO. 27 | ECHO Unknown value 28 | ECHO. 29 | ECHO ====================================================================================================================== 30 | goto selection 31 | 32 | :download 33 | ECHO. 34 | SET /P video="Select video format: " 35 | SET /P audio="Select audio format: " 36 | ECHO. 37 | ECHO ====================================================================================================================== 38 | ECHO. 39 | youtube-dl -o Downloads/%%(title)s.%%(ext)s -f %video%+%audio% -i --ignore-config --hls-prefer-native %URL% 40 | ECHO. 41 | ECHO ====================================================================================================================== 42 | ECHO. 43 | ECHO Done! 44 | PAUSE 45 | EXIT 46 | 47 | :downloadSingle 48 | ECHO. 49 | SET /P format="Select format: " 50 | ECHO. 51 | ECHO ====================================================================================================================== 52 | ECHO. 53 | youtube-dl -o Downloads/%%(title)s.%%(ext)s -f %format% -i --ignore-config --hls-prefer-native %URL% 54 | ECHO. 55 | ECHO ====================================================================================================================== 56 | ECHO. 57 | ECHO Done! 58 | PAUSE 59 | EXIT 60 | 61 | --------------------------------------------------------------------------------