Skip to content

Instantly share code, notes, and snippets.

@qant
Created July 9, 2023 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qant/48e9063b627259f65a985b205573f830 to your computer and use it in GitHub Desktop.
Save qant/48e9063b627259f65a985b205573f830 to your computer and use it in GitHub Desktop.
Download youtube video using yt-dlp.exe and ffmpeg.exe
1. Create folder /DL/
2. Download yt-dlp.exe y ffmpeg.exe to download and conver files and put inside of /DL/ folder
3. Create dl.bat in root of the disk G: in my case
open cmd, dl.bat and youtube link as this one
The video will download to DL folder
Can download vr180 stereoscopic videos, but NOT 360 stereoscopic
@echo off
cd g:\DL\
rem .\yt-dlp.exe -S 'res:4320s' -f "bv*" "%2" --extractor-args "youtube:player_client=android"
rem -S 'res:4320s' 20
rem bv*[ext=mp4]
rem "bv*+ba/b"
.\yt-dlp.exe -f "bv*+mergeall[vcodec=none]" "%2"
rem .\yt-dlp.exe -f "ba/b" "%2"
rem bv*+ba/b
rem .\yt-dlp.exe -J "bv*" "%2" --extractor-args "youtube:player_client=android" > json.txt
pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment