Last active
March 29, 2021 14:02
-
-
Save nim1z/929706236faacea33861ea9339bfa9dc to your computer and use it in GitHub Desktop.
easy to use batch files of youtube-dl and streamlink (ffmpeg required)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
chcp 65001 | |
set /P url="URLを入力してください>" | |
set /P savedname="保存ファイル名を入力してください>" | |
echo Start Downloading | |
streamlink %url% best -o %savedname%.ts | |
ffmpeg -i %savedname%.ts -c copy %savedname%.mp4 | |
del %savedname%.ts | |
echo 完了しました。 | |
pause | |
chcp 932 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
chcp 65001 | |
set /P url="URLを入力してください>" | |
set /P savedname="保存ファイル名を入力してください>" | |
youtube-dl -F %url% | |
set /P dl_video="ビデオのフォーマットコードを入力してください(例:248)>" | |
set /P dl_audio="オーディオのフォーマットコードを入力してください(例:251)>" | |
set /P fmt="拡張子(extension)を入力してください(例:webm)>" | |
echo Start Downloading | |
youtube-dl -f %dl_video% -o %savedname%_video.%fmt% %url% | |
youtube-dl -f %dl_audio% -o %savedname%_audio.%fmt% %url% | |
echo Start Mixing | |
ffmpeg -i %savedname%_video.%fmt% -i %savedname%_audio.%fmt% -c copy %savedname%.%fmt% | |
del %savedname%_video.%fmt% | |
del %savedname%_audio.%fmt% | |
echo 完了しました。 | |
pause | |
chcp 932 | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment