gstrtpbin: sender/receiver simultaneously

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

gstrtpbin: sender/receiver simultaneously

petekmet
Is it possible to use gstrtpbin for full duplex streaming ? For example, use session 0 for sending (captured webcam) stream out and session 1 for receiving (and display) remote stream ?  Document is stating just one way usage but there is no mention about full duplex functionality. Thanks. Peter
Reply | Threaded
Open this post in threaded view
|

Re: gstrtpbin: sender/receiver simultaneously

Wim Taymans
On 08/23/2011 02:02 PM, petekmet wrote:
> Is it possible to use gstrtpbin for full duplex streaming ? For example, use
> session 0 for sending (captured webcam) stream out and session 1 for
> receiving (and display) remote stream ?  Document is stating just one way
> usage but there is no mention about full duplex functionality. Thanks. Peter

Yes!

wim
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstrtpbin-sender-receiver-simultaneously-tp3762541p3762541.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstrtpbin: sender/receiver simultaneously

petekmet
Thanks a lot. However, for whatever reason, I am not able to make run following gstrtpbin code which demonstrates for me bi-directional streaming. If I split code to two pieces, it works. Code below - nope. Probably it has to do something with threading but I can't break this through. Please, help.
Peter


gst-launch -v \
gstrtpbin name=rtpbin \
udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263" port=5000 ! rtpbin.recv_rtp_sink_0 \
rtpbin. ! rtph263depay ! ffdec_h263 ! xvimagesink \
videotestsrc ! video/x-raw-yuv, framerate=30/1, width=320, height=240 ! videorate ! videoscale ! $VCAPS_OUT ! ffenc_h263 ! rtph263pay ! rtpbin.send_rtp_sink_1 \
rtpbin.send_rtp_src_1 ! udpsink port=5000 ts-offset=0
Reply | Threaded
Open this post in threaded view
|

Re: gstrtpbin: sender/receiver simultaneously

Olivier Crête-3
In reply to this post by petekmet
On Tue, 2011-08-23 at 05:02 -0700, petekmet wrote:
> Is it possible to use gstrtpbin for full duplex streaming ? For example, use
> session 0 for sending (captured webcam) stream out and session 1 for
> receiving (and display) remote stream ?  Document is stating just one way
> usage but there is no mention about full duplex functionality. Thanks. Peter

You can use the same session to send and receive.. Look at how it has
"send_*" pads and "recv_*" pads.

Different sessiosn would be like for audio and video (or for separate
video streams).

--
Olivier Crête
[hidden email]

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gstrtpbin: sender/receiver simultaneously

petekmet
Olivier, well, in my case, incoming and outgoing videostreams are unrelated. Outgoing stream contains webcam video and incomming video stream contains remote party webcam video. I am not sure if those two videostreams should be part of single session (they are from my point unrelated) or different sessions. Anyway, seems like my snippet doesn't work due to threading issue. Could you tell what's wrong ? Your help would be highly appreciated.
Peter
Reply | Threaded
Open this post in threaded view
|

Re: gstrtpbin: sender/receiver simultaneously

Olivier Crête-3
On Wed, 2011-08-24 at 01:22 -0700, petekmet wrote:
> Olivier, well, in my case, incoming and outgoing videostreams are unrelated.
> Outgoing stream contains webcam video and incomming video stream contains
> remote party webcam video. I am not sure if those two videostreams should be
> part of single session (they are from my point unrelated) or different
> sessions. Anyway, seems like my snippet doesn't work due to threading issue.
> Could you tell what's wrong ? Your help would be highly appreciated.
> Peter

These sound related to me. In a video call for example, you have a
single RTP session that is used to be send and receive from the remote
party.

You can look at examples in the gstrtpbin doc on how to make it work.

--
Olivier Crête
[hidden email]

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment