[Red5] startupTime

2007-04-05 Thread Camillo Bruni
HI,
Im wondering what the average startuptime for red5 are.
I just saw that its about 5 to 7 secs on a 3.4GHz Intel machine but
on my old DualCore 2Ghz G5 its about 20seconds, on my G4IBook 1.33Ghz
its about 30-50seconds :-(.

what do you have as startuptimes?

cami.

___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] change in playback behavior or bug?

2007-04-05 Thread Steven Gong

Hi Tomas,
As was mentioned by Joachim on dev list (you might not on that list), the
Play.Stop event is sent to client when the server reaches the end of a clip
and does not indicate the end of the clip on client side. So to safely
detect the end of the clip on client side, you need to firstly monitor the
Play.Stop event and then check the Buffer.Empty event to make sure the
playback is finished.

FMS also has this behavior.

On 4/5/07, Tomáš Procházka [EMAIL PROTECTED] wrote:


Hi.

I tested revision 1830.

And I discovered change in playback behavior.

Here is NetStream status events log:

Stream action: NetStream.Play.Stop - 78%, isPlaying: true
Stream action: NetStream.Buffer.Flush - 80%, isPlaying: false
Stream action: NetStream.Buffer.Empty - 100%, isPlaying: false

78% show percentetage complete of vide playing.
Stop event arrive before end of playing.

Stop arrive when video end on the server side, but on the client is video
in buffer.

If this is good behavior I can modify my flv player, to wait fow Empty
event after Stop event.

Here is complete log:

Stream action: NetStream.Play.Reset - NaN, isPlaying: true
Stream action: NetStream.Play.Start - NaN, isPlaying: true
Stream action: NetStream.Buffer.Full - 22%, isPlaying: true
Stream action: NetStream.Play.Stop - 82%, isPlaying: true
Stream action: NetStream.Buffer.Flush - 88%, isPlaying: false
Stream action: NetStream.Buffer.Empty - 100%, isPlaying: false



--
Tomas Prochazka


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org





--
I cannot tell why this heart languishes in silence. It is for small needs it
never asks, or knows or remembers.  -- Tagore

Best Regards
Steven Gong
___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] change in playback behavior or bug?

2007-04-05 Thread Joachim Bauch

Hi,

Tomáš Procházka schrieb:

And I discovered change in playback behavior.

Here is NetStream status events log:

Stream action: NetStream.Play.Stop - 78%, isPlaying: true
Stream action: NetStream.Buffer.Flush - 80%, isPlaying: false
Stream action: NetStream.Buffer.Empty - 100%, isPlaying: false

78% show percentetage complete of vide playing.
Stop event arrive before end of playing. 


Stop arrive when video end on the server side, but on the client is video in 
buffer.

If this is good behavior I can modify my flv player, to wait fow Empty event 
after Stop event.


yep, this is the intended behavior as it's near to impossible to
determine from the serverside when the client is done playing.

To detect the real end of a stream, you will have to wait for
the first Buffer.Empty event _after_ a Play.Stop has been received.
This will work both in Red5 and FMS/FCS. When using Red5 or FMS,
you can also wait for the NetStream.Play.Complete onPlayStatus
event. However this will not work when running against FCS.

Joachim



smime.p7s
Description: S/MIME Cryptographic Signature
___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] recording problem 2

2007-04-05 Thread Tomáš Procházka
Hi.

But also in revision 1830 I have the same problem with recording.

Sometimes, especially in short records, red5 records few second with no 
movement and then record corectly.

When I play this flv video in some players, same of them waiting few second and 
another jump immediately few second.

Have somebody the same problem?

Here is example of buggy video:
http://portal2.sms.cz/logs/video_user-11494_id-29.flv


Here is log example log (for another buggy video):
First value is getTimer() result.

227 Stream action: NetStream.Play.Reset - NaN, isPlaying: true
227 Stream action: NetStream.Play.Start - NaN, isPlaying: true
1067 Stream action: NetStream.Buffer.Full - NaN, isPlaying: true
1067 Stream action: NetStream.Buffer.Empty - NaN, isPlaying: true
5068 Stream action: NetStream.Buffer.Full - 35%, isPlaying: true
After long period jump video directly to 35%

5068 Stream action: NetStream.Buffer.Empty - 35%, isPlaying: true
6067 Stream action: NetStream.Buffer.Full - 39%, isPlaying: true
After long period video play again.

14381 Stream action: NetStream.Play.Stop - 94%, isPlaying: true
15067 Stream action: NetStream.Buffer.Flush - 98%, isPlaying: true
16067 Stream action: NetStream.Buffer.Empty - 100%, isPlaying: true
  


-- 
Tomas Prochazka


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] change in playback behavior or bug?

2007-04-05 Thread Tomáš Procházka
Hi,

   Thanks you. I modified my flv player.

-- Original message --
   From: Steven Gong [EMAIL PROTECTED]
Subject: [Red5] change in playback behavior or bug?
   Date: Thursday, April 5, 2007, 10:01:41 AM
Attachments: Zpráva.html, Část.txt
  msgid:[EMAIL PROTECTED]


Hi Tomas,
As was mentioned by Joachim on dev list (you might not on that list), the 
Play.Stop event is sent to client when the server reaches the end of a clip and 
does not indicate the end of the clip on client side. So to safely detect the 
end of the clip on client side, you need to firstly monitor the Play.Stop event 
and then check the Buffer.Empty event to make sure the playback is finished.



--- End of original message --

-- 
 Tomas Prochazka


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] about log in red5

2007-04-05 Thread 魏 玉虎

Hi Guys,
  I grabed sources from svn with eclipse.I compiled it successfully.But I 
only find some logs,but I can not find all logs.I read the 
log4j.property,but no idea is found.I wanted to  ask how can i read all 
logs in red5.

  Any help is appreciated!
  yours
tiger

_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] new Tutorial: Red5 and Acegi

2007-04-05 Thread nomIad
Hi,

had some time (lol) to write a tutorial about implementing authentication.

Its not the best way for authorisation, but that have to be implemented 
in the core

Red5 and Acegi Security
http://jira.red5.org/confluence/display/docs/Red5+and+Acegi+Secuirty

cu nomiad

___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] recording problem 2

2007-04-05 Thread Remco Vlierman

hi Thomas,
I have the same probs, especially in short recordings. Another note is that
the problems ussually start occuring after 2 or 3 succesful short
recordings. Can anyhbody replicate these bugs???

greeetz,
remco


On 4/5/07, Tomáš Procházka [EMAIL PROTECTED] wrote:


Hi.

But also in revision 1830 I have the same problem with recording.

Sometimes, especially in short records, red5 records few second with no
movement and then record corectly.

When I play this flv video in some players, same of them waiting few
second and another jump immediately few second.

Have somebody the same problem?

Here is example of buggy video:
http://portal2.sms.cz/logs/video_user-11494_id-29.flv


Here is log example log (for another buggy video):
First value is getTimer() result.

227 Stream action: NetStream.Play.Reset - NaN, isPlaying: true
227 Stream action: NetStream.Play.Start - NaN, isPlaying: true
1067 Stream action: NetStream.Buffer.Full - NaN, isPlaying: true
1067 Stream action: NetStream.Buffer.Empty - NaN, isPlaying: true
5068 Stream action: NetStream.Buffer.Full - 35%, isPlaying: true
After long period jump video directly to 35%

5068 Stream action: NetStream.Buffer.Empty - 35%, isPlaying: true
6067 Stream action: NetStream.Buffer.Full - 39%, isPlaying: true
After long period video play again.

14381 Stream action: NetStream.Play.Stop - 94%, isPlaying: true
15067 Stream action: NetStream.Buffer.Flush - 98%, isPlaying: true
16067 Stream action: NetStream.Buffer.Empty - 100%, isPlaying: true



--
Tomas Prochazka


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] No Clue about streaming FLV,

2007-04-05 Thread Fábio Costa
Ok i know the methods, i guess i know where i should put it, so why it 
doesn't works?
I put my flv file in the webapps folder into the same directory of my 
application.
  The code in java is:

public String publicar (String nomeDaStream,String qualstream){
IScope escopo= Red5.getConnectionLocal().getScope();
IServerStream serverStream = 
StreamUtils.createServerStream(escopo,nomeDaStream);
//Publish with given name
SimplePlayItem item = new SimplePlayItem();
item.setStart(-2);
item.setLength(-1);
//Start and lenght to publish from the beggining and until it ends
item.setName(qualstream);
//Up here is the name of the file right?
serverStream.addItem(item);
serverStream.start();
//Here the stream should being published...
return  serverStream.getPublishedName();
}

the flash is :
//The first parammeter the stream name, the second the video
nc.call (publicar,new mostra,teste,flv:fluffy_crash);
in2_ns.play(teste);

//ANd then i ask toi my net stream play the same stream.

But nothing happensi searched, i googled, and everybody was cappable 
of doing that , they did almost the same things what is wrong?
PS: the method serverStream.stop in my application says that it does'nt 
exist.

Thanks people, sorry for keeping saying the same things but it just does'nt 
show the video

_
Descubra como mandar Torpedos SMS do seu Messenger para o celular dos seus 
amigos. http://mobile.msn.com/


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] No Clue about streaming FLV,

2007-04-05 Thread joseph wamicha

Hi Fabio,

Don worry no problem, we all experienced the same hardships.
serverStream.close instead of serverStream.stop should work.
Please try put the streams inside webapps/yourapplication/streams

Let us know if you have further problems.

On 4/5/07, Fábio Costa [EMAIL PROTECTED] wrote:


Ok i know the methods, i guess i know where i should put it, so why it
doesn't works?
I put my flv file in the webapps folder into the same directory of my
application.
  The code in java is:

public String publicar (String nomeDaStream,String qualstream){
IScope escopo= Red5.getConnectionLocal().getScope();
IServerStream serverStream =
StreamUtils.createServerStream(escopo,nomeDaStream);
//Publish with given name
SimplePlayItem item = new SimplePlayItem();
item.setStart(-2);
item.setLength(-1);
//Start and lenght to publish from the beggining and until it ends
item.setName(qualstream);
//Up here is the name of the file right?
serverStream.addItem(item);
serverStream.start();
//Here the stream should being published...
return  serverStream.getPublishedName();
}

the flash is :
//The first parammeter the stream name, the second the video
nc.call (publicar,new mostra,teste,flv:fluffy_crash);
in2_ns.play(teste);

//ANd then i ask toi my net stream play the same stream.

But nothing happensi searched, i googled, and everybody was
cappable
of doing that , they did almost the same things what is wrong?
PS: the method serverStream.stop in my application says that it does'nt
exist.

Thanks people, sorry for keeping saying the same things but it just
does'nt
show the video

_
Descubra como mandar Torpedos SMS do seu Messenger para o celular dos seus
amigos. http://mobile.msn.com/


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org





--
C is forever.
___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] Java OutOfMemoryError ...

2007-04-05 Thread Max Gieselmann

Hey
A few days ago, I had some trouble compiling my Red5 applications with ant.
Now everything works fine ... on windows ^^.

But when I try to compile my app on my Debian Server over SSH. I get the
following Error:

h1191251:/var/www/webapps/vc/WEB-INF# ant server
Buildfile: build.xml

build:
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file to
/usr/lib/red5/webapps/vc/WEB-INF/classes
   [javac] Since fork is true, ignoring compiler setting.

   [javac] Exception java.lang.OutOfMemoryError: requested 96 bytes for
promotion. Out of swap space?

BUILD FAILED
/usr/lib/red5/webapps/vc/WEB-INF/build.xml:38: Compile failed; see the
compiler error output for details.

Total time: 2 seconds

ARGHHH!!! ARGGHHH!! ;)
I reconfigurated JAVA HOME:
h1191251:/var/www/webapps/vc/WEB-INF# JAVA_HOME=/usr/local/java/jdk1.5.0
h1191251:/var/www/webapps/vc/WEB-INF# export
JAVA_HOME='/usr/local/java/jdk1.5.0'

Thanks for your help.

Max
___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] Java OutOfMemoryError ...

2007-04-05 Thread Max Gieselmann

ADD:
I just tried something out:

export ANT_OPTS=-Xms256m -Xmx256m

ANT gives the following output:

build:
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file to /usr/lib/red5/webapps/vc/WEB-INF/classes
   [javac] Since fork is true, ignoring compiler setting.

BUILD FAILED
/usr/lib/red5/webapps/vc/WEB-INF/build.xml:38: Error running
/usr/local/java/jdk1.5.0/bin/javac compiler


Max

On 4/5/07, Max Gieselmann [EMAIL PROTECTED] wrote:


Hey
A few days ago, I had some trouble compiling my Red5 applications with
ant.
Now everything works fine ... on windows ^^.

But when I try to compile my app on my Debian Server over SSH. I get the
following Error:

h1191251:/var/www/webapps/vc/WEB-INF# ant server
Buildfile: build.xml

build:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file to
/usr/lib/red5/webapps/vc/WEB-INF/classes
[javac] Since fork is true, ignoring compiler setting.

[javac] Exception java.lang.OutOfMemoryError: requested 96 bytes for
promotion. Out of swap space?

BUILD FAILED
/usr/lib/red5/webapps/vc/WEB-INF/build.xml:38: Compile failed; see the
compiler error output for details.

Total time: 2 seconds

ARGHHH!!! ARGGHHH!! ;)
I reconfigurated JAVA HOME:
h1191251:/var/www/webapps/vc/WEB-INF# JAVA_HOME=/usr/local/java/jdk1.5.0
h1191251:/var/www/webapps/vc/WEB-INF# export
JAVA_HOME='/usr/local/java/jdk1.5.0'

Thanks for your help.

Max

___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] bandwidth detection in red5

2007-04-05 Thread Gregor Rot
Congratulations Dan for the bandwidth detection,

i am starting to use it in my app. and i notice the following:

- i check the bandwidth every 10 seconds because i am plotting the data into
a graph and i also have 1 audio stream open

The fact is that the check greatly influences the audio stream delay,
pushing it to 3,4 seconds, then the stream readjusts, then after another
bandwidth check it increases again...i didn't take a close look at the
bandwidth codecode but do you think it would be possible to change it (send
less data?) and have approx. the same accuracy with smaller inpact on
streaming and other data exchange?

tnx,
Gregor


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] New Red5 Announce mailinglist

2007-04-05 Thread Thijs Triemstra | Collab
hi,

the Red5 announcement list is now available. This list is used to  
post Red5 announcements such as new releases and security  
notifications. It is not a discussion list -- messages can be posted  
only by the Red5 team.

Signup on http://osflash.org/mailman/listinfo/red5-announce_osflash.org

Enjoy
- The Red5 team

___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] recording problem 2

2007-04-05 Thread Steven Gong

Tomas,
Could you please submit this issue to JIRA? Thanks.

On 4/5/07, Tomáš Procházka [EMAIL PROTECTED] wrote:


Hi.

But also in revision 1830 I have the same problem with recording.

Sometimes, especially in short records, red5 records few second with no
movement and then record corectly.

When I play this flv video in some players, same of them waiting few
second and another jump immediately few second.

Have somebody the same problem?

Here is example of buggy video:
http://portal2.sms.cz/logs/video_user-11494_id-29.flv


Here is log example log (for another buggy video):
First value is getTimer() result.

227 Stream action: NetStream.Play.Reset - NaN, isPlaying: true
227 Stream action: NetStream.Play.Start - NaN, isPlaying: true
1067 Stream action: NetStream.Buffer.Full - NaN, isPlaying: true
1067 Stream action: NetStream.Buffer.Empty - NaN, isPlaying: true
5068 Stream action: NetStream.Buffer.Full - 35%, isPlaying: true
After long period jump video directly to 35%

5068 Stream action: NetStream.Buffer.Empty - 35%, isPlaying: true
6067 Stream action: NetStream.Buffer.Full - 39%, isPlaying: true
After long period video play again.

14381 Stream action: NetStream.Play.Stop - 94%, isPlaying: true
15067 Stream action: NetStream.Buffer.Flush - 98%, isPlaying: true
16067 Stream action: NetStream.Buffer.Empty - 100%, isPlaying: true



--
Tomas Prochazka


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org





--
I cannot tell why this heart languishes in silence. It is for small needs it
never asks, or knows or remembers.  -- Tagore

Best Regards
Steven Gong
___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


[Red5] Maximum Simultaneous Connections

2007-04-05 Thread RED5
Hello? 

Nice to meet you. 

This is the first time to post in mailing list. 

 

I wanna know the max. simultaneous connections of RED5.

Is there anybody who knows that? 

I searched web site and help information, but I couldn’t find that. 

Please let me know. 

 

Thanks a lot. 

Bye. 

 

 

 

___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] bandwidth detection in red5

2007-04-05 Thread Dan Rossi
Gday this is a port from FMS and modified source from the Wowza code 
which kinda fixed up my calculation problems. Its sending packets 3 
times you could try and reduce this. I still think there should be a 
better way to do this either in Mina or something else ?

Gregor Rot wrote:
 Congratulations Dan for the bandwidth detection,

 i am starting to use it in my app. and i notice the following:

 - i check the bandwidth every 10 seconds because i am plotting the data into
 a graph and i also have 1 audio stream open

 The fact is that the check greatly influences the audio stream delay,
 pushing it to 3,4 seconds, then the stream readjusts, then after another
 bandwidth check it increases again...i didn't take a close look at the
 bandwidth codecode but do you think it would be possible to change it (send
 less data?) and have approx. the same accuracy with smaller inpact on
 streaming and other data exchange?

 tnx,
 Gregor


 ___
 Red5 mailing list
 Red5@osflash.org
 http://osflash.org/mailman/listinfo/red5_osflash.org

   


___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org


Re: [Red5] Maximum Simultaneous Connections

2007-04-05 Thread joseph wamicha

I don't think it has a cap like FMS. Just keep on opening them. Though, red5
would freeze after some time and stop accepting connections, though that
seems to have been fixed now:
http://jira.red5.org/browse/APPSERVER-41

Also, the maximum streams per connection is quite high, 13119.

Joachim,
I should say that you are quick and great! Seems I have to roll back my
local modifications... :-)

How did you find the 3 byte channel id case? By brute force?

On 2/10/07, Joachim Bauch jojo at struktur.de
http://osflash.org/mailman/listinfo/red5devs_osflash.org wrote:

*

** Hi,
**
** just a short FYI: the 12 stream-limit per connection is finally gone.
** Most of the credits go to Steven for finding out about 2 byte channel
** ids. The now (and final) maximum number of streams per connection is
** 13119 which should be enough for any type of application :)
**
** Technical background:
** RTMP uses two magic channels to encode such higher channel ids:
** Channel 0: 2 bytes containing AB00 CDEFGHIJ where AB is
** the header size marker and CDEFGHIJ is the channel id - 64.
**
** Channel 1: 3 bytes containing AB01 KLMNOPQR CDEFGHIJ where
** AB is the header size marker and CDEFGHIJ KLMNOPQR (network byte
** order!) is the channel id - 64.
**
** Examples (all assuming complete headers):
** Channel  234 is encoded as 0x00 0xAA
** Channel 3926 is encoded as 0x01 0x56 0x0F
**
** Joachim*



On 4/6/07, RED5 [EMAIL PROTECTED] wrote:


 Hello?

Nice to meet you.

This is the first time to post in mailing list.



I wanna know the max. simultaneous connections of RED5.

Is there anybody who knows that?

I searched web site and help information, but I couldn't find that.

Please let me know.



Thanks a lot.

Bye.







___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org





--
C is forever.
___
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org