Playing YouTube videos with VLC - mystery error [SOLVED]

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
monkey37
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2011 04:37

Playing YouTube videos with VLC - mystery error [SOLVED]

Postby monkey37 » 24 Mar 2011 04:52

I was using VLC player to view some YouTube videos whose aspect ratio was wrong. VLC was just thing to make the adjustment. I selected "Open network stream", copied the link from the YouTube Page via right-click "Copy Shortcut", pasted the link, I fixed the aspect ratio, and it played perfectly. This was less than 12 hours ago, I successfully watched around 8 videos.

Now, later that day, the same technique doesn't work, trying it with new but similar videos. I have made no changes at all to my system. Now the video links all result in this error:

VLC is unable to open the MRL 'http://v13.lscache4.c.youtube.com/video ... 2b2649f450'. Check the log for details.

VLC is working fine otherwise. Is Google/YouTube scuttling me? What the blazes is going on? Thanks for your help. I will be looking for replies tonight, but I won't be back again until Sunday. Thanks again!

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Playing YouTube videos with VLC - mystery error

Postby Rémi Denis-Courmont » 24 Mar 2011 10:19

YouTube seems to have changed their page format and broke compatibility with VLC. You'll need to wait until the YouTube script is updated.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

monkey37
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2011 04:37

Re: Playing YouTube videos with VLC - mystery error

Postby monkey37 » 24 Mar 2011 17:28

Glad to know it. Thanks!

User avatar
Devilin Pixy
New Cone
New Cone
Posts: 7
Joined: 24 Mar 2011 18:03
VLC version: 4.0-435 NB
Operating System: Win10(64)
Location: Netherlands
Contact:

Re: Playing YouTube videos with VLC - mystery error

Postby Devilin Pixy » 24 Mar 2011 19:06

Hope this will be fixed soon coz i use this option a lot to screencast music and vids :(
Anyone with a fix to the script or youtube.lua file that works , let me know please ;)
:roll: You cannot depend on your eyes when your imagination is out of focus. (Mark Twain) :roll:

VlC_Freak
New Cone
New Cone
Posts: 8
Joined: 22 Mar 2011 13:59

Re: Playing YouTube videos with VLC - mystery error

Postby VlC_Freak » 24 Mar 2011 19:37

+1

i need this fix too (if it can be fixed)
dont give up your good work

Christian F

technodeviant
New Cone
New Cone
Posts: 3
Joined: 24 Mar 2011 20:56

Re: Playing YouTube videos with VLC - mystery error

Postby technodeviant » 24 Mar 2011 21:08

Just started playing with VLC and integrating it into a new multimedia application when this little hitch came along. Any idea when and update will fix this issue? Need to be able to play you tube content!! Thanks!

Outbreak Monkey
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2011 02:13

Re: Playing YouTube videos with VLC - mystery error

Postby Outbreak Monkey » 25 Mar 2011 05:03

We had the same problem, it just started this week..

Seems that YouTube have started adding an escaped unicode sequence (\u0026) in-place of the & (ampersand) character in their flash variables.

I've posted a patch in trac (http://trac.videolan.org/vlc/ticket/4608)

If you want to get your hand a little dirty, and edit the LUA script that parses the YouTube video you can:

Use notepad or a 'plain' text editor and do the following:

1. Find the "youtube.lua" script (which is in the following directory: VLC -> lua -> playlist)
2. ** Make a backup **
3. Using notepad or a text editor, open the youtube.lua file and change the following (about half way down):

Find:

Code: Select all

if not fmt or tonumber( itag ) == tonumber( fmt ) then -- do unescaping of / url = string.gsub( url, '\\/','/' ) path = url
And add the following two lines (after the string.gsub line, but before the path = url line):
-- do convert of unicode 0026 to ampersand
url = string.gsub( url, '\\u0026','&' )

It should look like this when you're done:

Code: Select all

if not fmt or tonumber( itag ) == tonumber( fmt ) then -- do unescaping of / url = string.gsub( url, '\\/','/' ) -- do convert of unicode 0026 to ampersand url = string.gsub( url, '\\u0026','&' ) path = url
Save that..

Worked for us, hope it works for you..

Cheers,
ObM.

chaibadin
New Cone
New Cone
Posts: 1
Joined: 25 Mar 2011 09:55

Re: Playing YouTube videos with VLC - mystery error

Postby chaibadin » 25 Mar 2011 10:02

It work.Thank you.

VlC_Freak
New Cone
New Cone
Posts: 8
Joined: 22 Mar 2011 13:59

Re: Playing YouTube videos with VLC - mystery error

Postby VlC_Freak » 25 Mar 2011 13:20

Working here too !!!!!
Many Thanks

technodeviant
New Cone
New Cone
Posts: 3
Joined: 24 Mar 2011 20:56

Re: Playing YouTube videos with VLC - mystery error

Postby technodeviant » 25 Mar 2011 20:43

Could someone please post a working lua file, I made the change above, and it did not make a difference. Not sure if it is the TXT editor im using or what, but I make the exact change above and the \u0026 still appears in the URL. I am using Windows7 x64. Thanks.

Outbreak Monkey
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2011 02:13

Re: Playing YouTube videos with VLC - mystery error

Postby Outbreak Monkey » 26 Mar 2011 05:16

