The Un-Official Proxomitron Forum
Youtube high quality? - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Website Customization (/forumdisplay.php?fid=9)
+--- Thread: Youtube high quality? (/showthread.php?tid=1038)

Pages: 1 2 3 4


Youtube high quality? - Guest - May. 14, 2008 09:04 AM

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "! : URL: Use Youtube High Quanlity(Out)"
URL = "(http://youtube.com)(/watch\?*)\#$SET(#=&fmt=18)\#&$JUMP(http://\@)"

Why doesn't my youtube high quanlity work?

firefox 3.b5 using last sikdi set(Jan08 Beta)


RE: Youtube hight quality? - ProxRocks - May. 14, 2008 12:59 PM

[header] filters are actually quite tricky and i tend to stick with [pattern] filters...

try this:
Code:
[Patterns]
Name = "<a>: YouTube: Use High Quanlity - 5.14.08 {ProxFox} [add]"
Active = TRUE
URL = "$TYPE(htm)[^/]++.youtube.com/"
Bounds = <a\s*>"
Limit = 1024
Match = "\1("\/watch\?v\=\2)\3"\4"
Replace = "\1\3&fmt=18"\4"


(my test had it placed at the bottom of the |||...||| Link Modifications II section...)


RE: Youtube hight quality? - Guest - May. 15, 2008 09:12 AM

Not work Sad

I did put it on the last entry of link Mod II


RE: Youtube hight quality? - ProxRocks - May. 15, 2008 10:07 AM

works fine here...
are you going to youtube and accessing the movie links from there, or are you getting the links from elsewhere?


RE: Youtube hight quality? - Guest - Jul. 09, 2008 11:57 PM

It works when I am using from the website, however links from elsewhere doesn't.

Anyway to make links from elsewhere work as well?


RE: Youtube hight quality? - Kye-U - Jul. 10, 2008 12:32 AM

Try this. I just removed the youtube.com text from the URL match to make it apply to all HTML pages, as well as modifying the matching expression to match any Youtube links on non-Youtube sites:

Code:
[Patterns]
Name = "YouTube: High Quality {ProxFox} (ku)"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 128
Match = "("
        "(^$URL(http://(\w.|)youtube.com/))(http://(\w.|)youtube.com/(watch\?v\=|v/)*)\1"
        "|"
        "$URL(http://(\w.|)youtube.com/)(/watch\?v\=*)\1"
        ")"
        "("|\s|<)\2"
Replace = "\1&fmt=18\2"

I also wrote this Header filter to catch any video that hasn't had the fmt=18 attribute added to the URL:

Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "URL: Youtube: High Quality (ku) (Out)"
URL = "(\w.|)youtube.com/(watch\?v\=|v/)"
Match = "\1((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"



RE: Youtube hight quality? - ProxRocks - Jul. 11, 2008 05:44 PM

cool update... thanks...


RE: Youtube hight quality? - Kye-U - Nov. 14, 2008 12:36 AM

Updated to make embed Youtube videos High-Quality (method from http://www.kottke.org/08/11/high-quality-youtube-video-hack):

Code:
[Patterns]
Name = "YouTube: High Quality v1.081113 {ProxFox} (ku)"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 128
Match = "$SET(5=&fmt=18)"
        "("
        "(^$URL(http://(\w.|)youtube.com/))((http://(\w.|)youtube.com/watch\?v\=*)\1|(http://(\w.|)youtube.com/v/*)\1$SET(5=&ap=%2526fmt%3D18))"
        "|"
        "$URL(http://(\w.|)youtube.com/)(/watch\?v\=*)\1"
        ")"
        "("|\s|<)\0($TST(\1=\2\&fmt=[0-9]+\3)$SET(9=\2\3)|$SET(9=\1))"
Replace = "\9\5\0"

You can use the same header filter two posts above Wink


RE: Youtube hight quality? - lnminente - Nov. 14, 2008 03:48 PM

By the way, new higher quality format 22

http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22


RE: Youtube hight quality? - ProxRocks - Nov. 14, 2008 05:27 PM

the header filter pegs my CPU to 100%...
seems to be stuck in an endless loop... endless loop... endless loop... endless loop...


RE: Youtube hight quality? - z12 - Nov. 14, 2008 10:41 PM

ProxRocks Wrote:the header filter pegs my CPU to 100%...
seems to be stuck in an endless loop... endless loop... endless loop... endless loop...

I haven't tried any of these filters yet.
I'm curious about the header filter problem though.
Do you have a link or url to test?

z12


RE: Youtube hight quality? - ProxRocks - Nov. 15, 2008 12:22 AM

the one provided a couple posts up...

http://www.youtube.com/watch?v=zlfKdbWwruY
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=18
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22


ALL are "endless loops" requiring a 'kill connections'...
i'm not a YouTube-er, but am curious as to "why" it's 'pegging' my CPU...


RE: Youtube hight quality? - z12 - Nov. 15, 2008 08:23 AM

hmm... I imported Kye-U's header filter.
The last link you posted resulted in a odd url, but no loop:

Code:
*** Log Reset ***
JumpTo: http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22&fmt=18

Other than that, everything seemed to work ok.
Tried a few other videos while I was there, no problem.

z12


RE: Youtube hight quality? - ProxRocks - Nov. 15, 2008 01:25 PM

endless loop... endless loop... endless loop... endless loop...

sidki 1/2/08, Kye-U's updates (which are only Google-related, so no effect here anyway)...

NOTHING changed EXCEPT importing that header filter...

which i'm importing like this, btw:
Code:
In = FALSE
Out = TRUE
Key = "!-|||||||||||| URL: Youtube: High Quality {Kye-U} (Out) [add]"
URL = "(\w.|)youtube.com/(watch\?v\=|v/)"
Match = "\1((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"

surely "that" (the !-||||||||||||) can't be the problem ??? ???


RE: Youtube hight quality? - 43unite - Nov. 15, 2008 02:36 PM

http://www.youtube.com/watch?v=zlfKdbWwruY
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=18
http://www.youtube.com/watch?v=zlfKdbWwruY&fmt=22

FWIW: I cut & pasted Kye-U's header filter into default.cfg exactly as he posted it (without "!-||||||||||||") and am having no problems with any vids on Firefox 3.0.4, including the three above.