Hi peeps, i guess everyone is on leave the list is quiet this week, however ive come up with yet another work around however need to somehow device a way to add the logic to my custom filename generator bean. In windows media there is no such thing as "appending" however after each "take" it will move the old file to a backup and start archiving a new file, this can then obviouslly be "joined" or add the seperate files into a playlist. The append is only important if the client connection drops out and then obviously rebroadcasting overwrites the current file.

In my custom bean in record mode the filename has a date timestamp given by a date format from a red5 property config (example shown in wiki later maybe ?) , so obviouslly when re-recording the filename set is the same so will overwrite, id have to work out to do some kind of java filesystem stuff to move the current file if it exists to a backup name like a rolling file appender log and then continue with the given name.

If anyone at all has an example of how to setup the file backup naming convention logic/code , this would be greatly appreciated as it will help us out and of course example code given back. This really blew out our first stream/archive luckily it was taped hopefully as they were recording on the 3 chip camera.

While im kinda on the topic, we've noticed when there is frequent movement on a steady cam, the video will freeze (seems like flash is trying to auotcorrect itself ? ) while the audio is still playing then it comes back, decreasing the audio quality somehow helped this at most times to suit a connection but with very high camera shitter its still a problem any ideas to fix this ?

Dan Rossi wrote:
Apologies , it seems it is indeed an issue with the append mode, to my knowledge without being able to view the entire archived file, the timecode is out of wack, it stops at 1.30 minutes for a http progressive download stream also. When testing via the sorenson squeeze flv player it is kinda able to skip further than 1.30 minutes but doesnt scrub properly either so definately a time issue.

Ive double checked and made sure our flex broadcaster app setting has the append mode turned off.

Dan Rossi wrote:
Hi there, it seems it was publishing in append mode damn ! I had made sure it was turned off by the user but it doesnt seem like it. We get errors when appending an archive after about a 1 minute length and get the new position exceeds limit issues.

sorry here was the rest of the exception didnt past properly.

[INFO] 1612453 pool-1-thread-10:( org.red5.io.flv.impl.FLVReader.info ) New posi
tion exceeds limit
[DEBUG] 1709907 pool-1-thread-12:( org.red5.server.Scope.debug ) returning conte
xt
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.Scope.debug ) returning conte
xt
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.Scope.debug ) returning conte
xt
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.BaseConnection.debug ) Close,
 disconnect from scope, and children
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.adapter.ApplicationAdapter.de
bug ) disconnect
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.adapter.ApplicationAdapter.de bug ) appDisconnect: RTMPMinaConnection from 12.145.153.218:3505 to 69.42.91.84
(in: 9280, out: 1015181)
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.adapter.ApplicationAdapter.de
bug ) leave
[DEBUG] 1709922 pool-1-thread-12:( org.red5.server.adapter.ApplicationAdapter.de bug ) appLeave: Client: 6 << [EMAIL PROTECTED] Depth = 1, Path = '/default', Name
 = 'campcam']
[WARN] 1710422 pool-1-thread-15:( org.red5.server.stream.provider.FileProvider.w
arn ) Unexpected type? 0
[WARN] 1710500 pool-1-thread-15:( org.red5.server.stream.provider.FileProvider.w
arn ) Unexpected type? -36
[ERROR] 1715813 pool-1-thread-15:( org.red5.server.net.rtmp.codec.RTMPProtocolEn
coder.error ) Error encoding object:
java.lang.NullPointerException
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeNotifyOrInvo
ke(RTMPProtocolEncoder.java:412)
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeNotifyOrInvo
ke(RTMPProtocolEncoder.java:403)
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeInvoke(RTMPP
rotocolEncoder.java:397)
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodeMessage(RTMP
ProtocolEncoder.java:211)
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encodePacket(RTMPP
rotocolEncoder.java:110)
at org.red5.server.net.rtmp.codec.RTMPProtocolEncoder.encode(RTMPProtoco
lEncoder.java:89)
at org.red5.server.net.rtmp.codec.RTMPMinaProtocolEncoder.encode(RTMPMin
aProtocolEncoder.java:38)
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(Protocol
CodecFilter.java:219)
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilt
erWrite(AbstractIoFilterChain.java:573)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(Abst
ractIoFilterChain.java:52)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filt
erWrite(AbstractIoFilterChain.java:789)
at org.apache.mina.filter.executor.ExecutorFilter.filterWrite(ExecutorFi
lter.java:271)
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilt
erWrite(AbstractIoFilterChain.java:573)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(Abst
ractIoFilterChain.java:52)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filt
erWrite(AbstractIoFilterChain.java:789)
at org.red5.io.filter.ExecutorFilter.filterWrite(ExecutorFilter.java:250
)
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilt
erWrite(AbstractIoFilterChain.java:573)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1200(Abst
ractIoFilterChain.java:52)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filt
erWrite(AbstractIoFilterChain.java:789)
at org.apache.mina.common.support.AbstractIoFilterChain$2.filterWrite(Ab
stractIoFilterChain.java:213)
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilt
erWrite(AbstractIoFilterChain.java:573)
at org.apache.mina.common.support.AbstractIoFilterChain.fireFilterWrite(
AbstractIoFilterChain.java:564)
at org.apache.mina.transport.socket.nio.SocketSessionImpl.write0(SocketS
essionImpl.java:186)
at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java
:146)
at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java
:132)
at org.red5.server.net.rtmp.RTMPMinaConnection.write(RTMPMinaConnection.
java:85)
        at org.red5.server.net.rtmp.Channel.write(Channel.java:126)
        at org.red5.server.net.rtmp.Channel.write(Channel.java:104)
at org.red5.server.stream.consumer.ConnectionConsumer.pushMessage(Connec
tionConsumer.java:136)
at org.red5.server.messaging.InMemoryPushPushPipe.pushMessage(InMemoryPu
shPushPipe.java:83)
at org.red5.server.stream.PlaylistSubscriberStream$PlayEngine.sendMessag
e(PlaylistSubscriberStream.java:990)
at org.red5.server.stream.PlaylistSubscriberStream$PlayEngine.pullAndPus
h(PlaylistSubscriberStream.java:941)
at org.red5.server.stream.PlaylistSubscriberStream$PlayEngine.access$100
(PlaylistSubscriberStream.java:514)
at org.red5.server.stream.PlaylistSubscriberStream.written(PlaylistSubsc
riberStream.java:400)
at org.red5.server.net.rtmp.BaseRTMPHandler.messageSent(BaseRTMPHandler.
java:194)
at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageSent(RTMPMinaIoHand
ler.java:170)
at org.apache.mina.common.support.AbstractIoFilterChain$2.messageSent(Ab
stractIoFilterChain.java:202)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageS
ent(AbstractIoFilterChain.java:531)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(Abst
ractIoFilterChain.java:52)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.mess
ageSent(AbstractIoFilterChain.java:783)
at org.red5.io.filter.ExecutorFilter.processEvent(ExecutorFilter.java:23
4)
at org.red5.io.filter.ExecutorFilter$ProcessEventsRunnable.run(ExecutorF
ilter.java:279)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
[WARN] 1715844 pool-1-thread-15:( org.red5.server.stream.provider.FileProvider.w
arn ) Unexpected type? 116

Dan Rossi wrote:
Hi there, ive just pull through with the first live webcam with everything still patchy and it seems the archive is not playing properly. Its either the broadcaster was publishing in append mode which has a problem still or subscribing to an archive altogther here is the errors i get it stops after 1.30 minutes but is over 1.5 hrs long. Any ideas ?


[DEBUG] 382797 pool-1-thread-9:( org.red5.server.Scope.debug ) returning context

[INFO] 382907 pool-1-thread-9:( org.red5.io.flv.impl.FLVReader.info ) New positi
on exceeds limit

------------------------------------------------------------------------

_______________________________________________
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