Youtube help

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
TekkersT
New Cone
New Cone
Posts: 5
Joined: 22 Jul 2010 20:06

Youtube help

Postby TekkersT » 22 Jul 2010 20:12

as of yesterday when i try to use the 'Open network stream' feature to play youtube videos i get an error and no videos will play ,it was fine up until yesterday

for instance , i tried this link http://www.youtube.com/watch?v=xIp6cxOjKUE and the reply window i get says :



File reading failed:
VLC could not open the file "http:\/\/v18.lscache6.c.youtube.com\/videoplayback?ip=81.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=902219%2C907040&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1279846800&key=yt1&signature=B0C1EF0E359D060BA3250C590A0A05DA7E66AFB3.1A9C591923E5DB88C17CD9FA788C1AD753046535&factor=1.25&id=c48a7a7313a32941".
Your input can't be opened:
VLC is unable to open the MRL 'http:\/\/v18.lscache6.c.youtube.com\/videoplayback?ip=81.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=902219%2C907040&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1279846800&key=yt1&signature=B0C1EF0E359D060BA3250C590A0A05DA7E66AFB3.1A9C591923E5DB88C17CD9FA788C1AD753046535&factor=1.25&id=c48a7a7313a32941'. Check the log for details.


Help would be most appreciated

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Youtube help

Postby Jean-Baptiste Kempf » 22 Jul 2010 23:27

VLC version ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Trase
New Cone
New Cone
Posts: 1
Joined: 23 Jul 2010 00:33

Re: Youtube help

Postby Trase » 23 Jul 2010 00:37

I am encountering this exact problem with version 1.1.1 on Windows 7 x64. Any assistance would be appreciated.

IamZombie
New Cone
New Cone
Posts: 6
Joined: 23 Jul 2010 02:53

Re: Youtube help

Postby IamZombie » 23 Jul 2010 02:56

I also have the same problem, I just updated to 1.1.1 tonight.


File reading failed:
VLC could not open the file "http:\/\/v17.lscache8.c.youtube.com\/videoplayback?ip=75.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass&fexp=900802&itag=22&ipbits=8&sver=3&ratebypass=yes&expire=1279868400&key=yt1&signature=A1B47D9795C0F906FF838BFA1C6495992843D4B9.A19C8EE954DC6ADF1B555FCEABD862925FB6891F&id=e837182deae91681".
Your input can't be opened:
VLC is unable to open the MRL 'http:\/\/v17.lscache8.c.youtube.com\/videoplayback?ip=75.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass&fexp=900802&itag=22&ipbits=8&sver=3&ratebypass=yes&expire=1279868400&key=yt1&signature=A1B47D9795C0F906FF838BFA1C6495992843D4B9.A19C8EE954DC6ADF1B555FCEABD862925FB6891F&id=e837182deae91681'. Check the log for details.

etn
New Cone
New Cone
Posts: 3
Joined: 23 Jul 2010 05:05

Re: Youtube help

Postby etn » 23 Jul 2010 05:13

I received the error with v1.1.1 on winxp-sp2
I then reverted to v1.1.0 and got a similar error.

test URL:
http://www.youtube.com/watch?v=dMH0bHeiRNg

v1.1.0

File reading failed:
VLC could not open the file "http:\/\/v13.lscache6.c.youtube.com\/videoplayback?ip=71.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=903708%2C907046&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1279879200&key=yt1&signature=3A8CD63908640A4B5BA1441A5F6A57C41CAA710D.C83CE0A79B5FAC69A1083A23EBF0A310BB09F4B2&factor=1.25&id=74c1f46c77a244d8".
Your input can't be opened:
VLC is unable to open the MRL 'http:\/\/v13.lscache6.c.youtube.com\/videoplayback?ip=71.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=903708%2C907046&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1279879200&key=yt1&signature=3A8CD63908640A4B5BA1441A5F6A57C41CAA710D.C83CE0A79B5FAC69A1083A23EBF0A310BB09F4B2&factor=1.25&id=74c1f46c77a244d8'. Check the log for details.



v1.1.1

File reading failed:
VLC could not open the file "http:\/\/v13.lscache6.c.youtube.com\/videoplayback?ip=71.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=904510&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1279879200&key=yt1&signature=3A8CD63908640A4B5BA1441A5F6A57C41CAA710D.C83CE0A79B5FAC69A1083A23EBF0A310BB09F4B2&factor=1.25&id=74c1f46c77a244d8".
Your input can't be opened:
VLC is unable to open the MRL 'http:\/\/v13.lscache6.c.youtube.com\/videoplayback?ip=71.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=904510&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1279879200&key=yt1&signature=3A8CD63908640A4B5BA1441A5F6A57C41CAA710D.C83CE0A79B5FAC69A1083A23EBF0A310BB09F4B2&factor=1.25&id=74c1f46c77a244d8'. Check the log for details.

TekkersT
New Cone
New Cone
Posts: 5
Joined: 22 Jul 2010 20:06

Re: Youtube help

Postby TekkersT » 23 Jul 2010 14:16

So its not just me then , i wonder what's changed for this to stop working , i was really enjoying using vlc rather than listening to sometimes inaudible videos on youtube

TokyoAussie
New Cone
New Cone
Posts: 2
Joined: 23 Jul 2010 16:42

Re: Youtube help

Postby TokyoAussie » 23 Jul 2010 16:47

I have exactly the same problem. The main thing that looks different to me at first glance is that the slash characters in the source URL in media information are being escaped by backslashes. i.e. "http://www....." becomes "http:\/\/www..." and that would be enough to throw off the URL (so the file cannot be found). Why this happens is a mystery to me. At least I don't remember seeing those backslashes before.

I was mucking around when this all started. Sometimes a file would play, then not. Now it is a firmly will not play at all. This is one of my major uses for VLC so I am hoping for a quick fix soon.

TekkersT
New Cone
New Cone
Posts: 5
Joined: 22 Jul 2010 20:06

Re: Youtube help

Postby TekkersT » 23 Jul 2010 20:11

VLC version ?
The latest version .

Have you any idea what the problem is ? im not very technical , its worked fine everytime for me then all of a sudden it stopped working completely

Maybe youtube changed something ?

etn
New Cone
New Cone
Posts: 3
Joined: 23 Jul 2010 05:05

Re: Youtube help

Postby etn » 24 Jul 2010 06:17

I have exactly the same problem. The main thing that looks different to me at first glance is that the slash characters in the source URL in media information are being escaped by backslashes. i.e. "http://www....." becomes "http:\/\/www..." and that would be enough to throw off the URL (so the file cannot be found). Why this happens is a mystery to me. At least I don't remember seeing those backslashes before.
If you look at the source for any youtube page, they escape the backslashes also. I don't know if they always did, but currently they do, so out of hand I don't know if that's the main problem.

Maybe youtube changed something ?
That's the most likely scenario. The only think we can hope for is vlc to change the way it parses and reads URLS from youtube pages, to fix it again.
But there is nothing stopping youtube from breaking it again.

kovezett
Blank Cone
Blank Cone
Posts: 51
Joined: 12 Mar 2009 19:57

Re: Youtube help

Postby kovezett » 24 Jul 2010 14:46

You can try this youtube.lua script:

Code: Select all

