Gstreamer One Liners: Unterschied zwischen den Versionen
Amir (Diskussion | Beiträge) |
Amir (Diskussion | Beiträge) |
||
Zeile 5: | Zeile 5: | ||
=== Capture & send synchronized video streams === | === Capture & send synchronized video streams === | ||
<pre> | <pre> | ||
gst-launch-0.10 -v gstrtpbin name=rtpbin \ | gst-launch-0.10 -v gstrtpbin name=rtpbin\ | ||
\ # Capture video0 \ | \ # Capture video0\ | ||
v4l2src device=/dev/video0 ! \ | v4l2src device=/dev/video0 !\ | ||
'image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! \ | 'image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)30/1' !\ | ||
\ # Session 0: Create \ | \ # Session 0: Create\ | ||
rtpjpegpay ! rtpbin.send_rtp_sink_0 \ | rtpjpegpay ! rtpbin.send_rtp_sink_0\ | ||
rtpbin.send_rtp_src_0 ! multiudpsink clients="127.0.0.1:9996" \ | rtpbin.send_rtp_src_0 ! multiudpsink clients="127.0.0.1:9996"\ | ||
\ # Session 0: Send RTCP packets \ | \ # Session 0: Send RTCP packets\ | ||
rtpbin.send_rtcp_src_0 ! multiudpsink clients="127.0.0.1:9997" sync=false async=false \ | rtpbin.send_rtcp_src_0 ! multiudpsink clients="127.0.0.1:9997" sync=false async=false\ | ||
\ # Session 0: Receive RTCP packets \ | \ # Session 0: Receive RTCP packets\ | ||
udpsrc port=10000 ! rtpbin.recv_rtcp_sink_0\ | udpsrc port=10000 ! rtpbin.recv_rtcp_sink_0\ | ||
\ # Capture video1\ | \ # Capture video1\ | ||
v4l2src device=/dev/video1 !\ | v4l2src device=/dev/video1 !\ | ||
'image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)30/1' ! \ | 'image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)30/1' !\ | ||
\ # Session 1: Create\ | \ # Session 1: Create\ | ||
rtpjpegpay ! rtpbin.send_rtp_sink_1\ | rtpjpegpay ! rtpbin.send_rtp_sink_1\ | ||
rtpbin.send_rtp_src_1 ! multiudpsink clients="127.0.0.1:9998" \ | rtpbin.send_rtp_src_1 ! multiudpsink clients="127.0.0.1:9998"\ | ||
\ # Session 1: Receive RTCP packets\ | \ # Session 1: Receive RTCP packets\ | ||
rtpbin.send_rtcp_src_1 ! multiudpsink clients="127.0.0.1:9999" sync=false async=false \ | rtpbin.send_rtcp_src_1 ! multiudpsink clients="127.0.0.1:9999" sync=false async=false\ | ||
\ # Session 1: Send RTCP packets\ | \ # Session 1: Send RTCP packets\ | ||
udpsrc port=10001 ! rtpbin.recv_rtcp_sink_1 | udpsrc port=10001 ! rtpbin.recv_rtcp_sink_1 |