Download YouTube Video and Audio: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 27: Line 27:
<source lang=winbatch>
<source lang=winbatch>
set /p Search="Type query and press ENTER: "
set /p Search="Type query and press ENTER: "
yt-dlp.exe --extract-audio --audio-format mp3 --audio-quality 0 --write-thumbnail --embed-thumbnail --output %%(title)s.%%(ext)s --default-search ytsearch "%Search%"
yt-dlp.exe  
  --extract-audio  
  --audio-format mp3  
  --audio-quality 0  
  --write-thumbnail  
  --embed-thumbnail  
  --output %%(title)s.%%(ext)s  
  --default-search ytsearch "%Search%"
</source>
</source>



Revision as of 20:39, 28 August 2022


Guide:

Fork with many useful improvements (for example a fix for slow download speed/throttling):

MS VC++ 2010 x86 Redistributable (needed for Windows)

For additional encoding formats: ffmpeg.exe (in the subfolder 'essentials'):

Some of the many options:

 --extract-audio - no video, audio only
 --audio-format mp3
 --audio-quality 0  - best quality
 --output %%(title)s.%%(ext)s
 --write-thumbnail --embed-thumbnail
 --default-search ytsearch 

Example batch file:

set /p Search="Type query and press ENTER: "
yt-dlp.exe 
  --extract-audio 
  --audio-format mp3 
  --audio-quality 0 
  --write-thumbnail 
  --embed-thumbnail 
  --output %%(title)s.%%(ext)s 
  --default-search ytsearch "%Search%"

Mp3Gain to normalize volume level:

Example batch file:

MP3Gain\mp3gain.exe /r *.mp3