Im testing with a stream located in vod/resize1080, but that do not seem to add up with the configuration of the script in any way.
Im not even sure how your script should is able to fetch the incoming bitrate compared to stat-page code ... :/
<application>
<name>vod</name>
<live>
<stream>
<name>resize1080</name>
<time>277193732</time><bw_in>4485584</bw_in>
<bytes_in>146932524131</bytes_in>
<bw_out>0</bw_out>
<bytes_out>0</bytes_out>
<bw_audio>141064</bw_audio>
<bw_video>4344520</bw_video>
<client><id>6</id><address>127.0.0.1</address><time>277193732</time><dropped>0</dropped><avsync>17</avsync><timestamp>277193689</timestamp><publishing/><active/></client>
<meta><video><width>1920</width><height>1080</height><frame_rate>25</frame_rate><codec>H264</codec><profile>High</profile><compat>8</compat><level>5.0</level></video><audio><codec>MP3</codec><channels>2</channels><sample_rate>44100</sample_rate></audio></meta>
<nclients>1</nclients>
<publishing/>
<active/>
</stream>
/Michael.