How to implement the pipeline in programming?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to implement the pipeline in programming?

liangzhihong1984
 
 Hi, everyone.
 I just got a pipeline like this:
 

gst-launch -v gstrtpbin name=rtpbin filesrc location=h264.ts ! \

                 queue2 max-size-buffers=65535 ! \

                 h264parse ! \

                 rtpmp2tpay ! \

                 queue2 max-size-buffers=65535 ! \

                 identity sync=true silent=true sleep-time=300 ! \

                 rtpbin.send_rtp_sink_0 \

                 rtpbin.send_rtp_src_0 ! udpsink host=192.168.1.2 port=5000 \

                 rtpbin.send_rtcp_src_0 ! udpsink host=192.168.1.2 port=5001 sync=false async=false \

                 udpsrc port=5002 ! rtpbin.recv_rtcp_sink_0

 

Now, I want to do the same work with programming language, such as C or C++.

But I've no idea about how to do that, especially how to handle these rtpbin related

stuffs, like "send_rtp_src_0" and "send_rtcp_src_0".

How to create and link these elements?

Can anybody give me some help.

Thank you in advance.

 

 

 

Best Regards,

Leon Liang




<a href="http://allyes.nie.163.com/main/adfclick?db=afanie&bid=1698,833,77&cid=148,4,1&sid=1804&show=ignore&url=http://xyw.16 3.com/2008/heka/ ">《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to implement the pipeline in programming?

Jack Foster-2
lol.  I asked this exact question not five days ago.

Check this answer from Wim:
I added some C examples in CVS here:

http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/tests/examples/rtp/

Look at client-PCMA.c and server-alsasrc-PCMA.c

Cheers!
Jack.

On Tue, Jan 6, 2009 at 8:51 AM, liangzhihong1984 <[hidden email]> wrote:
 
 Hi, everyone.
 I just got a pipeline like this:
 

gst-launch -v gstrtpbin name=rtpbin filesrc location=h264.ts ! \

                 queue2 max-size-buffers=65535 ! \

                 h264parse ! \

                 rtpmp2tpay ! \

                 queue2 max-size-buffers=65535 ! \

                 identity sync=true silent=true sleep-time=300 ! \

                 rtpbin.send_rtp_sink_0 \

                 rtpbin.send_rtp_src_0 ! udpsink host=192.168.1.2 port=5000 \

                 rtpbin.send_rtcp_src_0 ! udpsink host=192.168.1.2 port=5001 sync=false async=false \

                 udpsrc port=5002 ! rtpbin.recv_rtcp_sink_0

 

Now, I want to do the same work with programming language, such as C or C++.

But I've no idea about how to do that, especially how to handle these rtpbin related

stuffs, like "send_rtp_src_0" and "send_rtcp_src_0".

How to create and link these elements?

Can anybody give me some help.

Thank you in advance.

 

 

 

Best Regards,

Leon Liang




《大话西游外传》贺岁新作,送豪宅、送你5000元压岁钱

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel