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


RE: Youtube hight quality? - ProxRocks - Nov. 15, 2008 03:28 PM

by "default", are you talking SCOTT's config? "nobody" uses that anymore, do they?

i have no interest at all in "back-dating" my config to Scott's original "default"...


and i'm pretty sure the !!!'s in sidki's config are there for a "reason", are they not? ie, in importing "as is", your OTHER sidki header filters are NOT functioning as they "should" (possibility of not, that is)... (see "Importing URL Header Filters" at http://www.geocities.com/sidki3003/prox/sidki-etc/ReadMe.txt )


follow-up: here's a sidki-format header filter that i was able to get up-and-running...
Code:
In = FALSE
Out = TRUE
Key = "! : Redir: YouTube: High Quality {Kye-U|PFR} (Out) [add]"
Match = "$URL(\1&(\w.|)youtube.com/(watch\?v\=|v/))((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"

edit:
OR
Code:
In = FALSE
Out = TRUE
Key = "!-|||||||||||| URL: YouTube: High Quality {Kye-U|PFR} (Out) [add]"
Match = "$URL(\1&(\w.|)youtube.com/(watch\?v\=|v/))((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"

BOTH are working for me...
though, "technically", it's a REDIR filter, so i'm opting for the first of the two...


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

If you were responding to me, I'm running Sidki's 2008-01-02 config.

BTW, http://www.youtube.com/watch?v=zlfKdbWwruY is a lovely video, thanks for posting it.

And I've updated the appropriate filters to include the new higher quality format 22. lnminente, thanks for mentioning it.


RE: Youtube hight quality? - z12 - Nov. 15, 2008 03:55 PM

Ok, your modified filter loops for me too.
In sidki's config, I don't see a "Match Expression" for these type of filters:

Code:
Key = "!-|||||||||||| URL:

Perhaps that's the reason.

z12


RE: Youtube hight quality? - ProxRocks - Nov. 15, 2008 03:58 PM

agreed...

we cross-posted, see my "follow-up" a few posts up...


RE: Youtube hight quality? - z12 - Nov. 15, 2008 04:03 PM

Ahh... I see.

It seems I was wrong about the Match expression.

Nice you got it working.

z12


RE: Youtube hight quality? - ProxRocks - Nov. 15, 2008 04:08 PM

you showed me that workaround, btw...
you helped me with a Reuters Single-Page filter that uses the Match/$URL scheme...


RE: Youtube hight quality? - z12 - Nov. 15, 2008 04:20 PM

Something didn't look right.
I couldn't put my finger on it though.
Guess I shouldn't have fallen back asleep this morning.
Looks like I need to drink some more coffee. Smile!

z12


RE: Youtube hight quality? - 43unite - Nov. 15, 2008 04:59 PM

(Nov. 15, 2008 03:28 PM)ProxRocks Wrote:  and i'm pretty sure the !!!'s in sidki's config are there for a "reason", are they not? ie, in importing "as is", your OTHER sidki header filters are NOT functioning as they "should" (possibility of not, that is)... (see "Importing URL Header Filters" at http://www.geocities.com/sidki3003/prox/sidki-etc/ReadMe.txt )

Forgot all about that. Thanks for the reminder!

(Nov. 15, 2008 03:28 PM)ProxRocks Wrote:  follow-up: here's a sidki-format header filter that i was able to get up-and-running...
Code:
In = FALSE
Out = TRUE
Key = "! : Redir: YouTube: High Quality {Kye-U|PFR} (Out) [add]"
Match = "$URL(\1&(\w.|)youtube.com/(watch\?v\=|v/))((^$TST(\1=*\&fmt=18*))$SET(9=$JUMP(\1&fmt=18))|$SET(9=\1))"
Replace = "\9"

Works for me too. Thank you. I like the 'Redir'.

Here are my versions for '22':

Code:
In = FALSE
Out = TRUE
Key = "! : Redir: YouTube: High Quality {Kye-U|PFR} (Out) [add]"
Match = "$URL(\1&(\w.|)youtube.com/(watch\?v\=|v/))((^$TST(\1=*\&fmt=22*))$SET(9=$JUMP(\1&fmt=22))|$SET(9=\1))"
Replace = "\9"