Here's the LUA script that I'm using:

http://outbreakmonkey.org/youtubelua.zip

Unzip it to youtube.lua in the lua directory (take a copy of your original first might be a good idea).

Cheers,
ObM.

ronnie.bose
New Cone
New Cone
Posts: 2
Joined: 24 Mar 2011 03:46

Re: Playing YouTube videos with VLC - mystery error

Postby ronnie.bose » 26 Mar 2011 06:29

Thanks a lot !!!
It works perfectly on Windows7 x64 too :)

sdfsd23
New Cone
New Cone
Posts: 1
Joined: 26 Mar 2011 22:07

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby sdfsd23 » 26 Mar 2011 22:11

Is there anyway to modify the LUA script to allow the user to choose a resolution when playing? I don't want to be forced to download 1080p, sometimes I just want 360. The vimeo LUA allows this quite nicely.

zlorgeblub
New Cone
New Cone
Posts: 3
Joined: 26 Mar 2011 23:35

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby zlorgeblub » 26 Mar 2011 23:44

Merci beaucoup !!
Thanks a lot
It works perfectly too

Outbreak Monkey
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2011 02:13

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby Outbreak Monkey » 27 Mar 2011 03:56

Just checked the trac (http://trac.videolan.org/vlc/ticket/4608), looks like it's been fixed and will be in VLC 1.1.9

- seems to be in the nightly builds too.

Thanks VLC team.

Cheers,
ObM..

technodeviant
New Cone
New Cone
Posts: 3
Joined: 24 Mar 2011 20:56

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby technodeviant » 29 Mar 2011 03:39

So strange, I am still having probelms with my win7 x64. I used the above LUA script on an xp x86 PC, and it worked perfectly! Any thoughts on this?

Outbreak Monkey
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2011 02:13

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby Outbreak Monkey » 29 Mar 2011 10:07

Try the nightly builds? Or grab the youtube script from the nightly builds (even if you're not updating fully)

I dunno, but it seems that there's been a shift to using complied lua scripts (.luac) that are built when VLC is compiled..

Perhaps compiled scripts are used in preference to .lua scripts? Or whether the .lua is used in the newer versions at all, I don't know..

If you have both youtube.lua and youtube.luac, maybe try moving the .luac out of the directory?

Just a thought, unsure if it's the case or not.

Finally, you could try a compiled version of that LUA script:
I ran the .lua script through the lua compiler.. It's available here - http://outbreakmonkey.org/youtubelua_c.zip
--try it if you're game! :) It seems to work on my Mac..

Cheers,
ObM.

Bill_MI
Blank Cone
Blank Cone
Posts: 12
Joined: 22 Jul 2010 12:26
VLC version: 2.0.0
Operating System: Linux

For Linux Users

Postby Bill_MI » 03 Apr 2011 14:37

After discovering /usr/lib/vlc/lua/playlist/youtube.luac was a compiled version I tried a hunch and replaced it with the not-compiled fixed-up youtube.lua file from an XP install. Works great! Apparently, it doesn't matter if it's compiled or not.

I use Parcellite (a clipboard manager) to kick off youtube URLs with resolution (fmt=XXX) selection and love it! :-)
Bill In Michigan

AscheN
New Cone
New Cone
Posts: 1
Joined: 06 Apr 2011 16:12

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby AscheN » 06 Apr 2011 16:19

Edited the .lua as you said and it worked :) I have vlc 1.1.8 on win7 32-bit :) Thanks mate, you rock !!

The Dude 
Blank Cone
Blank Cone
Posts: 22
Joined: 17 Jul 2007 10:40

 

Postby The Dude  » 07 Apr 2011 17:22

Congrats everyone!

Seems like we have alot of talented people here...

The VLC team is quite lucky indeed :)

Lucky7
New Cone
New Cone
Posts: 3
Joined: 08 Apr 2011 08:09

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby Lucky7 » 08 Apr 2011 08:14

Hey I have the same problems with metacafe and vimeo.I used the Lua script for Youtube and it worked thanks.I hope the rest will be resolved.

ronniegordon
New Cone
New Cone
Posts: 2
Joined: 09 Apr 2011 16:15

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby ronniegordon » 09 Apr 2011 16:25

Hi - please forgive me for not being very technically minded but could someone please tell me in language suitable for simpletons like me how to get round this youtube problem? I'd be very grateful! :D

Outbreak Monkey
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2011 02:13

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby Outbreak Monkey » 09 Apr 2011 23:46

ronniegordon: What operating system are you using? Windows XP? Vista? Windows 7? Mac OS 10? Linux ??

ronniegordon
New Cone
New Cone
Posts: 2
Joined: 09 Apr 2011 16:15

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby ronniegordon » 10 Apr 2011 13:19

Hi Outbreak Monkey - I am using Windows 7

sol_hotels
New Cone
New Cone
Posts: 1
Joined: 15 Apr 2011 15:23

Re: Playing YouTube videos with VLC - mystery error [SOLVED]

Postby sol_hotels » 15 Apr 2011 15:28

Thank you very much!!! I was loosing my head over this issue. I work at an hotel. In our entrance halls, we have a terminal where people can watch a presentation video of the hotel and its premises. We use VLC for this! :wink:


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests