Ross Finlayson | 1 Oct 2009 07:35
Favicon

Re: TS over UDP (or RTP)

Can I do this as soon as I get a block and as fast as a for loop will pass off the 7xTS packets. In other words will the Framer buffer until it needs to go?

I don't really understand your question.

Just set up a standard LIVE555 data chain:
        your-7-transport-packet-source -> MPEG2TransportStreamFramer -> SimpleRTPSink

Because of the "MPEG2TransportStreamFramer" object, data will end up getting streamed at an appropriate rate.
-- --

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Pannaman, Jonathan | 2 Oct 2009 00:30

Re: TS over UDP (or RTP)

Sorry I wrote that having not looked at the library for a while, reviewing it today however I have some different questions.
 
The motivation for the question was thinking there was a method that I called to hand over a buffer with a 7xTS packet in it, my concern was that if I did that would I have to control the flow so as not to overrun the framers buffer. In the sample I have though it looks like the MPEG2TransportStreamFramer pulls data from a FramedSource.
 
My question then is do I have to create a FramedSource derived class and which methods do I have to implement/override? If you can point me at a example of this it would be great.
 
Thanks
 
 
Jon Pannaman
 

From: live-devel-bounces-m22LxytlYjp4ccXRSk2lxg@public.gmane.org [mailto:live-devel-bounces-m22LxytlYjp4ccXRSk2lxg@public.gmane.org] On Behalf Of Ross Finlayson
Sent: Wednesday, September 30, 2009 10:35 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] TS over UDP (or RTP)

Can I do this as soon as I get a block and as fast as a for loop will pass off the 7xTS packets. In other words will the Framer buffer until it needs to go?

I don't really understand your question.

Just set up a standard LIVE555 data chain:
        your-7-transport-packet-source -> MPEG2TransportStreamFramer -> SimpleRTPSink

Because of the "MPEG2TransportStreamFramer" object, data will end up getting streamed at an appropriate rate.
--

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

Please consider the environment before printing this e-mail.
_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Ross Finlayson | 2 Oct 2009 03:13
Favicon

Re: TS over UDP (or RTP)

My question then is do I have to create a FramedSource derived class

Yes.
and which methods do I have to implement/override?

doGetNextFrame()
 If you can point me at a example of this it would be great.

There are several in the code.  However, for a template of how to do this, see "DeviceSource.cpp".

Also, for an example of code that reads from a capture devlce, converts it into a Transport Stream, collects Transport Stream packets into groups of 7, and then streams it via RTP, see the "wis-streamer" code - http://www.live555.com/wis-streamer/ - in particular, "WISMPEG2TransportStreamServerMediaSubsession.cpp"
-- --

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel@...
http://lists.live555.com/mailman/listinfo/live-devel
Ross Finlayson | 2 Oct 2009 03:13
Favicon

Re: TS over UDP (or RTP)

My question then is do I have to create a FramedSource derived class

Yes.
and which methods do I have to implement/override?

doGetNextFrame()
 If you can point me at a example of this it would be great.

There are several in the code.  However, for a template of how to do this, see "DeviceSource.cpp".

Also, for an example of code that reads from a capture devlce, converts it into a Transport Stream, collects Transport Stream packets into groups of 7, and then streams it via RTP, see the "wis-streamer" code - http://www.live555.com/wis-streamer/ - in particular, "WISMPEG2TransportStreamServerMediaSubsession.cpp"
-- --

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
Pannaman, Jonathan | 2 Oct 2009 00:30

Re: TS over UDP (or RTP)

Sorry I wrote that having not looked at the library for a while, reviewing it today however I have some different questions.
 
The motivation for the question was thinking there was a method that I called to hand over a buffer with a 7xTS packet in it, my concern was that if I did that would I have to control the flow so as not to overrun the framers buffer. In the sample I have though it looks like the MPEG2TransportStreamFramer pulls data from a FramedSource.
 
My question then is do I have to create a FramedSource derived class and which methods do I have to implement/override? If you can point me at a example of this it would be great.
 
Thanks
 
 
Jon Pannaman
 

From: live-devel-bounces <at> ns.live555.com [mailto:live-devel-bounces <at> ns.live555.com] On Behalf Of Ross Finlayson
Sent: Wednesday, September 30, 2009 10:35 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] TS over UDP (or RTP)

Can I do this as soon as I get a block and as fast as a for loop will pass off the 7xTS packets. In other words will the Framer buffer until it needs to go?

I don't really understand your question.

Just set up a standard LIVE555 data chain:
        your-7-transport-packet-source -> MPEG2TransportStreamFramer -> SimpleRTPSink

Because of the "MPEG2TransportStreamFramer" object, data will end up getting streamed at an appropriate rate.
--

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

Please consider the environment before printing this e-mail.
_______________________________________________
live-devel mailing list
live-devel <at> lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Gmane