[Live-devel] Live555 Streaming from a live source
Sagi Ben Moshe
sagi at netvision.net.il
Sat Jul 10 15:12:05 PDT 2010
Hi Ross,
Ok, we used the StreamParser class and probably this cause the problem we
have.
This is our Device class
class CapDeviceSource: public FramedSource {
We are trying to stream MPEG4 (Later on we will move to H.264)
What is the best class to derive from instead of FramedSource in order to
use DiscreteFramer downstream object?
If I understood you correctly it is MPEG4VideoStreamDiscreteFramer and we
should implement the function doGetNextFunction but looking on the code we
thought it is best to implement the function afterGettingFrame1, yet it is
not virtual so probably we are missing something.
Thanks,
Sagi
-----Original Message-----
From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Friday, July 09, 2010 12:13 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Live555 Streaming from a live source
>I did not sure I understand your last statement "make sure that your
>downstream object always has enough buffer space to avoid trunction - i.e.,
>so that fMaxSize is always >= fFrameSize". How can I assure it, the
Live555
>library request 150,000 bytes exactly.
This is true only for the "StreamParser" class, which you should
*not* be using, because you are delivering discrete frames - rather
than a byte stream - to your downstream object. In particular, you
should be using a "*DiscreteFramer" object downstream, and not a
"*Framer".
What objects (classes) do you have 'downstream' from your input
device, and what type of data (i.e., what codec) is your
"DeviceSource" object trying to deliver? (This may help identify the
problem.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
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