Created
December 6, 2017 14:20
-
-
Save paveljurca/5948034db2bb4bcf7125e3d606631b3c to your computer and use it in GitHub Desktop.
youtube-dl
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 | |
REM audio | |
start "Stahnout audio" /I "wscript.exe" bin\stahnout_audio.vbs | |
REM video | |
start "Stahnout video" /I "wscript.exe" bin\stahnout_video.vbs |
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
Set objShell = WScript.CreateObject("WScript.Shell") | |
audio = InputBox("Zadejte URL audia", "Stahnout audio") | |
if IsEmpty(audio) or "" = Trim(audio) then | |
WScript.Quit 1 | |
end if | |
'vyjmuti zvukove stopy s prevodem do MP3 | |
'@TODO | |
'NIZKY BITRATE!!!! pro -f worst | |
'--audio-quality 192K | |
return = objShell.Run("bin\youtube-dl.exe -f 500/worst -x --audio-format mp3 " & audio, 1, false) |
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
Set objShell = WScript.CreateObject("WScript.Shell") | |
video = InputBox("Zadejte URL videa", "Stahnout video") | |
if IsEmpty(video) or "" = Trim(video) then | |
WScript.Quit 1 | |
end if | |
'vychozi bestvideo+bestaudio by znamenalo pokusny muxing | |
return = objShell.Run("bin\youtube-dl.exe -f mp4/best " & video, 1, false) | |
'prevod do MP4 kontejneru | |
'return = objShell.Run("bin\youtube-dl.exe --recode-video mp4 " & video, 1, false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment