[Live-devel] Urgent help needed!
Morgan Tørvolt
morgan.torvolt at gmail.com
Fri Feb 2 22:07:21 PST 2007
Hi
As your application does not need timing data to work properly (VLC
makes sure the data leaves the source at the right time), you could
just remove the MPEG2TransprtStreamFramer from the chain in your
RTSPserver. That will make the data retransmitted as soon as it
arrives.
You find this in MPEG2TransportFileServerMediaSubsession.cpp
// Create a framer for the Transport Stream:
return MPEG2TransportStreamFramer::createNew(envir(), fileSource);
instead, do this:
// Create a framer for the Transport Stream:
return fileSource;
If it is the proper way of doing it, I can't say, but it works. What
happes is that the fDurationInMicroseconds is not set, causing the
server to transmit as soon as it can.
-Morgan-
On 03/02/07, Victor Lee <victor_l2000 at hotmail.com> wrote:
> Hi Ross,
>
> We are trying to implement our system using livemedia for the RTSP server
> part. I did not work long with livemedia, but have done something with this
> great library. We hope that we can continue use livemedia lib.
>
> The data flow for me is as follows:
>
> MPEG file -> VLC, streaming out with RTP to a multicast address, output in
> MPEG TS format -> RTP client receive the RTP packet, send data to
> testOnDemandRTSPServer.
> In testOnDemandRTSPServer, we tried to modify ByteStreamFileSource, and let
> it accept the data sending from RTP client, instead of reading from a file.
>
> Problem: the speed of reading in ByteStreamFileSource is slower than the
> speed that RTP client sending out data, thus some data will be lost before
> it can be processed in ByteStreamFileSource.
>
> When the testOnDemandRTSPServer reads a stream from a file, it knows the
> time to read and the amount of data it needs. The RTP Client who is sending
> the source steam data out should be in a fixed speed.
>
> Could you please answer my following questions and give me some suggestions?
>
> 1. Is testOnDemandRTSPServer/ByteStreamFileSource the right one I should use
> to implement my application? If not, what should I use?
> Should I use the way described in your FAQ about testOnDemandRTSPServer
> taking input from a live source instead of from a file?
>
> 2. Can we control the speed in testOnDemandRTSPServer so that it is of the
> same speed as the encoder's speed?
>
> Any suggestions are welcome! Thanks for your help and have a great weekend!
>
> Victor
>
> _________________________________________________________________
> FREE online classifieds from Windows Live Expo – buy and sell with people
> you know
> http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://expo.live.com?s_cid=Hotmail_tagline_12/06
>
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
>
More information about the live-devel
mailing list