Code:
Name = "YouTube: High Quality v1.081113 {ProxFox} (ku)"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 128
Match = "$SET(5=&fmt=22)"
        "("
        "(^$URL(http://(\w.|)youtube.com/))((http://(\w.|)youtube.com/watch\?v\=*)\1|(http://(\w.|)youtube.com/v/*)\1$SET(5=&ap=%2526fmt%3D22))"
        "|"
        "$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"



RE: Youtube hight quality? - lnminente - Nov. 15, 2008 10:15 PM

Good to see activity here Big Teeth

Some testing:
+If we add &fmt=22, mp4 file, stereo sound ~232 kbps (at least in the video of dancing Matt) If not available the quality will be the standar flv.
+If we add &fmt=18, most of the time the video will be an mp4 file, with good quality, stereo sound ~130 kbps. If not available the quality will be the standar flv.
+If we add &fmt=X&fmt=Y the quality will be X

If we set fmt=22, and its not available, it's very probable there is a mp4 for fmt=18, but we will see the standar quality, so at this moment it's not a good idea to use fmt22.

The web filter needs more work. It $SETS variable \5 each time proxomitron avances one character. Also it uses too much cpu, the number of $TST for each page is too high only for this filter. It's better to make the filter fail before using $TST.

One question for the header filter, what's the reason for using ! instead of URL:?


RE: Youtube hight quality? - Kye-U - Nov. 15, 2008 10:58 PM

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

A much faster filter Wink It also accounts for the usage of &amp; instead of & in the URL. (I know that this forum software substitutes &amp; for & automatically)

You can easily set what quality value you want (18, 22, etc), in the $SET(qVal=) code in the URL Match.

Test:

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
http://www.youtube.com/watch?v=-WULyz1-OQc


RE: Youtube hight quality? - lnminente - Nov. 15, 2008 11:27 PM

A lot better fearless leader Wink

I was looking for a way to autosize the embedded videoplayer and found these links:

An important link about embedding videos with javascript. It's an opensource player and explains many parameters wich the youtube player also uses Wink
http://www.jeroenwijering.com/?page=wizard

Also very important this other link about SWFObject
http://www.rtbwizards.com/helpcenter/swfobjectscript.htm


RE: Youtube hight quality? - ProxRocks - Nov. 16, 2008 12:25 AM

(Nov. 15, 2008 10:15 PM)lnminente Wrote:  One question for the header filter, what's the reason for using ! instead of URL:?

that's for sidki-based configs only, sidki's header filters are supposed to be scanned in a particular order and the URL: method puts everything out-of-whack...

you'll note that with URL filters (non-sidki !'s) that you can save a .cfg in notepad(|++|2) and have the filter where you want it, but that Proxo will rearrange them for you and put it where it wants it, not good for us Type-A people that want the filter placed where we placed it and don't want Proxo rearranging...


ps: the Proxo-self-rearrange "nuance" is strictly just a header filter thing, i'm not sure if it's "only" URL: header filters or not... regardless, i want my header filters to remain where i put them and not have Proxo rearranging them for me... sidki must have shared the same belief Smile!


RE: Youtube hight quality? - lnminente - Nov. 16, 2008 12:39 AM

mmmhhh Now i see, many thanks ProxRocks Wink


RE: Youtube hight quality? - ProxRocks - Nov. 16, 2008 01:32 AM

(Nov. 15, 2008 10:15 PM)lnminente Wrote:  If we set fmt=22, and its not available, it's very probable there is a mp4 for fmt=18, but we will see the standar quality, so at this moment it's not a good idea to use fmt22

personally, i'm sticking with fmt=6...

i hate NOT being able to drag the video's scroll bar upstream in the video and "fast-forward" or "rewind"... unless it's just me, one can NOT fast-forward or rewind while using fmt 18 or 22...

and i'm not sure if there are any quality modes between 6 and 18...

now then, if i view (which i prefer NOT to [because they are "grainy" even at 18 or 22 on my 'fairly large' LCD screen]) "full screen", then yeah, 18 is the way to go... but for "within" the web page viewing, 6 is my preference...


RE: Youtube hight quality? - lnminente - Nov. 16, 2008 01:46 AM

Fmt=6 is good for viewing in the browser because of the seek but his sound is worst, it is only mono :/
For storing in your hard drive use fmt18 and then you will have better sound and also could seek with your favourite player.