--[[ $Id$ Copyright © 2007-2009 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. --]] -- Helper function to get a parameter's value in a URL function get_url_param( url, name ) local _, _, res = string.find( url, "[&?]"..name.."=([^&]*)" ) return res end function get_arturl( path, video_id ) if string.match( vlc.path, "iurl=" ) then return vlc.strings( get_url_param( vlc.path, "iurl" ) ) end if not arturl then return "http://img.youtube.com/vi/"..video_id.."/default.jpg" end end -- Probe function. function probe() if vlc.access ~= "http" then return false end youtube_site = string.match( string.sub( vlc.path, 1, 8 ), "youtube" ) if not youtube_site then -- FIXME we should be using a builtin list of known youtube websites -- like "fr.youtube.com", "uk.youtube.com" etc.. youtube_site = string.find( vlc.path, ".youtube.com" ) if youtube_site == nil then return false end end return ( string.match( vlc.path, "watch%?v=" ) -- the html page or string.match( vlc.path, "watch_fullscreen%?video_id=" ) -- the fullscreen page or string.match( vlc.path, "p.swf" ) -- the (old?) player url or string.match( vlc.path, "jp.swf" ) -- the (new?) player url (as of 24/08/2007) or string.match( vlc.path, "player2.swf" ) ) -- another player url end -- Parse function. function parse() if string.match( vlc.path, "watch%?v=" ) then -- This is the HTML page's URL while true do -- Try to find the video's title line = vlc.readline() if not line then break end if string.match( line, "<meta name=\"title\"" ) then _,_,name = string.find( line, "content=\"(.-)\"" ) end if string.match( line, "<meta name=\"description\"" ) then -- Don't ask me why they double encode ... _,_,description = vlc.strings.resolve_xml_special_chars(vlc.strings.resolve_xml_special_chars(string.find( line, "content=\"(.-)\"" ))) end if string.match( line, "subscribe_to_user=" ) then _,_,artist = string.find( line, "subscribe_to_user=([^&]*)" ) end -- CURRENT: var swfHTML = (isIE) ? "<object [...]><param name=\"flashvars\" value=\"rv.2.thumbnailUrl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2F3MLp7YNTznE%2Fdefault.jpg&rv.7.length_seconds=384 [...] &video_id=OHVvVmUNBFc [...] &t=OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp [...] if string.match( line, "swfHTML" ) and string.match( line, "video_id" ) then _,_,t = string.find( line, "&t=(.-)&" ) -- OLD 1: var swfArgs = {hl:'en',BASE_YT_URL:'http://youtube.com/',video_id:'XPJ7d8dq0t8',l:'292',t:'OEgsToPDskLFdOYrrlDm3FQPoQBYaCP1',sk:'0gnr-AE6QZJEZmCMd3lq_AC'}; -- OLD 2: var swfArgs = { "BASE_YT_URL": "http://youtube.com", "video_id": "OHVvVmUNBFc", "l": 88, "sk": "WswKuJzDBsdD6oG3IakCXgC", "t": "OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp", "plid": "AARGnwWMrmGkbpOxAAAA4AT4IAA", "tk": "mEL4E7PqHeaZp5OG19NQThHt9mXJU4PbRTOw6lz9osHi4Hixp7RE1w=="}; -- OLD 3: 'SWF_ARGS': { [a lot of stuff...], "video_id": "OHVvVmUNBFc", "sk": "WswKuJzDBsdD6oG3IakCXgC", "t": "OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp", "plid": "AARGnwWMrmGkbpOxAAAA4AT4IAA"}; elseif ( string.match( line, "SWF_ARGS" ) or string.match( line, "swfArgs" ) ) and string.match( line, "video_id" ) then if string.match( line, "BASE_YT_URL" ) then _,_,base_yt_url = string.find( line, "\"BASE_YT_URL\": \"(.-)\"" ) end _,_,t = string.find( line, "\"t\": \"(.-)\"" ) -- vlc.msg.err( t ) -- video_id = string.gsub( line, ".*&video_id:'([^']*)'.*", "%1" ) end if name and description and artist --[[and video_id]] then break end end if not video_id then video_id = get_url_param( vlc.path, "v" ) end if not base_yt_url then base_yt_url = "http://youtube.com/" end arturl = get_arturl( vlc.path, video_id ) -- fmt is the format of the video: 18 is HQ (mp4) fmt = get_url_param( vlc.path, "fmt" ) if fmt then format = "&fmt=" .. fmt else format = "" end if t then return { { path = base_yt_url .. "get_video?video_id="..video_id.."&t="..t.."&asv="..format; name = name; description = description; artist = artist; arturl = arturl } } else -- This shouldn't happen ... but keep it as a backup. return { { path = "http://www.youtube.com/v/"..video_id; name = name; description = description; artist = artist; arturl = arturl } } end else -- This is the flash player's URL if string.match( vlc.path, "title=" ) then name = get_url_param( vlc.path, "title" ) end video_id = get_url_param( vlc.path, "video_id" ) arturl = get_arturl( vlc.path, video_id ) fmt = get_url_param( vlc.path, "fmt" ) if fmt then format = "&fmt=" .. fmt else format = "" end if not string.match( vlc.path, "t=" ) then -- This sucks, we're missing "t" which is now mandatory. Let's -- try using another url return { { path = "http://www.youtube.com/v/"..video_id; name = name; arturl = arturl } } end return { { path = "http://www.youtube.com/get_video.php?video_id="..video_id.."&t="..get_url_param( vlc.path, "t" ).."&asv="..format; name = name; arturl = arturl } } end end

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

Re: Youtube help

Postby Rémi Denis-Courmont » 24 Jul 2010 15:23

YouTube changed the page layout. You need to update to VLC 1.1.1-15-gebd7e0c or later.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

TokyoAussie
New Cone
New Cone
Posts: 2
Joined: 23 Jul 2010 16:42

Re: Youtube help

Postby TokyoAussie » 24 Jul 2010 17:12

Update solves some issues, I presume, but Youtube issue is not one of them (at least not on mac).

TekkersT
New Cone
New Cone
Posts: 5
Joined: 22 Jul 2010 20:06

Re: Youtube help

Postby TekkersT » 24 Jul 2010 18:49

Update solves some issues, I presume, but Youtube issue is not one of them (at least not on mac).
yeah iv got the latest and still cant watch youtube videos also

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

Re: Youtube help

Postby Rémi Denis-Courmont » 24 Jul 2010 20:22

For people with vision problems, I will state it a second time in larger letters:
You need to update to VLC 1.1.1-15-gebd7e0c or later.
Obviously, if you have VLC 1.1.1, it is not going to work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

TekkersT
New Cone
New Cone
Posts: 5
Joined: 22 Jul 2010 20:06

Re: Youtube help

Postby TekkersT » 25 Jul 2010 00:05

For people with vision problems, I will state it a second time in larger letters:
You need to update to VLC 1.1.1-15-gebd7e0c or later.
Obviously, if you have VLC 1.1.1, it is not going to work.
who do you think your posting to ? why so arrogant ? wtf is your problem ?

we are here asking for help !!! if you cant help then you best go away . never in my life have i read such an ignorant response .

What a horrible person and unhelpfull character .

absolutely stunned here , all i wanted was help and all i got was patronised , incredible

etn
New Cone
New Cone
Posts: 3
Joined: 23 Jul 2010 05:05

Re: Youtube help

Postby etn » 25 Jul 2010 04:54

I haven't found it yet either, however, I think you two guys who are being so rude should take that elsewhere.

You probably would've gotten a lot more help if you had nicely asked for a link.

IamZombie
New Cone
New Cone
Posts: 6
Joined: 23 Jul 2010 02:53

Re: Youtube help

Postby IamZombie » 25 Jul 2010 09:00

I haven't found it yet either, however, I think you two guys who are being so rude should take that elsewhere.

You probably would've gotten a lot more help if you had nicely asked for a link.

What help?
His only reply was to yell that we need to upgrade to some unreleased/non-public version.
Forum rules
Be polite when posting, and please refrain from using insults or other abusive language.
Don't use ALL CAPITALS EVERYWHERE or very big text or a lot of color in your posting. This is considered to be highly annoying and will most likely result in no one answering you.

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

Re: Youtube help

Postby Rémi Denis-Courmont » 25 Jul 2010 09:27

I haven't found it yet either, however, I think you two guys who are being so rude should take that elsewhere.

You probably would've gotten a lot more help if you had nicely asked for a link.
http://git.videolan.org/?p=vlc/vlc-1.1. ... 211e535e66
I haven't checked the nightly builds status, but it should be in.
What help?
His only reply was to yell that we need to upgrade to some unreleased/non-public version.
No. My response was to point that out. Then when another two people completely ignored the response (not even bothering to ask clarifications, you know), I wrote the same thing again in larger fonts. And, for those who don't understand version numbers, I even added that, well it is more recent than 1.1.1.

And no big news here. When a bug is fixed in the latest develoment version, the bug is fixed. Over. That's how our bug tracker has worked for years, and that's how the whole software industry works internally. This is especially true for open-source: http://git.videolan.org/?p=vlc/vlc-1.1. ... 211e535e66

The project simply cannot make a full blown release for every fix that is delivered (I count already 220 individual changes since 1.1.0). And even if we could, what do you guys would think if we had the auto-update kicking every 4 hours (220 changes in 35 days), and how do you think the download servers would cope?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kovezett
Blank Cone
Blank Cone
Posts: 51
Joined: 12 Mar 2009 19:57

Re: Youtube help

Postby kovezett » 25 Jul 2010 15:17

1. Find the youtube.lua file on your computer.
2. Open it with a text editor.
3. Replace the text with this:

Code: Select all

--[[ $Id$ Copyright © 2007-2009 the VideoLAN team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. --]] -- Helper function to get a parameter's value in a URL function get_url_param( url, name ) local _, _, res = string.find( url, "[&?]"..name.."=([^&]*)" ) return res end function get_arturl( path, video_id ) if string.match( vlc.path, "iurl=" ) then return vlc.strings( get_url_param( vlc.path, "iurl" ) ) end if not arturl then return "http://img.youtube.com/vi/"..video_id.."/default.jpg" end end -- Probe function. function probe() if vlc.access ~= "http" then return false end youtube_site = string.match( string.sub( vlc.path, 1, 8 ), "youtube" ) if not youtube_site then -- FIXME we should be using a builtin list of known youtube websites -- like "fr.youtube.com", "uk.youtube.com" etc.. youtube_site = string.find( vlc.path, ".youtube.com" ) if youtube_site == nil then return false end end return ( string.match( vlc.path, "watch%?v=" ) -- the html page or string.match( vlc.path, "watch_fullscreen%?video_id=" ) -- the fullscreen page or string.match( vlc.path, "p.swf" ) -- the (old?) player url or string.match( vlc.path, "jp.swf" ) -- the (new?) player url (as of 24/08/2007) or string.match( vlc.path, "player2.swf" ) ) -- another player url end -- Parse function. function parse() if string.match( vlc.path, "watch%?v=" ) then -- This is the HTML page's URL while true do -- Try to find the video's title line = vlc.readline() if not line then break end if string.match( line, "<meta name=\"title\"" ) then _,_,name = string.find( line, "content=\"(.-)\"" ) end if string.match( line, "<meta name=\"description\"" ) then -- Don't ask me why they double encode ... _,_,description = vlc.strings.resolve_xml_special_chars(vlc.strings.resolve_xml_special_chars(string.find( line, "content=\"(.-)\"" ))) end if string.match( line, "subscribe_to_user=" ) then _,_,artist = string.find( line, "subscribe_to_user=([^&]*)" ) end -- CURRENT: var swfHTML = (isIE) ? "<object [...]><param name=\"flashvars\" value=\"rv.2.thumbnailUrl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2F3MLp7YNTznE%2Fdefault.jpg&rv.7.length_seconds=384 [...] &video_id=OHVvVmUNBFc [...] &t=OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp [...] if string.match( line, "swfHTML" ) and string.match( line, "video_id" ) then _,_,t = string.find( line, "&t=(.-)&" ) -- OLD 1: var swfArgs = {hl:'en',BASE_YT_URL:'http://youtube.com/',video_id:'XPJ7d8dq0t8',l:'292',t:'OEgsToPDskLFdOYrrlDm3FQPoQBYaCP1',sk:'0gnr-AE6QZJEZmCMd3lq_AC'}; -- OLD 2: var swfArgs = { "BASE_YT_URL": "http://youtube.com", "video_id": "OHVvVmUNBFc", "l": 88, "sk": "WswKuJzDBsdD6oG3IakCXgC", "t": "OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp", "plid": "AARGnwWMrmGkbpOxAAAA4AT4IAA", "tk": "mEL4E7PqHeaZp5OG19NQThHt9mXJU4PbRTOw6lz9osHi4Hixp7RE1w=="}; -- OLD 3: 'SWF_ARGS': { [a lot of stuff...], "video_id": "OHVvVmUNBFc", "sk": "WswKuJzDBsdD6oG3IakCXgC", "t": "OEgsToPDskK3zO44y0QN8Fr5ZSAZwCQp", "plid": "AARGnwWMrmGkbpOxAAAA4AT4IAA"}; elseif ( string.match( line, "SWF_ARGS" ) or string.match( line, "swfArgs" ) ) and string.match( line, "video_id" ) then if string.match( line, "BASE_YT_URL" ) then _,_,base_yt_url = string.find( line, "\"BASE_YT_URL\": \"(.-)\"" ) end _,_,t = string.find( line, "\"t\": \"(.-)\"" ) -- vlc.msg.err( t ) -- video_id = string.gsub( line, ".*&video_id:'([^']*)'.*", "%1" ) end if name and description and artist --[[and video_id]] then break end end if not video_id then video_id = get_url_param( vlc.path, "v" ) end if not base_yt_url then base_yt_url = "http://youtube.com/" end arturl = get_arturl( vlc.path, video_id ) -- fmt is the format of the video: 18 is HQ (mp4) fmt = get_url_param( vlc.path, "fmt" ) if fmt then format = "&fmt=" .. fmt else format = "" end if t then return { { path = base_yt_url .. "get_video?video_id="..video_id.."&t="..t.."&asv="..format; name = name; description = description; artist = artist; arturl = arturl } } else -- This shouldn't happen ... but keep it as a backup. return { { path = "http://www.youtube.com/v/"..video_id; name = name; description = description; artist = artist; arturl = arturl } } end else -- This is the flash player's URL if string.match( vlc.path, "title=" ) then name = get_url_param( vlc.path, "title" ) end video_id = get_url_param( vlc.path, "video_id" ) arturl = get_arturl( vlc.path, video_id ) fmt = get_url_param( vlc.path, "fmt" ) if fmt then format = "&fmt=" .. fmt else format = "" end if not string.match( vlc.path, "t=" ) then -- This sucks, we're missing "t" which is now mandatory. Let's -- try using another url return { { path = "http://www.youtube.com/v/"..video_id; name = name; arturl = arturl } } end return { { path = "http://www.youtube.com/get_video.php?video_id="..video_id.."&t="..get_url_param( vlc.path, "t" ).."&asv="..format; name = name; arturl = arturl } } end end
4. Save the file.

