youtube-dl :: how to listen to audio while downloading

Question:

I know that I can download an audio track from YouTube through this easy command:

youtube-dl -f 251 'http://www.youtube.com/watch?v=HRIF4_WzU1w'

Lately YouTube has been slowing down the download speed.

Is there a way I can listen to the audio while downloading the track?

Where is the file located while it is downloading? On the RAM?

Answers:

As far as I know when downloading a video while precising -f 251 it is being written while downloading in VIDEO_TITLE.webm.part and at the end of the download this file is rename VIDEO_TITLE.webm.

To listen to the audio of a video while downloading its track, just open in a web-browser the second URL returned by:

youtube-dl -g 'HRIF4_WzU1w'

If you are also interested in having the audio file at the end of your listening, use your command or use Ctrl + S in your web-browser.

Answered By: Benjamin Loison
Categories: questions Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.