vlc 1.1.11 youtube crash

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
freemarket
Blank Cone
Blank Cone
Posts: 11
Joined: 17 Jul 2011 06:42

Re: vlc 1.1.11 youtube crash

Postby freemarket » 04 Aug 2011 22:07

Cask -- I just tried your fix and it worked!

You are da man!

The Youtube management are jerks.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 04 Aug 2011 22:44

lol the last incarnation of this post was a freudian slip lol

freemarket: i dont think they did the changes to block vlc. it looks more like normal api changes.

freemarket
Blank Cone
Blank Cone
Posts: 11
Joined: 17 Jul 2011 06:42

Re: vlc 1.1.11 youtube crash

Postby freemarket » 05 Aug 2011 00:31

On a related issue, my FreeYoutubeDownloader also stopped working.
So, I downloaded the latest version v3.3.89.0 and that fixed it.

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: vlc 1.1.11 youtube crash

Postby vilapupu » 06 Aug 2011 02:14

Thanks for the youtube.lua fix. ^w^
I tested it with windows vista Home premium x86 and Windows 7 Home Premium x64 and it works perfectly. ^^

japnukeplant
New Cone
New Cone
Posts: 8
Joined: 06 Aug 2011 03:14

Re: vlc 1.1.11 youtube crash

Postby japnukeplant » 06 Aug 2011 03:18

Hi Casketizer,
How do I download the code in its original format (txt format without all the indents). When I copy and paste the code in the lined format, it does not work. I had a similar problem with DailyMotion when I was copying and pasting the lua. The fix worked when I downloaded the lua as a txt file and pasted over the original

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 12:01

It should work with simple cut and paste. It does for me. The indentations are there for a reason.
Maybe whatever text editor you use breaks the formatting. I recommend ultraedit on windows. Notepad will do too, though. Wordwrap might cause breakage if saved.

For your convenience here is the file i use.
http://www.mediafire.com/?xtuntt7ijts3692

Edit:This code was only tested on vlc 1.1.10 and 1.1.11!

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 16:32

how to you change the youtube.lua file to automatically play youtube clips to launch at 480p rather than the highest quality format for the video file. iv tried but had no luck. thank.

also i find that downloading the file above and replacing it with the file on your hard drive works, rather than cutting and pasting the text, cut and paste the whole file.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 16:39

this part of the post is superseded by next post :)
I have tested and made sure that a simple copy and paste of the code will work. It worked for others.
Last edited by Casketizer on 06 Aug 2011 17:12, edited 1 time in total.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 17:07

Actually after looking at the script again, you don't need to change a thing. It's already built in.
Just add &fmt=xx to the url where xx is the youtube format code. 18 , 43, 45 are possible numbers but there are others. I think 43 corresponds to 480p.
Google is ur friend.
I.E.
entering

Code: Select all

http://www.youtube.com/watch?v=MwugfiExwsM&fmt=43
in vlc
should give u a 480p video

Keep in mind that not all videos are available in all formats.

japnukeplant
New Cone
New Cone
Posts: 8
Joined: 06 Aug 2011 03:14

Re: vlc 1.1.11 youtube crash

Postby japnukeplant » 06 Aug 2011 18:52

Thanks casketizer

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 19:12

Thanks casketizer
i knew of the above method you gave but i would have preferred it to automatically play to say 480p instead of playing at the highest quality vlc player does. i found that the numbers should end in 18, 22, 34 or 35, for some reason different numbers work for different videos. i guess this problem will be fixed in the time ahead so that a default play quality can be set.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 19:19

I just did some tests.
You actually can do this:
In Line 62
replace

Code: Select all

fmt = get_url_param( vlc.path, "fmt" )
with

Code: Select all

fmt=43
And it will limit it to 480p and fall back to lower res if 480p is unavailable.

I only tested a few videos, so it (the fallback) is not thoroughly tested.

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 20:26

