Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
VLC stopped working (with youtube-dl.py) #2575
Comments
|
Does the final video url start with |
|
Also, can you name an example URL and post how you run vlc? |
|
I also have problems with https:// in the final url. |
CHICAGO - Colour My World (with lyrics) CHICAGO - Colour My World (with lyrics) /Applications/VLC.app/Contents/MacOS/VLC --macosx-autoplay --quiet "$json_url" On Monday, March 17, 2014 8:42 AM, Philipp Hagemeister notifications@github.com wrote: Also, can you name an example URL and post how you run vlc? |
|
Oops. I take that back about any YouTube causing it. I just tried an old one and it worked. So, it may just be newer ones. |
|
What exactly is
|
|
I think the https urls doesn't work with VLC on OSX, with our test video (http://www.youtube.com/watch?v=BaW_jenozKc) I see this errors on VLC:
I think this should be reported to the VLC project, we can't do anything (other that allowing to get http urls #2364). |
|
Please allow http urls or add a flag to disable to get https final links. |
|
Just tested his patch, works fine. |
json_url is what I've been calling "the real URL" - the very long one that you get back from using the "-j" option. I don't doubt that there are other ways to get to the goal - but the way my script is structured, what I do is take the "webpage_url" - shoot that to youtube-dl.py with "-j", get back the "real" URL, and use that (the "real" URL) thereafter. As JaimeMF says, this may ultimately be a problem with VLC, specifically, VLC on OSX. Still, it would be nice if it could be fixed. Also note the bit about needing --no-check-certificate in "wget". I think that is somehow related to this… |
|
Also note (I tried your command line): $ /Applications/VLC.app/Contents/MacOS/VLC $(youtube-dl.py -g 'CHICAGO - Colour My World (with lyrics)') |
|
I can download the https url without any problem with curl, wget and Firefox, so it seems that the problem is with VLC (although I don't know why it fails in your case with wget). You can now use |
|
Thanks. It looks like --prefer-insecure solves all my problems. I assume that is a newly added option. |
|
Yes, it was added recently. I would use it only if it's the only solution, |
I have a script (running on Mac OSX) that uses youtube-dl with the "-j" option to generate the "real" URL for YouTube vids. It then passes that "real" URL on to VLC for viewing.
It has worked flawlessly for quite some time. However, as of a few days ago, it has stopped working for all YouTube vids. It works OK for other sites, but not for YouTube. No doubt, something has changed at YouTube (as they are always changing things) and youtube-dl hasn't kept up. I am running the latest version of youtube-dl (my script ensures this by frequently running it with the "-U" option). Currently, I am running:
$ youtube-dl.py -U
youtube-dl is up-to-date (2014.03.12)
$
Interestingly, I can "wget" the vid (which my script also [optionally] does), but VLC always complains that it can't open the URL. And also note that if I do "wget" it, then the resulting file plays fine in VLC. But I can't access it directly via VLC anymore. And again, this problem does not manifest with other sites videos - only on YouTube.
I have not updated or changed my VLC. But, I realize that this may be thought of as "not a youtube-dl problem" and be considered a "VLC problem". Still, since VLC has no technical support (trust me on this), and the support here is very good, I thought someone here might be able to help.