How to play rtp stream with playbin?
Taeho Oh
ohhara at gmail.com
Thu Feb 4 08:59:16 UTC 2016
Hi.
I have a rtp streaming source. The following command works well in my
environment.
gst-launch-1.0 udpsrc uri=udp://aaa.bbb.ccc.ddd:eee
caps='application/x-rtp,media=(string)video,clock-rate=(int)90000,payload=(int)33'
! rtpbin ! rtpmp2tdepay ! decodebin name=decodebin decodebin. !
autovideosink decodebin. ! autoaudiosink
I tried to play rtp stream with playbin as follows.
gst-launch-1.0 playbin uri=udp://aaa.bbb.ccc.ddd:eee
But it didn't work properly. It worked sometimes, but it stuttered
severely. I inspected the pipeline diagram by using GST_DEBUG_DUMP_DOT_DIR
env var, and I can't find rtpjitterbuffer in the pipeline. So I guess it
didn't work because it didn't handle network jitter properly. (or am I
wrong? then what can cause the stutter?)
I would like to play rtp stream with playbin as it supports many convenient
functions such as multiple audio support, subtitle support, volume control
support, and etc.
I know that playbin has a lot of properties which provides hooks for
gstelements used in the playbin, such as "video-sink" property,
"audio-sink" property, and etc. By setting those properties, I can change
audio sink and video sink gst element in the playbin. However, I can't find
a way to change the src gst element. It has "source" property but it is
read-only.
My questions :
Q1) Is there any easy way to add "udpsrc uri=udp://aaa.bbb.ccc.ddd:eee
caps='application/x-rtp,media=(string)video,clock-rate=(int)90000,payload=(int)33'
! rtpbin ! rtpmp2tdepay" to playbin src gst element?
Q2) Can I add those gst elements right after "source" gst element by using
"source-setup" signal?
Q3) Is there any other easier ways to play rtp stream with playbin?
Best regards,
Taeho
--
Taeho Oh ( ohhara at postech.edu )
http://ohhara.sarang.net
Postech ( Pohang University of Science and Technology )
http://www.postech.edu
Alticast Corp.
http://www.alticast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160204/4c297149/attachment.html>
More information about the gstreamer-devel
mailing list