SHARE
TWEET

savetube.bat paste

a guest May 21st, 2020 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3.  
  4. set "d=C:\Videos"
  5. set "i=%1"
  6. set "s=%i:savetube:=%"
  7. for /f "tokens=1,2,3 delims=SEPARATOR" %%a in ("%s%") do (
  8.    set "t=%%a"
  9.    set "v=%%b"
  10.    set "a=%%c"
  11. )
  12. set "f=mp4"
  13. if not "x%v:video/webm=%"=="x%v%" set "f=webm"
  14. if not "x%v:.webm=%"=="x%v%" set "f=webm"
  15. if "%a%"=="" (
  16.    if not "%v:.m3u8=%"=="%v%" (
  17.       "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%v%" -c copy "%d%\%t%.%f%"
  18.    ) else (
  19.       "C:\Program Files\ytdl\youtube-dl.exe "$v" -o "$d\$t"
  20.    )
  21. ) else (
  22.    "C:\Program Files\ffmpeg\bin\ffmpeg.exe" -i "%v%" -i "%a%" -c copy "%d%\%t%.%f%"
  23. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top