YouTube download time range audio

A command I don’t want to forget. I’m glad such tools are done, although I’m consistently surprised that they are not blocked, as YouTube has such features only on Premium (I don’t know if they have time range audio though).

I was usually using youtube-dl tool for such necessities. But looking for something that could download me just a part of a video and then convert it to audio, I found yt-dlp. Here are the lines I needed:

> brew install yt-dlp
> yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 \
  --download-sections "*0:58:20-1:13:20" \
  "https://www.youtube.com/watch?v=fmjzM_E9RnI"

Btw: --audio-quality 0 means the best quality. 10 is worst. (Yes, I was downloading a part of a Turkish soap opera for theatre school).

Leave a Reply

Your email address will not be published. Required fields are marked *