<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'Bitrate throttling'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Bitrate+throttling&amp;orTags=0</link><description>Search results matching tag 'Bitrate throttling'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Bitrate throttling model should use Content Type Header</title><link>http://forums.iis.net/p/1150648/1874996.aspx#1874996</link><pubDate>Fri, 25 Jul 2008 15:55:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874996</guid><dc:creator>vsood</dc:creator><cs:applicationKey>iis7_-_media-41</cs:applicationKey><description>&lt;p&gt;Hi Shiv&lt;/p&gt;
&lt;p&gt;In addition what we also have is a server variable. If you want to change the throttling rate programmatically you could use server variables (&lt;a class="" href="http://learn.iis.net/page.aspx/149/bit-rate-throttling-extensibility-walkthrough/#Variables" target="_blank"&gt;details&lt;/a&gt; - refer section &amp;quot;Throttling with Server Variables&amp;quot;).&lt;/p&gt;
&lt;p&gt;Also Scott Hanselman blogged about how to do this &lt;a class="" href="http://www.hanselman.com/blog/SqueezingTheMostOutOfIIS7MediaBitRateThrottling.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And as Jack mentioned you could add rules based on MIME types but those will have to data rules (i.e., fixed bit rate and you cannot use percentages). This would work great if you have most of the videos at a fixed bit-rate on your site.&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;Vishal&lt;/p&gt;</description></item><item><title>Bitrate throttling model should use Content Type Header</title><link>http://forums.iis.net/p/1150648/1874944.aspx#1874944</link><pubDate>Fri, 25 Jul 2008 02:30:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874944</guid><dc:creator>skumar2003</dc:creator><cs:applicationKey>iis7_-_media-41</cs:applicationKey><description>&lt;p&gt;All of the documentation on the bitrate throttling model uses the term MIME type. But in fact the module only responds when a url has a certain file extension (*.wmv, *.mov etc.)&lt;/p&gt;
&lt;p&gt;This design foraces us to have to implement our own handlers/module and the logic for throttling is media files are issued using dynamic urls such as a url to an aspx/ashx page.&lt;/p&gt;
&lt;p&gt;Now when responding with media files we do set the content type header. If the bitrate module actually looked at this header and applied its rules to these responses we wouldn&amp;#39;t have to do it ourselves.&lt;/p&gt;
&lt;p&gt;In the real world, I&amp;#39;ve never designed a system that produced a url such that links or users had direct access to media files. These file are frequently stored elsewhere and are not under the application root folder, and so throttling using a file extension in the url makes no sense in the real world.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;d love to see the bitrate throttling model respond to the content type header instead of the file extension in the url.&lt;/p&gt;</description></item><item><title>Bitrate throttling and out of memory issues</title><link>http://forums.iis.net/p/1150616/1874803.aspx#1874803</link><pubDate>Thu, 24 Jul 2008 04:01:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1874803</guid><dc:creator>skumar2003</dc:creator><cs:applicationKey>iis7_-_media-41</cs:applicationKey><description>&lt;p&gt;This could be a bit complicated to explain and understand so I&amp;#39;ll try my best to explain the set up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Our media files (videos) are Flash video (.flv) files. These files are not directly accessible as a url that end with a .flv. As a result the bit rate throttling module does not intercept requests for these files automatically.&lt;/p&gt;
&lt;p&gt;We had been using an IHttpHandler to serve these files because we authenticate the request coming from our site and from our video player before we issue the bytes. We read 8k chunks and write them directly to the OutputStream. This was working just fine, even for large files.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;We then modified the handlers to incorporate the Bitrate throttling logic. The implementation works as expect, in terms of the burst and then throttling. However there is one thing I don&amp;#39;t like about the we the bitrate throttling has been implemented and then there is an issue we&amp;#39;re having to do with &amp;quot;Out Of Memory&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The one thing I don&amp;#39;t like is that the http headers now include the bit rate information. These headers are visible across the internet and at the client. I don&amp;#39;t believe there is any reason for this to be the case. I mean what&amp;#39;s happening on the server end should remain at the server end (What happens in Vegas, stays in Vegas).&lt;/p&gt;
&lt;p&gt;The bigger issue is that now the server is running out of memory each time we serve large files. This was not the case when there was no bitrate throttling in place. So it looks like IIS is buffering the bytes the handler issues (in a tight loop wirting 8K chuncks) because it is throttling the serving of these bytes. So if we&amp;#39;re issuing a large file 800MB, the process is accumulating the bytes and eventually the process is out of memory.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The server has 8GB of memory and and at any time about 4GB is used (it kind of stays at this level) but we still see out of memory issues now.&lt;/p&gt;
&lt;p&gt;My question is if IIS were to handling issuing the files itself, would this problem dissapear? Second, given the situation I mention at the start, is there a way we can still get IIS to issue the media files directly, *after* we authenticate the request? Also users should not be able to request these files directly using a url that ends with a .flv, we&amp;#39;d still like to intercept these requests and authenticate before allowing the files to be served.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to be trying an IHTTPModule that will intercept these requests and authenticate if the request is for our media files and allow or disallow. Does that sound ok?&lt;/p&gt;
&lt;p&gt;The main issue (out of memory), is that &amp;quot;as designed&amp;quot;?&lt;/p&gt;</description></item></channel></rss>