<div dir="ltr">Hello,<div><br></div><div>Sorry for being a little offtopic but I'm working on our streaming setup (course capture and streaming with matterhorn and wowza), and I'm a bit lost with gstreamer, and found no other place to ask.</div><div><br></div><div>I'm trying to combine 2 video sources (/dev/screen (vga2usb framegrabber) and /dev/video0 (camera composite input)) in a matrix, which I would then stream to our wowza server with RTP. Sound should also be streamed.</div><div><br></div><div>So far, I've found a way to only send only camera and sound, with this pipeline :</div><div><div><br></div><div>DEST=192.168.10.10</div><div>VDEVICE=/dev/video0</div></div><div>VELEM="v4l2src device=$VDEVICE"<br></div><div><div>#VELEM="videotestsrc is-live=1"</div><div>VCAPS="video/x-raw-yuv,width=$WRES,height=$HRES,framerate=$FPS/1"</div><div>VSOURCE="$VELEM ! video/x-raw-rgb  ! ffmpegcolorspace"</div><div>VENC="x264enc tune=zerolatency byte-stream=true bitrate=$BITRATE"</div><div><br></div><div>VRTPSINK="udpsink port=5002 host=$DEST ts-offset=$VOFFSET name=vrtpsink"</div><div>VRTCPSINK="udpsink port=5003 host=$DEST sync=false async=false name=vrtcpsink"</div><div>VRTCPSRC="udpsrc port=5003 name=vrtpsrc"</div><div><br></div><div>AELEM="alsasrc device=hw:1"</div><div>#AELEM="audiotestsrc is-live=1"</div><div>ASOURCE="$AELEM ! queue ! audioresample ! audioconvert"</div><div>AENC="faac ! rtpmp4apay"</div><div><br></div><div>ARTPSINK="udpsink port=5000 host=$DEST ts-offset=$AOFFSET name=artpsink"</div><div>ARTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=artcpsink"</div><div>ARTCPSRC="udpsrc port=5001 name=artpsrc"</div></div><div><br></div><div><br></div><div><div>gst-launch -v gstrtpbin name=rtpbin \</div><div>        $VSOURCE ! $VENC ! rtph264pay ! rtpbin.send_rtp_sink_0                   \</div><div>                rtpbin.send_rtp_src_0 ! $VRTPSINK                                         \</div><div>                rtpbin.send_rtcp_src_0 ! $VRTCPSINK                                       \</div><div>            $VRTCPSRC ! rtpbin.recv_rtcp_sink_0                                           \</div><div>        $ASOURCE ! $AENC ! rtpbin.send_rtp_sink_1                                         \</div><div>        rtpbin.send_rtp_src_1 ! $ARTPSINK                                                 \</div><div>        rtpbin.send_rtcp_src_1 ! $ARTCPSINK                                               \</div><div>      $ARTCPSRC ! rtpbin.recv_rtcp_sink_1</div><div><br></div><div><br></div><div>I've seen a lot of examples for doing my picture in picture matrix, involving videomixer, but I just can't find my way to do that while sending the result via rtp.</div><div><br></div><div>Would anyone have a suggestion ?</div><div><br></div><div>Best regards</div><div><br></div>-- <br><div class="gmail_signature">Mikael Kermorgant</div>
</div></div>