Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: youtube-dl.exe

124 views
Skip to first unread message

Shadow

unread,
Jul 16, 2017, 1:37:45 PM7/16/17
to
On Sun, 16 Jul 2017 17:17:35 +0000 (UTC), Roy Tremblay
<rembla...@nlnet.nl> wrote:

>"Mr. Man-wai Chang" <toylet...@gmail.com> actually wrote:
>

>> https://rg3.github.io/youtube-dl/download.html
>
>If that works for you, then that's great, but on Windows 10 it barfed with
>Python errors when I fed it a tough Vevo TaylorSwift video suggested by
>Mayayana as a tough test case.
> Easy testcase: https://youtu.be/AI5wEcWAmkg
> Hard testcase: https://youtu.be/VuNIsY6JdUw

Video

youtube-dl -f 18 https://youtu.be/VuNIsY6JdUw

Audio only

youtube-dl -f 140 https://youtu.be/VuNIsY6JdUw

Shitty 126 kb/s AAC

What's so hard about it ?
Oh, I see, watching the video. Ugghh !!!
IAWTP
[]'s

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)

--
Don't be evil - Google 2004
We have a new policy - Google 2012

Roy Tremblay

unread,
Jul 16, 2017, 2:14:09 PM7/16/17
to
Shadow <S...@dow.br> actually wrote:

> Video
> youtube-dl -f 18 https://youtu.be/VuNIsY6JdUw
> Audio only
> youtube-dl -f 140 https://youtu.be/VuNIsY6JdUw

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.

Rene Lamontagne

unread,
Jul 16, 2017, 3:05:25 PM7/16/17
to
You sure have wasted a lot of time on a very trivial thing, You Must Be
A Noob.

Rene

Roy Tremblay

unread,
Jul 16, 2017, 3:19:51 PM7/16/17
to
Rene Lamontagne <rla...@shaw.ca> actually wrote:

> You sure have wasted a lot of time on a very trivial thing, You Must Be
> A Noob.

I said many times that I'm a noob, so, it's pretty surprising that you just
realized it so late in the game.

An expert wouldn't have had all the myriad problems that I had using the
wrong youtube-dl.exe that some people unwittingly posted, for example.

Worse, all the experts didn't mention that you need ffmpeg executables in
your path, but, when I tried to add ffplay.exe to my path, I screwed up the
path, and now I can't get it back.

So now youtube-dl.exe no longer works from the command line, complaining:
Unsupported 16-Bit Application
The program or feature
"\??\C:\path\youtube-dl\youtube-dl.exe" cannot start or tun due to
incompatibility with 64-bit versions of Windows. Please contact
the software vendor to ask if a 64-bit Windows compatible version
is available.

This happened just after I tried editing the %PATH%, which I can't get
back.

If that's not a noob maneuver, I don't know what else is.

What's the best way to restore the Windows 10 path to the original default?
(without having to restore the system, because this is, after all, just a
path variable so having to use system restore is overkill)

Roy Tremblay

unread,
Jul 16, 2017, 3:50:14 PM7/16/17
to
Roy Tremblay <rembla...@nlnet.nl> actually wrote:

> What's the best way to restore the Windows 10 path to the original default?
> (without having to restore the system, because this is, after all, just a
> path variable so having to use system restore is overkill)

What most of you need to realize is that not everyone is as capable with
Windows as you are.

I, for one, am a noob, which is why it was so difficult to reproduce your
suggestions about youtube-dl.exe since there are multiple different
implementations of the same name where some of them failed miserably and
none of you were clear which ones you were testing.

As further evidence that I'm a noob, I somehow screwed up the path when
attempting to add ffmpeg, which *none* of you said was required (but it is)
in order to rip the audio out of the video.

So here's how I fixed the path just now.
cmd> echo %PATH%
C:\path\image_magick;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\path\gtkfor.net2p12p22\bin
Such that the youtube-dl.exe stopped working
cmd> youtube-dl.exe
Unsupported 16-Bit Application
The program or feature
"\??\C:\path\youtube-dl\youtube-dl.exe" cannot start or run due to
incompatibility with 64-bit versions of Windows. Please contact
the software vendor to ask if a 64-bit Windows compatible version
is available.

I brought up "Control Panel > System and Security > System" using:
Windows+X,Y

I clicked on "Advanced system settings".
Up popped a System Properties window.
I clicked on the Advanced tab.
I clicked on the Environment Variables button near the bottom of that tab.

In the Environment Variables window in the "System variables" section
I highlighted the Path variable and clicked the Edit button and set the
path back to the default Windows 10 path (which I think is this):
path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

If that's not the correct default path for Windows 10, let me know please.

Andy Burns

unread,
Jul 16, 2017, 4:07:55 PM7/16/17
to
Roy Tremblay wrote:

> In the Environment Variables window in the "System variables" section
> I highlighted the Path variable and clicked the Edit butto

How long has that dialog existed to split the long environment variable
into the component paths, and let you add/delete/re-order them, rather
than the old way of editing it as one huge string?

Rene Lamontagne

unread,
Jul 16, 2017, 4:13:26 PM7/16/17
to
Not having found Windows restore too reliable I use Macrium reflect for
image backups, Then if I screw up it only takes about 9 minutes to set
everything right again.

Rene

Roy Tremblay

unread,
Jul 16, 2017, 4:47:16 PM7/16/17
to
Andy Burns <use...@andyburns.uk> actually wrote:

> How long has that dialog existed to split the long environment variable
> into the component paths, and let you add/delete/re-order them, rather
> than the old way of editing it as one huge string?

Good question.

Since I'm an admitted noob, I'll let someone else answer,
but I'll help out by posting a picture of what you're talking about.
https://s4.postimg.org/4r2acmvx9/path.jpg

Is that path-editing GUI new to Windows 10?

Roy Tremblay

unread,
Jul 16, 2017, 4:51:17 PM7/16/17
to
Rene Lamontagne <rla...@shaw.ca> actually wrote:

> Not having found Windows restore too reliable I use Macrium reflect for
> image backups, Then if I screw up it only takes about 9 minutes to set
> everything right again.

Luckily, it was just the path that I screwed up.
https://s4.postimg.org/4r2acmvx9/path.jpg

The question that brings up is how important was it to have ImageMagick in
the path, and the path to GTK was there and a path to NVIDIA stuff, all of
which I removed in favor of the default Windows 10 path as documented on
the net.

cmd> path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

May I ask you who are more knowledgeable than I, what you do to keep your
path clean?

Do you allow every program that wants to add itself to your path to do so?

Shadow

unread,
Jul 16, 2017, 6:16:05 PM7/16/17
to
On Sun, 16 Jul 2017 18:14:04 +0000 (UTC), Roy Tremblay
<rembla...@nlnet.nl> wrote:

>Shadow <S...@dow.br> actually wrote:
>
>> Video
>> youtube-dl -f 18 https://youtu.be/VuNIsY6JdUw
>> Audio only
>> youtube-dl -f 140 https://youtu.be/VuNIsY6JdUw
>
>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

https://rg3.github.io/youtube-dl/download.html

The ONLY one labeled

"Windows exe"

It's the "official build". I can't see any more offerings, and
it's a stand-alone executable that has python built-in. Maybe you are
downloading from a possibly malicious site ?

It runs fine under XP..
[]'s

Lucifer Morningstar

unread,
Jul 18, 2017, 8:05:27 AM7/18/17
to
On Sun, 16 Jul 2017 19:19:45 +0000 (UTC), Roy Tremblay
<rembla...@nlnet.nl> wrote:

>Rene Lamontagne <rla...@shaw.ca> actually wrote:
>
>> You sure have wasted a lot of time on a very trivial thing, You Must Be
>> A Noob.
>
>I said many times that I'm a noob, so, it's pretty surprising that you just
>realized it so late in the game.
>
>An expert wouldn't have had all the myriad problems that I had using the
>wrong youtube-dl.exe that some people unwittingly posted, for example.
>
>Worse, all the experts didn't mention that you need ffmpeg executables in
>your path, but, when I tried to add ffplay.exe to my path, I screwed up the
>path, and now I can't get it back.

I put all the required files in the same directory I am downloading
to.
I made a batch file to create a new directory and copy the required
files.

mkdir %1
copy cre.bat %1
copy *.txt %1
copy *.exe %1
cd %1
mkdir MP3s

Roy Tremblay

unread,
Jul 18, 2017, 11:31:25 PM7/18/17
to
Lucifer Morningstar <n...@for.mail> actually wrote:

> I put all the required files in the same directory I am downloading
> to.
> I made a batch file to create a new directory and copy the required
> files.
>
> mkdir %1
> copy cre.bat %1
> copy *.txt %1
> copy *.exe %1
> cd %1
> mkdir MP3s

This idea is probably the best, as I can have a setup.bat and a cleanup.bat
that removes the files when I'm done.

Thanks for that simple idea where the magic is in the simplicity and ease
of maintenance!

Lucifer Morningstar

unread,
Jul 19, 2017, 12:29:14 AM7/19/17
to
I like your cleanup.bat idea.
I suggest you enter youtube-dl.exe -h to get the full list of
parameters. I think you will be impressed.
You can tell it to download an entire playlist or channel
with a one line command for example or put multiple
urls in a text file and use -a.
It even works with a lot of non youtube streaming sites.

Roy Tremblay

unread,
Jul 19, 2017, 1:53:48 PM7/19/17
to
Lucifer Morningstar <n...@for.mail> actually wrote:

> I like your cleanup.bat idea.

I tried the setup.bat & cleanup.bat where the cleanup is easy (it deletes
the copies and moves the final result to the data hierarchy).

One problem I had with the setup, which I modeled after your sample, was to
get it to go into the directory it made, so I had to simplify the setup.bat
to use the current directory instead.

I also wanted to doubleclick on it, so I didn't know how to make it *ask*
for the Youtube URL.

mkdir download
copy C:\path\youtube-dl\youtube-dl.exe .\download\.
copy C:\path\ffmpeg\bin\ffmpeg.exe .\download\.
copy C:\path\ffmpeg\bin\ffplay.exe .\download\.
copy C:\path\ffmpeg\bin\ffprobe.exe .\download\.
cd download
enter %URL%
echo "youtube-dl.exe -x --audio-format mp3 --audio-quality 0 %URL%"

> I suggest you enter youtube-dl.exe -h to get the full list of
> parameters. I think you will be impressed.

I was impressed by "youtube-dl.exe -h" output!
Although I mainly care about audio extraction where the options for audio
extraction alone were amazing.

This is the main command I will likely use:
youtube-dl.exe -x --audio-format mp3 --audio-quality 0 %URL%

> You can tell it to download an entire playlist or channel
> with a one line command for example or put multiple
> urls in a text file and use -a.

There were so many options that I didn't realize it had those two, which
are nice if I want to get all the quantum mechanics audios extracted, for
example, in a channel.

> It even works with a lot of non youtube streaming sites.

As an experiment, I tried another site where I agree with you that it works
but for now, it's only YouTube that I care about since my need is for audio
extraction of documentary videos that I play and delete.

Mynews

unread,
Jul 29, 2017, 6:14:03 PM7/29/17
to
"Roy Tremblay" wrote in message
news:okge8g$1qfl$1...@gioia.aioe.org...

> Rene Lamontagne actually wrote:
>> You sure have wasted a lot of time
>> on a very trivial thing,
>> You Must Be A Noob.
>
> I said many times that I'm a noob,
> so, it's pretty surprising that you just

A Noob
Who Is A 100% Right
And Give Out Good Info
Trivial Or Not
;)

Who Have A lot of time
To Look UP The Right Info

0 new messages