ye i tried the above but like you said it will not wrk for videos that do not have 48-p videos, so what im looking for is the max video quality to be 480p and no higher. and like you said i do have low bandwidth, but also my CPU goes to 99% when playing videos above 480p. but if i play any video in a browser of any quality in full screen it'll send my CPU through the sky, hence why I want to use vlc player to play my youtube clips through it.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 20:30

Actually it does work. It falls back to 240p or 360p for me. but I did not try many videos.

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 20:37

i change the line but the video doesnt work, cud u copy and PM the script pls?

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 20:45

sent u a pm with the link.
you should use a better text editor if you cant even make a simple line edit :)

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 21:01

im using notepad, and the script works for a few videos iv tried but not some, as an error comes up in windows.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 21:16

Most likely they are restricted videos. Those are always problematic in unofficial youtube apps.

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 21:19

ye iv tried a few videos the majority seem to play fine, but some do not, but all the videos i tried to play with the scipt you posted in this post all work.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 21:22

Most likely for those there is no lower fallback available. Restricted content is always problematic.

esco
New Cone
New Cone
Posts: 7
Joined: 06 Aug 2011 16:30

Re: vlc 1.1.11 youtube crash

Postby esco » 06 Aug 2011 21:26

about 80% of the videos have worked so far, so this is a good script if you want only 480p videos. however it may be better to manually and &fmt=XX and try adding where XX either 18, 22, 34, 35, 43, 45. as one of these usually plays the lower quality of the video file. i will keep trying and see of any outcomes to get the script to automatically play upto 480p and no higher.

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 06 Aug 2011 21:35

AFAIK 18 is 240p stereo and now the lowest available format and is always available. You can also experiment with other numbers in the Line62 statement. Maybe you find something useful.


Note to other readers:
esco and I are discussing a special version of the youtube lua.
If you just want youtube to work paste youtube.lua from here:
viewtopic.php?f=14&t=92502#p307353
or download it from here:
viewtopic.php?f=14&t=92502#p307537
It will always play best format available, as usual.

Jerbear
New Cone
New Cone
Posts: 5
Joined: 06 Mar 2011 17:40

Re: vlc 1.1.11 youtube crash

Postby Jerbear » 07 Aug 2011 05:04

Hi,
how do I turn on logging/warnings to debug the Lua script involved? I pasted your thingy into Youtube.lua, but it still crashes.

thanks

Casketizer
Blank Cone
Blank Cone
Posts: 31
Joined: 05 May 2004 04:10

Re: vlc 1.1.11 youtube crash

Postby Casketizer » 08 Aug 2011 06:18

Download it from the link above and replace the file under lua\playlists. I doubt debugging output would be of much help to you if you don't even know how to enable it. The script works fine when replaced correctly. If you cant even replace a file what use would debugging output have?

PS: almost 200 downloads atm and I think if there was a problem with the script this thread would be fuller...

Jerbear
New Cone
New Cone
Posts: 5
Joined: 06 Mar 2011 17:40

Re: vlc 1.1.11 youtube crash

Postby Jerbear » 08 Aug 2011 11:49

Well, I wanted to enable logging to see what the issue was. I assumed your script was fine, and that I'm doing something stupid somehow, or that something else is dying along the way.

Here's what I did. I'd be grateful if you can suggest what I need to do differently.

I downloaded the file hosted at that Mediafire link (http://www.mediafire.com/?xtuntt7ijts3692) ontop of VLC/lua/playlist/youtube.lua.
I checked the modified date on youtube.lua to make sure I'd picked the right file to overwrite.
I tried http://www.youtube.com/watch?v=bvWYw0CnuSI in the "Open Network Stream" box.
Just to rule it out, no http proxy is required.

Are there any settings (Windows/VLC or otherwise) that come to mind that might be upsetting proceedings? I'm using the latest VLC (Updated before I tried anything at all, using the Help/check for updates thing, and it reports itself as 1.1.11) on Win XP with more or less default settings.

Nothing appears in the designated log file (set in All preferences/Advanced/Logging) with verbosity = 2 or 3. Though perhaps I've just set that up wrong.

The box I'm testing on plays local flvs fine through VLC.

thanks


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests