UDP Streaming in SDK
Sebastian Dröge
sebastian at centricular.com
Wed Oct 26 07:13:47 UTC 2016
On Tue, 2016-10-25 at 11:45 -0400, Emmett Palaima wrote:
> That makes sense. Just to make sure I am understanding this
> correctly, would I just put the command line I am using to create the
> pipeline into gst_parse_launch verbatim? So:
>
> gst_parse_launch("gst-launch-1.0 udpsrc port=5001 ! application/x-
> rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 !
> fpsdisplaysink sync=false text-overlay=false", &errorptr);
Without the "gst-launch-1.0 " part at the beginning, yes. Why do you
use sync=false btw?
Also you can do
udpsrc port=5001 caps="application/x-rtp..." ! rtpjitterbuffer ! ...
instead of the separate element.
Note however that your RTP caps are incomplete, more fields are
needed. Check the caps on the sinkpad template in
gst-inspect-1.0 rtph264depay
> Also, if I want to set up each element of the pipeline individually,
> how would I read from a udp source? That was one of the main things I
> was looking for and could not seem to find.
Take a look at this example
https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/rtp/client-PCMA.c#n150
> I will also definitely check out the Raspberry Pi link you posted. It
> seems that your method is more robust.
It's also noticeable more efficient :)
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161026/96b818d9/attachment.sig>
More information about the gstreamer-devel
mailing list