| Freydnot | Monday, August 13, 2001 - 02:05 am  I found a great tool for correcting some of the annoying things in the BB feeds. Its called The Proxomitron. You can get it from http://proxomitron.cjb.net/ Its a proxy that sits between your browser and the internet. Most people us it to remove ad banners and control cookes, but it has user programable 'search and replace' filters. It all started when I wanted remove the timeouts from the normal feeds. I made the following rule: Name = "Remove BigBrother2 clip timeouts" Active = TRUE URL = "smilparse.real.com/rolled/" Limit = 256 Match = "clip-end="*"" What this does is take any instance of the phrase 'clip-end="{anything}"' and replace it with nothing (null string). It will only apply the rule if the URL of the web page starts with "smilparse.real.com/rolled/". That makes sure it only effects the Big Brother 2 .smi file and not all realplayer content everywhere. Next I wanted to remove the frames from the feeds. I created the following two rules that work together to remove everything from the .smi file but the video source URL. Name = "BigBro2 Direct view pt1" Active = TRUE URL = "smilparse.real.com/rolled/2001*/bigbrother/play*.smi" Limit = 32767 Match = "<smil>*<video" Replace = "<smil>" "<head></head>" "<body>" "<video" This first rule matches everything from the <smil> tag (basicly the start of the .smi file) to the 'video src=' tag (and everything in between) and replaces it with "<smil>" "<head></head>" "<body>" "<video". That effectivly removes all of the .smi file content from the start up to the video src tag. Name = "BigBro2 Direct view pt2" Active = TRUE URL = "smilparse.real.com/rolled/2001*/bigbrother/play*.smi" Limit = 32767 Match = "region=*</body>" Replace = " />" "</body>" The second rule matches everything from the "region=" tag that immediately follows the video src= tag to the </body> tag (and everything in between). When you apply these two rules it converts a .smi file that looks like this: <smil> <head> <meta name="title" content="Big Brother 2" /> <meta name="author" content="RealNetworks" /> <meta name="copyright" content="© 2001" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <layout> <root-layout width="512" height="384" background-color="#000000"/> <region id="background" left="0" top="0" width="512" height="384" z-index="10" background-color="#000000"/> <region id="video_320x240" left="16" top="76" width="320" height="240" fit="fill" z-index="20" /> <region id="video_240x180" left="48" top="107" width="240" height="180" fit="fill" z-index="20" /> <region id="flash_nav" left="363" top="154" width="135" height="155" z-index="20" /> <region id="feed1" left="350" top="167" width="10" height="10" z-index="30" /> <region id="feed2" left="350" top="205" width="10" height="10" z-index="30" /> <region id="feed3" left="350" top="243" width="10" height="10" z-index="30" /> <region id="feed4" left="350" top="284" width="10" height="10" z-index="30" /> </layout> </head> <body> <switch> <par system-bitrate="220000"> <img src="chttp://i.real.com/g/pics/chttp/bb_back_hi_lo.rp" region="background" fill="freeze"> <!--CBS --> <anchor href="http://www.cbs.com" show="new" coords="30,352,80,365"/> <!--GoldPass --> <anchor href="http://realguide.real.com/goldpass/?s=gp_features&sub=bigbrother" show="new" coords="141,352,192,365"/> <!--Endemol --> <anchor href="http://www.endemol.com" show="new" coords="260,352,306,365"/> <!--Big Brother --> <anchor href="http://www.cbs.com/bigbrother" show="new" coords="368,352,462,365"/> <!--stream 1 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play1.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,159,493,187"/> <!--stream 2 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play2.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,197,493,227"/> <!--stream 3 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play3.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,237,493,267"/> <!--stream 4 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play4.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,275,493,303"/> <!--stream 1 high --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play1_bb.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="382,323,497,335"/> </img> <img src="chttp://i.real.com/g/pics/chttp/bb_on.rp" region="feed1" fill="freeze"/> <seq> <video src="rtsp://go.rbn.com/bigbrother2/bigbrother2/live/cam1_80.rm?site=bbcontent&rbnkey=2001081123200b4d2cf01d901fe848eeb1ecd9e5944e " region="video_240x180" clip-end="25.0min"/> <textstream src="common/timeout_240x180.rt" region="video_240x180" fill="freeze"/> </seq> </par> <par> <img src="chttp://i.real.com/g/pics/chttp/gp_back_low_plain.rp" region="background" fill="freeze"> <!--CBS --> <anchor href="http://www.cbs.com" show="new" coords="30,352,80,365"/> <!--GoldPass --> <anchor href="http://realguide.real.com/goldpass/?s=gp_features&sub=bigbrother" show="new" coords="141,352,192,365"/> <!--Endemol --> <anchor href="http://www.endemol.com" show="new" coords="260,352,306,365"/> <!--Big Brother --> <anchor href="http://www.cbs.com/bigbrother" show="new" coords="368,352,462,365"/> <!--stream 1 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play1.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,159,493,187"/> <!--stream 2 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play2.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,197,493,227"/> <!--stream 3 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play3.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,237,493,267"/> <!--stream 4 --> <anchor href="command:openwindow(_self, http://pylon.real.com/gp_only/ram.rxml?pid=bb&url=play4.smi%3fmode=compact&promo=default/settings/settings_promo.smi&mode=compact)" coords="368,275,493,303"/> </img> <img src="chttp://i.real.com/g/pics/chttp/bb_on.rp" region="feed1" fill="freeze"/> <seq> <video src="rtsp://go.rbn.com/bigbrother2/bigbrother2/live/cam1_80.rm?site=bbcontent&rbnkey=2001081123200b4d2cf01d901fe848eeb1ecd9e5944e " region="video_240x180" clip-end="25.0min"/> <textstream src="common/timeout_240x180.rt" region="video_240x180" fill="freeze"/> </seq> </par> </switch> </body> </smil> into something that looks like this: <smil> <head> </head> <body> <video src="rtsp://go.rbn.com/bigbrother2/bigbrother2/live/cam1_80.rm?site=bbcontent&rbnkey=2001081123200b4d2cf01d901fe848eeb1ecd9e5944e" </body> </smil> Give it a try and let me know how it works for you all. |