<div dir="ltr">UPDATE: I was able to get it to stream with almost no latency on the Pi's output (ximagesink). All I need to do now is to send it over the network to my Windows command. Could anyone suggest a way to do this? I tried simply replacing ximagesink with udpsink, but I am unable to open the stream on Windows (through both gstreamer and VLC). Thanks in advance for your help! <div><div><br></div><div>gst-launch-1.0 videomixer sink_0::ypos=200 sink_2::xpos=200  name=mixer ! videoconvert ! ximagesink v4l2src device=/dev/video0 ! video/x-h264,width=320,height=240 ! h264parse ! decodebin ! mixer. v4l2src device=/dev/video1 ! video/x-h264,width=320,height=240,framerate=30/1 ! h264parse ! decodebin ! mixer.</div></div><div><br></div><div>Surprisingly, I was watching htop while the streams were playing, and there barely seemed to be any load on the processors. I am using a Pi 2, and one processor was at 15% while the others were around 4%. Could it be that the Pi can indeed decode, mix, and encode the video streams? Or am I still missing something?</div><div><br></div><div>Shantanu</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 20, 2015 at 4:17 PM, Shantanu Gore <span dir="ltr"><<a href="mailto:gore.shantanu@gmail.com" target="_blank">gore.shantanu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi JM,<div><br></div><div>Thanks a lot for your response! I indeed did not realize what videomixer was actually doing, and it makes sense now why it wasn't working. My end goal is to display video from all the cameras in a single window (either through gstreamer or VLC). Would mpegts be able to do something like that?</div><div><br></div><div>I have actually experimented before with mpegtsmux and VLC, but I found that it is _extremely_ laggy (about 1 minute latency), and sometimes just stops working altogether. Here is the command I am using - I wasn't able to figure out how to completely remove videomixer from the equation: </div><div><br></div><div><div>gst-launch-1.0 videomixer sink_0::ypos=300 sink_2::xpos=300  name=mixer ! videoconvert ! x264enc tune=zerolatency ! mpegtsmux ! chopmydata max-size=9000 ! udpsink host=192.168.2.7 port=1234 v4l2src device=/dev/video0 ! video/x-h264,width=640,height=480,framerate=30/1 ! h264parse ! decodebin ! mixer. v4l2src device=/dev/video1 ! video/x-h264,width=800,height=600,framerate=30/1 ! h264parse ! decodebin ! mixer.</div></div><div><br></div><div>Shantanu</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Mar 20, 2015 at 3:50 PM, Jean-Michel Hautbois <span dir="ltr"><<a href="mailto:jhautbois@gmail.com" target="_blank">jhautbois@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi Shantanu,<br><div class="gmail_extra"><br><div class="gmail_quote"><span>2015-03-20 19:18 GMT+01:00 Shantanu Gore <span dir="ltr"><<a href="mailto:gore.shantanu@gmail.com" target="_blank">gore.shantanu@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>I would like to stream multiple H264 (from Logitech C920s) streams from a Raspberry Pi to a Windows computer using GStreamer. So far, I have been able to stream a single video stream, using the following commands:</div><div><br></div><div>Raspberry Pi Side:<div>gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! rtph264pay pt=127 config-interval=4 ! udpsink host=192.168.2.7</div><div><br></div><div>Windows Side:</div><div><div style="font-size:12.8px">C:\gstreamer\1.0\x86_64\bin>gst-launch-1.0 udpsrc ! application/x-rtp, payload=1</div><div style="font-size:12.8px">27 ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false</div></div><div><br></div><div>However, when I try to stream using a videomixer, it seems that the Raspberry Pi is processing the video somehow (perhaps due to my use of the videoconvert command), and thus I get extremely slow video and gstreamer complains that my computer (the Pi) isn't fast enough. </div></div></div></blockquote><div><br></div></span><div>If I understand correctly what you want to achieve, I think you are misunderstanding what videomixer is doing.<br></div><div>It will mix uncompressed streams. So, from the pipeline you showed, you will have v4l2src -> decoding -> videomixer -> encoding -> stream.<br></div><div>And the RPi is clearly not able to do that.<br><br></div><div>You want to have multiple streams in one so, mpegts is one of your answers.<br></div><div>And you will have one channel per h264 stream. I think it is doable with the RPi.<br><br></div><div>Regards,<br></div><div>JM<br></div><div><br></div></div></div></div>
<br></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Thanks,<div><br></div><div>Shantanu Gore</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Thanks,<div><br></div><div>Shantanu Gore</div></div>
</div>