Check conf/red5-common.xml

and look for

<!-- Simple bandwidth control -->
  <bean id="BWControlService" 
class="org.red5.server.stream.SimpleBWControlService" init-method="init">
    <property name="interval" value="100"/>
    <property name="defaultCapacity" value="104857600"/>
    <!-- 100MB -->
  </bean>
  <!-- Dummy bandwidth control that does nothing -->
  <!--
    <bean id="BWControlService" 
class="org.red5.server.stream.DummyBWControlService"/> -->

Remove the bean with org.red5.server.stream.SimpleBWControlService and 
remove comments around the bean with DummyBWControlService.

Maybe your lag will dissapear..



Interalab wrote:
> Yes, a new box, new SVN check out, new compile. 
>
> What's the dummy bandwidth thing?  We used the template bandwidth 
> control in our application class:
>
>             IStreamCapableConnection streamConn = 
> (IStreamCapableConnection) conn;
>             SimpleConnectionBWConfig bwConfig = new 
> SimpleConnectionBWConfig();
>             
> bwConfig.getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] =
>                 1024 * 1024;
>             
> bwConfig.getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] =
>                 128 * 1024;
>             streamConn.setBandwidthConfigure(bwConfig);
>
> Also, current snapshot:
>
> CPU: between 0.3 and 1.0 %
> Memory used:  600M  free:  364M
> Upload bandwidth is steady and in the same range as before - 200-300kbps 
> depending on movement in the video. 
> Client bandwidth looks a little odd, bouncing between 200kbps and 
> 95kbps.  I wonder if that is just the player buffer filling and emptying?
>
>
>
> Klaus wrote:
>   
>> So.. its a completely fresh installation. All classes recompiled ?
>>
>> Because I did have a problem with lastest trunk, where nothing worked at 
>> all, until I deleted all and checked out everything again.
>>
>> Anyway.. It seems to work much better on your setup. No freezes , but 
>> there are some pauses now and then. Also in the audio. Sound of cars and 
>> typing? :p
>> Could the pauses be related to that you are not using the dummy 
>> bandwidth thing? Looks like the same problem I had once where I had 
>> bandwidth control enabled.
>>
>> (oi!  sounds of a firetruck?? :-D )   ..
>>
>> My problem with freeze remains though.
>>
>> It could be interestning to see if you have the problem with the final 
>> 0.6 version?. A fresh install ;-)
>>
>>
>> /Klaus
>>
>>
>> Interalab wrote:
>>   
>>     
>>> Everyone plus those of you on the 'Re: [Red5] Live webcam freezes after 
>>> 4 seconds.' thread:
>>>
>>> I've just put a new server together using trunk version  red5-0.6-1925 
>>> and have a live webcam streaming on it.  Here's the link:
>>>
>>> http://www.magicoast.com/media_center/embedded_player.html
>>>
>>> Here are the specs:
>>>
>>> Xubuntu Linux 7.04
>>> Standalone Red 5 (jetty) with min ram 256M and max ram 512M set on java 
>>> command line in red5.sh
>>> AMD Athlon 64 3500+
>>> 1 GIG Ram
>>> Internet is at least a T-1 and can burst up to 10 or 20 Mbps
>>> Webcam pointed out our window in Ann Arbor, MI - yes, it's raining.
>>> 320x240
>>> 16 fps
>>> 80% video quality
>>> 11 k audio quality - (should just be room noise)
>>> upstream bandwidth is around 300kbps
>>>
>>> Server reports 460M RAM in use, 502M RAM free, CPU at less than 1%
>>>
>>> I'm not seeing the video freeze at 4 seconds.  It's a little choppy at 
>>> times, but I'd like to know how it compares with your tests/problems 
>>> you've been reporting.  Also, overall quality report would be good too.  
>>> I'll watch the stats and see how many connections we get.  Please view 
>>> it for a while and let me know . . .
>>>
>>> Thanks
>>> Bill
>>>
>>> Sebastian Wagner wrote:
>>>   
>>>     
>>>       
>>>> i'll checked it out with a higher framerate and latest trunk... it is 
>>>> getting a better with 30fps but then you have some kind of 
>>>> *slideshow-effect* even in live-broadcasted-streams.
>>>> I also do get a lot of *BW-Low-NetStream-Notification* and i am 
>>>> testing in local network without firewalls ..., my cam resolution is 
>>>> 120x80
>>>> If you change to 20fps its just freezing completly, you can restart by 
>>>> reentering the app and subscribing to a stream and ... same result.
>>>>
>>>> sebastian
>>>>
>>>> 2007/4/25, Dan Rossi < [EMAIL PROTECTED] 
>>>> <mailto:[EMAIL PROTECTED]>>:
>>>>
>>>>     Yep this has been a problem for quite a while, messing around with
>>>>     the
>>>>     video quality especially helped a little bit. But from my tests
>>>>     ive sent
>>>>     before even a 100 pixel window was doing it. Try 80% video quality and
>>>>     set the fps to 30. Trust me the higher the rate out helped with the
>>>>     higher playback. Does it freeze and just do nothing or starts to play
>>>>     like a jpg slideshow ? Id check the fps on playback if its 1fps
>>>>     there is
>>>>     the problem for the slideshow effect. Yeh any audio setting plays
>>>>     back
>>>>     fine, and its definately not bandwidth out and in issues or else there
>>>>     would be rebuffering etc.
>>>>
>>>>     Sebastian Wagner wrote:
>>>>     > no disconnection. The connection is still alive, i can also
>>>>     still hear
>>>>     > audio. Only the video does freeze. I tried several fps-settings
>>>>     with
>>>>     > the cam. It was no difference. It just freezes after some seconds
>>>>     > (from my feeling it is 4 seconds).
>>>>     >
>>>>     > regards
>>>>     > sebastian
>>>>     >
>>>>     >
>>>>     > 2007/4/25, Dan Rossi < [EMAIL PROTECTED]
>>>>     <mailto:[EMAIL PROTECTED]>
>>>>     > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>:
>>>>     >
>>>>     >     Im not sure about complete freezing, maybe thats what we got but
>>>>     >     it was
>>>>     >     a disconnection at 22mins, do you mean constant freezing ? I
>>>>     think
>>>>     >     after
>>>>     >     an update last friday Ive been alerted that the framerate
>>>>     problem
>>>>     >     with
>>>>     >     live streams have come back again. We've set the frame rate
>>>>     on the
>>>>     >     broadcaster app to 15fps and i think its only playing back
>>>>     as 1fps
>>>>     >     with
>>>>     >     a video size of 192x144. From what ive tested with FMS if we set
>>>>     >     the fps
>>>>     >     to 30 the playback is about 15.
>>>>     >
>>>>     >     Klaus wrote:
>>>>     >     > Now I'm running revision 1929 from svn
>>>>     >     >
>>>>     >     > I saw there was an update on
>>>>     >     > ./src/org/red5/server/stream/ServerStream.java, so I was
>>>>     hoping ;-)
>>>>     >     >
>>>>     >     > But still same problem.
>>>>     >     >
>>>>     >     > I'm using java 1.5
>>>>     >     >
>>>>     >     >
>>>>     >     >
>>>>     >     > Klaus wrote:
>>>>     >     >
>>>>     >     >> I just upgraded from 0.6rc1 to the newest released red5-0.6
>>>>     >     >>
>>>>     >     >> After this I'm expirence problems.
>>>>     >     >>
>>>>     >     >> I have 2 video's .. One with webcam and and one where I
>>>>     watch
>>>>     >     my webcam
>>>>     >     >>
>>>>     >     >> The video where I watch my webcam freezes after 4 seconds.
>>>>     >     >>
>>>>     >     >> If i record my webcam, say 10 seconds and play it later,
>>>>     I see
>>>>     >     all 10
>>>>     >     >> seconds. But when I watch it live, it freezes after 4
>>>>     seconds.
>>>>     >     >>
>>>>     >     >> The log doesn't say anything, just one of these everytime I
>>>>     >     publish,
>>>>     >     >> which is okay.
>>>>     >     >>
>>>>     >     >> [java] [INFO] 470213 pool-2-thread-7:(
>>>>     >     >> org.red5.server.stream.VideoCodecFactory.getVideoCodec )
>>>>     Trying
>>>>     >     codec
>>>>     >     >> [EMAIL PROTECTED]
>>>>     >     >>
>>>>     >     >> A trace on the netstream doesn't say anything useful either :
>>>>     >     >>
>>>>     >     >> Level: status Code: NetStream.Publish.Start
>>>>     >     >> Level: status Code: NetStream.Record.Start
>>>>     >     >> Level: status Code: NetStream.Record.Stop
>>>>     >     >> Level: status Code: NetStream.Unpublish.Success
>>>>     >     >>
>>>>     >     >> Any clues?
>>>>     >     >>
>>>>     >     >> /Klaus
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >> _______________________________________________
>>>>     >     >> Red5 mailing list
>>>>     >     >> [email protected] <mailto:[email protected]>
>>>>     <mailto:[email protected] <mailto:[email protected]>>
>>>>     >     >> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>     >     < http://osflash.org/mailman/listinfo/red5_osflash.org>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >>
>>>>     >     >
>>>>     >     >
>>>>     >     > _______________________________________________
>>>>     >     > Red5 mailing list
>>>>     >     > [email protected] <mailto:[email protected]>
>>>>     <mailto:[email protected] <mailto:[email protected]>>
>>>>     >     > http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>     >     >
>>>>     >     >
>>>>     >
>>>>     >
>>>>     >     _______________________________________________
>>>>     >     Red5 mailing list
>>>>     >     [email protected] <mailto:[email protected]>
>>>>     <mailto:[email protected] <mailto:[email protected]>>
>>>>     >     http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>     >
>>>>     >
>>>>     >
>>>>     >
>>>>     > --
>>>>     > Sebastian Wagner
>>>>     > http://www.webbase-design.de
>>>>     > http://www.laszlo-forum.de
>>>>     > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>>>     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>>>>     >
>>>>     
>>>> ------------------------------------------------------------------------
>>>>
>>>>     >
>>>>     > _______________________________________________
>>>>     > Red5 mailing list
>>>>     > [email protected] <mailto:[email protected]>
>>>>     > http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>     >
>>>>
>>>>
>>>>     _______________________________________________
>>>>     Red5 mailing list
>>>>     [email protected] <mailto:[email protected]>
>>>>     http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Sebastian Wagner
>>>> http://www.webbase-design.de
>>>> http://www.laszlo-forum.de
>>>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> [email protected]
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>   
>>>>     
>>>>       
>>>>         
>>> _______________________________________________
>>> Red5 mailing list
>>> [email protected]
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>   
>>>     
>>>       
>> _______________________________________________
>> Red5 mailing list
>> [email protected]
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>   
>>     
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>   


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to