Gstreamer One Liners: Unterschied zwischen den Versionen
Amir (Diskussion | Beiträge) |
Amir (Diskussion | Beiträge) |
||
Zeile 33: | Zeile 33: | ||
=== Receive & dump synchronized video streams === | === Receive & dump synchronized video streams === | ||
<pre> | <pre> | ||
gst-launch-0.10 -v gstrtpbin name=rtpbin \ | gst-launch-0.10 -v gstrtpbin name=rtpbin\ | ||
\ # Session 0: join \ | \ # Session 0: join \ | ||
udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, ssrc=(guint)469657143, payload=(int)96, clock-base=(guint)2841649723, seqnum-base=(guint)39869" port=9996 ! \ | udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, ssrc=(guint)469657143, payload=(int)96, clock-base=(guint)2841649723, seqnum-base=(guint)39869" port=9996 !\ | ||
rtpbin.recv_rtp_sink_0 | rtpbin.recv_rtp_sink_0 \ | ||
rtpbin. ! rtpjpegdepay ! \ | rtpbin. ! rtpjpegdepay !\ | ||
\ # Session 0: Dump video \ | \ # Session 0: Dump video\ | ||
filesink location=session0.mjpeg \ | filesink location=session0.mjpeg\ | ||
\ # Session 0: Receive RTCP packets \ | \ # Session 0: Receive RTCP packets\ | ||
udpsrc port=9997 ! rtpbin.recv_rtcp_sink_0 \ | udpsrc port=9997 ! rtpbin.recv_rtcp_sink_0\ | ||
\ # Session 0: Send RTCP packets \ | \ # Session 0: Send RTCP packets\ | ||
rtpbin.send_rtcp_src_0 ! multiudpsink clients="127.0.0.1:10000" sync=false async=false \ | rtpbin.send_rtcp_src_0 ! multiudpsink clients="127.0.0.1:10000" sync=false async=false\ | ||
\ # Session 1: join \ | \ # Session 1: join\ | ||
udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, ssrc=(guint)469657143, payload=(int)96, clock-base=(guint)2841649723, seqnum-base=(guint)39869" port=9998 ! \ | udpsrc caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, ssrc=(guint)469657143, payload=(int)96, clock-base=(guint)2841649723, seqnum-base=(guint)39869" port=9998 !\ | ||
rtpbin.recv_rtp_sink_1 | rtpbin.recv_rtp_sink_1 \ | ||
rtpbin. ! rtpjpegdepay ! \ | rtpbin. ! rtpjpegdepay !\ | ||
\ # Session 1: Dump video \ | \ # Session 1: Dump video\ | ||
filesink location=session1.mjpeg \ | filesink location=session1.mjpeg\ | ||
\ # Session 1: Receive RTCP packets \ | \ # Session 1: Receive RTCP packets\ | ||
udpsrc port=9999 ! rtpbin.recv_rtcp_sink_1 \ | udpsrc port=9999 ! rtpbin.recv_rtcp_sink_1\ | ||
\ # Session 1: Send RTCP packets \ | \ # Session 1: Send RTCP packets\ | ||
rtpbin.send_rtcp_src_1 ! multiudpsink clients="127.0.0.1:10001" sync=false async=false | rtpbin.send_rtcp_src_1 ! multiudpsink clients="127.0.0.1:10001" sync=false async=false | ||
</pre> | </pre> |