[Red5] serverStream breaks on particular FLV -- was serverStreamPerformance?
Steven Gong
steven.gong at gmail.com
Mon Aug 7 21:11:29 EDT 2006
Hi Jim,
I tried your flv but can't reproduce the result you mentioned. Could you
please tell me how to reproduce this issue step by step with this flv?
Thanks.
On 8/7/06, Jim Wallace <jimwattm at yahoo.com> wrote:
>
> Thanks for checking it out. I got the latest code again, and am making
> progress. I found first that calling setLength with a value longer than the
> video helped. Then found that one of the FLVs was messing up the rest of
> the stream. It looks like it has metadata and does play fine in flv
> players, so I'm not sure why it breaks Red5. If you're interested you can
> get it here: *http://streaming.kaneva.com/stream2.php?tId=8404*
> **
>
> *Steven Gong <steven.gong at gmail.com>* wrote:
>
>
>
> On 8/7/06, Jim Wallace <jimwattm at yahoo.com> wrote:
> >
> > (Forgive me if this is a repost, I thought I sent it, but it isn't in
> > my sent folder. Any help is appreciated.)
> >
> > I see you applied the patch so I got the latest from SVN and built. It
> > seemed to help, but still has major problems. Now instead of pausing every
> > couple of seconds it does this (give the code below that has three items in
> > a playlist): First video plays fine now, almost to the end. Then the video
> > stops, but audio continues. The audio continues through to the end of the
> > playlist. When the audio completes, the video resume and plays to the end.
> >
> > Am I doing something wrong in the code below? Does anyone else have a
> > sample of server-side playlist (like a TV broadcast, etc.) that does work
> > smoothly?
> >
>
> Your code seems to be correct. But I tried the server-side stream didn't
> find the problem you mentioned. The second video just plays successfully.
>
> Thanks,
> > jmw
> >
> > *Steven Gong <steven.gong at gmail.com>* wrote:
> >
> >
> >
> > On 8/2/06, Jim Wallace < jimwattm at yahoo.com> wrote:
> > >
> > > Here's my modified sample that creates a playlist of three items. It
> > > works but is very choppy, pausing for several seconds serveral times.
> > >
> > > Questions:
> > > 1) Is there anything I can do to get it to stream smoothly? I can't
> > > use it if it can't do one stream to one client.
> > >
> >
> > We have got one patch from our users on Trac - #104. I am currently
> > reviewing it. This patch can solve this jerky issue.
> >
> >
> >
> > TIA,
> > jmw
> >
> >
> > --------------------
> > package org.red5.server.webapp.test;
> >
> > import org.red5.server.adapter.ApplicationAdapter ;
> > import org.red5.server.api.IConnection;
> > import org.red5.server.api.IScope;
> > import org.red5.server.api.stream.IPlayItem ;
> > import org.red5.server.api.stream.IServerStream;
> > import org.red5.server.api.stream.IStreamCapableConnection ;
> > import org.red5.server.api.stream.support.SimpleBandwidthConfigure;
> > import org.red5.server.api.stream.support.SimplePlayItem;
> > import org.red5.server.api.stream.support.StreamUtils;
> >
> > public class Application extends ApplicationAdapter {
> > private IServerStream serverStream;
> > private IScope appScope;
> >
> > @Override
> > public boolean appStart(IScope app) {
> > appScope = app;
> > serverStream = StreamUtils.createServerStream (appScope,
> > "liveX");
> > SimplePlayItem item = new SimplePlayItem();
> > item.setStart(0);
> > item.setLength(10000);
> > item.setName("on2_flash8_w_audio");
> > serverStream.addItem(item);
> >
> > item = new SimplePlayItem();
> > item.setStart(0);
> > item.setLength(10000);
> > item.setName("cort1");
> > serverStream.addItem(item);
> >
> > item = new SimplePlayItem();
> > item.setStart (0);
> > item.setLength(10000);
> > item.setName("golfers");
> > serverStream.addItem(item);
> >
> > serverStream.start();
> > return true;
> > }
> >
> > @Override
> > public boolean appConnect(IConnection conn, Object[] params) {
> > // Trigger calling of "onBWDone", required for some FLV players
> > measureBandwidth(conn);
> > if (conn instanceof IStreamCapableConnection) {
> > IStreamCapableConnection streamConn =
> > (IStreamCapableConnection) conn;
> > SimpleBandwidthConfigure sbc = new
> > SimpleBandwidthConfigure();
> > sbc.setMaxBurst(8*1024*1024);
> > sbc.setBurst(8*1024*1024);
> > sbc.setOverallBandwidth(2*1024*1024);
> > streamConn.setBandwidthConfigure(sbc);
> > }
> >
> > }
> >
> > @Override
> > public void appDisconnect(IConnection conn) {
> > if (appScope == conn.getScope()) {
> > serverStream.close ();
> > }
> > super.appDisconnect(conn);
> > }
> >
> > public String test(String val){
> > log.debug("test called on: "+getName());
> > return val + val;
> > }
> >
> > public Double add(Double a, Double b){
> > return a + b;
> > }
> > public Double subtract(Double a, Double b){
> > return a - b;
> > }
> > }
> >
> > ------------------------------
> > How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call
> > rates.
> > <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> >
> > _______________________________________________
> > Red5 mailing list
> > Red5 at osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
> >
> >
> >
> >
> > --
> > Best Regards
> > Steven Gong _______________________________________________
>
>
>
>
> --
> Best Regards
> Steven Gong _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
> ------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls<http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>to the US (and 30+ countries) for 2�/min or less.
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
--
Best Regards
Steven Gong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20060808/58acaa58/attachment-0001.htm
More information about the Red5
mailing list