The problem on Usenet when people are not specific about what they're
suggesting is that noobs end up wasting a tremendous amount of time on the
wrong solutions.
Your well-intentioned post has two huge problems for noobs in that regard.
1. There are multiple "youtube-dl.exe" precompiled Windows binaries, which
are different, and where some of them barf on the stated test videos. You
didn't say which precompiled windows binary you are using so your otherwise
helpful post is useless to a noob because they have to guess where to get
it and if they guess wrong, it stands a very good chance of working on the
easy test video but failing on the harder test video.
2. Not only are there multiple "youtube-dl.exe" precompiled Windows
binaries, but there appears to be a third implementation called
"youtube-dl" (without the exe) which is also available on the net (and
which most likely is for Linux purposes). Your post does not make it clear
whether you're using that interpreted code, or the precompiled Windows
binary so a noob is left to guess.
Since I already went through hours of hell figuring out which binaries
worked and which didn't work, here's how I'd modify your otherwise very
helplful suggestions, so that a noob could follow in your footsteps.
1. Download the tested youtube-dl.exe pre-compiled Windows binary:
https://youtube-dl.org/downloads/latest/youtube-dl.exe
2. Doublecheck that the basics are working fine:
cmd> youtube-dl.exe -U
youtube-dl is up-to-date (2017.07.15)
cmd> youtube-dl.exe --version
2017.07.15
cmd> youtube-dl.exe -h > youtube-dl.man
cmd> type youtube-dl.man | more
3. Run the suggested command to download the file as an mp4:
cmd> youtube-dl.exe -f 18
https://youtu.be/VuNIsY6JdUw
[youtube] VuNIsY6JdUw: Downloading webpage
[youtube] VuNIsY6JdUw: Downloading video info webpage
[youtube] VuNIsY6JdUw: Extracting video information
[youtube] VuNIsY6JdUw: Downloading MPD manifest
[download] Destination: Taylor Swift - You Belong With Me-VuNIsY6JdUw.mp4
[download] 100% of 17.98MiB in 01:45
cmd> dir
18,857,601 Taylor Swift - You Belong With Me-VuNIsY6JdUw.mp4
3. Run the suggested command to download just the audio as m4a:
cmd> youtube-dl.exe -f 140
https://youtu.be/VuNIsY6JdUw
[youtube] VuNIsY6JdUw: Downloading webpage
[youtube] VuNIsY6JdUw: Downloading video info webpage
[youtube] VuNIsY6JdUw: Extracting video information
[youtube] VuNIsY6JdUw: Downloading js player vflL_WLGI
[youtube] VuNIsY6JdUw: Downloading MPD manifest
[download] Destination: Taylor Swift - You Belong With Me-VuNIsY6JdUw.m4a
[download] 100% of 3.46MiB in 00:20
[ffmpeg] Correcting container in "Taylor Swift - You Belong With Me-VuNIsY6JdUw.m4a"
Notice that "ffmpeg" is called.
I have ffmpeg in my path so I am not sure if that is a requirement of the
command you suggested, or if ffmpeg is pre-compiled into the youtube-dl.exe
itself. (Do you know the answer to that question?)
> What's so hard about it ?
> Oh, I see, watching the video. Ugghh !!!
> PS Youtube-dl is updated practically daily. Please don't
> mention the build. If you want to update, just
> youtube-dl --update
> (that's TWO dashes before the upgrade)
I only have one day's experience with the tool so can you experienced
people explain whether the ffmpeg is precompiled into the two
youtube-dl.exe binaries or if it's necessary for a noob to install fmpeg to
extract the audio?
Also, can the people experienced with the two youtube-dl.exe precompiled
binaries please explain whether both of these work the same for you on the
Taylor Swift test video?
youtube-dl.exe
From:
https://youtube-dl.org/downloads/latest/youtube-dl.exe
This implementation does not require Python!
youtube-dl.exe
https://yt-dl.org/downloads/2017.07.15/youtube-dl.exe
Referenced in
https://rg3.github.io/youtube-dl/download.htm
This implementation barfed on the harder video with a Python error.