That's all.

Anfe
New Cone
New Cone
Posts: 1
Joined: 26 Jul 2010 00:08

Re: Youtube help

Postby Anfe » 26 Jul 2010 00:10

Thanks kovezett.
I've changed the youtube.lua file and now it works.
I can watch youtube videos on VLC. :D

IamZombie
New Cone
New Cone
Posts: 6
Joined: 23 Jul 2010 02:53

Re: Youtube help

Postby IamZombie » 26 Jul 2010 02:38

OK, thank you for the help, I can now view youtube videos in VLC.

Now how do I save them?
If I convert them, all I get is a ~200 byte file.

I'm trying to save just the audio from a video.

vilapupu
Blank Cone
Blank Cone
Posts: 28
Joined: 01 Jun 2009 04:15
VLC version: 3.0.12
Operating System: Win 10 Pro x64
Location: MD, USA

Re: Youtube help

Postby vilapupu » 26 Jul 2010 10:34

OK, so I was getting this problem today, so instead of making a topic about it, I just tried looking it first if the bug was reported and saw this. ^^
did the youtube.lua file thing and it worked! ^^
Now, I did this differently since I have Windows Vista so I will tell on how I did it:

1st was to look for the file. I just pressed on Start, then "Computer", then to "Local Disk (C:)" and then I copy and pasted ' youtube.lua ' in the top right corner of the screen. (for quick results, go to the "Program Files" folder when searching the " youtube.lua ".

2nd was to Open the youtube.lua file with WordPad. then I just deleted everything in the document and copy and pasted all from the new text that was posted here

3rd was that Before saving, to Right-click the file 'youtube.lua' and press on "Properties". Then from there I went to the "Security" Tab, clicked on "Edit", press on Continue to the pop-up window, and then checked the "Full Control" in 'User' (will say your username of your PC) and clicked OK.

4rd was the simplest one and it was to go back to the WordPad Document and click on "Save". and close it.


Hope this was useful for Win Vista (and probally Windows 7 users) to not get the "access denied" or "can't save" message when editing "youtube.lua" in Wordpad or in any other text editing program.

migawka
Blank Cone
Blank Cone
Posts: 10
Joined: 01 Apr 2010 02:23
Location: Poland

Re: Youtube help

Postby migawka » 29 Jul 2010 15:23

hi, can someone change the youtube.lua code to force VLC to play higher quality videos 480p? thanks
VLC v1.1.5, OS Windows XP Pro SP3

kovezett
Blank Cone
Blank Cone
Posts: 51
Joined: 12 Mar 2009 19:57

Re: Youtube help

Postby kovezett » 29 Jul 2010 16:21

hi, can someone change the youtube.lua code to force VLC to play higher quality videos 480p? thanks
You can add fmt switchers to the URL:

Original LQ FLV:

http://www.youtube.com/watch?v=Yy2uHAS-el0

MPG: add &fmt=18

http://www.youtube.com/watch?v=Yy2uHAS-el0&fmt=18

FLV: add &fmt=34

http://www.youtube.com/watch?v=Yy2uHAS-el0&fmt=34

HQ FLV: add &fmt=35

http://www.youtube.com/watch?v=Yy2uHAS-el0&fmt=35

HD MP4: add &fmt=22

http://www.youtube.com/watch?v=Yy2uHAS-el0&fmt=22

migawka
Blank Cone
Blank Cone
Posts: 10
Joined: 01 Apr 2010 02:23
Location: Poland

Re: Youtube help

Postby migawka » 29 Jul 2010 20:35

I don't want add anything to the URLs, I want youtube.lua to open automatically 480p
VLC v1.1.5, OS Windows XP Pro SP3


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests