Hi mate, you will have to update to the latest 0.6 release and it should 
be fine.

Md Rafiqul Islam wrote:
> Thanks* Dan Rossi* for your quick reply.
>  
> I am using Red5 0.5 version.
>  
> In the following method of */StreamService.java/* 
> I called *bs.saveAs(name, true);* methon when MODE is live.
>  
>  
>  public void publish(String name, String mode) {
>         log.info("StreamService Publish 2 param-- mode:"+mode+" ,name 
> : "+name);
>         IConnection conn = Red5.getConnectionLocal();
>         if (!(conn instanceof IStreamCapableConnection)) return;
>         IStreamCapableConnection streamConn = 
> (IStreamCapableConnection) conn;
>         int streamId = getCurrentStreamId();
>         IClientStream stream = streamConn.getStreamById(streamId);
>         if (stream != null && !(stream instanceof 
> IClientBroadcastStream)){
>            log.info("return from StreamService Publish 2 param-- 
> mode:"+mode+" ,name : "+name);
>             return;
>         }
>         else
>         log.info("StreamService Publish 2 param-- mode:"+mode+" ,name 
> : "+name);
>         if (stream == null)
>             stream = streamConn.newBroadcastStream(streamId);
>         IClientBroadcastStream bs = (IClientBroadcastStream) stream;
>         try {
>             if (IClientStream.MODE_RECORD.equals(mode)) {
>                 bs.start();
>                 bs.saveAs(name, true);
>             } else if (IClientStream.MODE_APPEND.equals(mode)) {
>                 bs.start();
>                 bs.saveAs(name, true);
>             } else if (IClientStream.MODE_LIVE.equals(mode)) {
>                 IContext context = conn.getScope().getContext();
>                 IProviderService providerService = (IProviderService) 
> context.getBean(IProviderService.KEY);
>                 bs.setPublishedName(name);
>                 // TODO handle registration failure
>                 if 
> (providerService.registerBroadcastStream(conn.getScope(), name, bs)) {
>                     IBroadcastScope bsScope = 
> getBroadcastScope(conn.getScope(), bs.getPublishedName());
>                     
> bsScope.setAttribute(IBroadcastScope.STREAM_ATTRIBUTE, bs);
>                     if (conn instanceof BaseConnection)
>                         ((BaseConnection) 
> conn).registerBasicScope(bsScope);
>                 }
>                 bs.start();
> *                bs.saveAs(name, true);  //added by me to save 
> *               
>             }
>         } catch (Exception e) {
>             // TODO report publish error
>         }
>     }
> I got that exception is coming from
> *analyzeKeyFrames()*  method of   *FLVReader.java.*
>
> ** 
>
> *so, any idea without changing version ?*
>
> ** 
>
> *Thanks*
>
> *Md. Rafiqul Islam*
>
> ** 
>
> ** 
>
>
> ----- Original Message ----
> From: Dan Rossi <[EMAIL PROTECTED]>
> To: Md Rafiqul Islam <[EMAIL PROTECTED]>
> Cc: [email protected]
> Sent: Tuesday, July 24, 2007 12:03:34 PM
> Subject: Re: [Red5] Append mode broken...
>
> Hi I think that may have been fixed a while back, you might need to
> update your version, what is it ? We had this problem not even after a
> minute of a recording. It could have been a problem im not sure. Our
> problem now is appending a 1HR 100MB or so file over a network drive, it
> has to be local for now very unstable, it will reject the reconnect /
> append as what has happened the publsiher would randomly disconnect
> around 30 mins and then isnt able to reconnect.
>
> Md Rafiqul Islam wrote:
> > Hi all,
> >  
> > When I was going to save my stream in appending mode, I am getting
> > following exception.
> >  
> > New position exceeds limit
> > [ERROR] 315015 pool-1-thread-11:(
> > org.red5.server.stream.consumer.FileConsumer.e
> > rror ) error init file consumer
> > I got a similar posting by *Dan Rossi* spam at electroteque.org
> > 
> <mailto:Red5%40osflash.org?Subject=%5BRed5%5D%20append%20mode%20broken&In-Reply-To=7d3cd4a50612171849he19b4f0k7e2b4f38be58b643%40mail.gmail.com>
>  
> but
> > may not replied by anyone.
> >  
> > So, Dan Rossi, if you solved the problem then please help.
> >  
> > Regards
> > Rafiq
> >
> > ------------------------------------------------------------------------
> > Choose the right car based on your needs. Check out Yahoo! Autos new
> > Car Finder tool.
> > 
> <http://us.rd.yahoo.com/evt=48518/*http://autos.yahoo.com/carfinder/;_ylc=X3oDMTE3NWsyMDd2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDY2FyLWZpbmRlcg--%20>
>
>
> ------------------------------------------------------------------------
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge 
> <http://us.rd.yahoo.com/evt=47093/*http://tv.yahoo.com/collections/222>to 
> see what's on, when. 


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

Reply via email to