<div dir="ltr"><div>Hey, </div><div><br></div><div>To be honest I don't really know what else can you do to get a more stable framerate. </div><div><br></div><div>That being said, are you sure the issue is on the server side? Your pipeline is not pointing to localhost so I'm assuming there's some networking in between. </div><div><br></div><div>I would probably ensure that the camera is able to deliver those 30 frames first, having the encoder / decoder in the loop.</div><div><font face="monospace, monospace"><span style="font-size:12.8000001907349px">gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw, format=(string)I420, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)</span><span style="font-size:12.8000001907349px">1/1, framerate=(fraction)30/1, interlace-mode=(string)</span><span style="font-size:12.8000001907349px">progressive" ! vp8enc error-resilient=true,cpu-used=</span><span style="font-size:12.8000001907349px">5,deadline=1 ! <b>vp8dec ! videoconvert ! fpsdisplaysink sync=false</b></span></font><br><div><br></div><div>Then I would test a receiving pipeline on also on the server, so no networking is involved</div></div><div><font face="monospace, monospace"><span style="font-size:12.8000001907349px">gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw, format=(string)I420, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)</span><span style="font-size:12.8000001907349px">1/1, framerate=(fraction)30/1, interlace-mode=(string)</span><span style="font-size:12.8000001907349px">progressive" ! vp8enc error-resilient=true,cpu-used=</span><span style="font-size:12.8000001907349px">5,deadline=1 ! rtpvp8pay ! udpsink host=<b>localhost</b> port=5004</span><br></font></div><div><span style="font-size:12.8000001907349px"><font face="monospace, monospace"><br></font></span></div><div><span style="font-size:12.8000001907349px"><font face="monospace, monospace">gst-launch-1.0 udpsrc port=5004 caps=<proper caps here> ! rtpvp8depay ! vp8dec ! videoconvert ! fpsdisplaysink sync=false</font> </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Then I would move the receiving pipeline to the other pc on 192.168.6.127 and see if it could also render those stable 30 fps you want. If that is the case, then things get into the WebRTC and Gstreamer's RTP <-> WebRTC interface domains, and that my friend, I know nothing about :)</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Good luck</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><br></div><div><br></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-19 13:58 GMT+01:00 Who AmI <span dir="ltr"><<a href="mailto:get2jils@gmail.com" target="_blank">get2jils@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Sergio,<div><br></div><div>Thanks for the input. I have installed i m trying to stream the usb camera by using janus-gateway now [ WebRTC] , and </div><div>i used the below pipeline:</div><div><br></div><div>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw, format=(string)I420, width=(int)640, height=(int)480, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive" ! vp8enc error-resilient=true,cpu-used=5,deadline=1 ! rtpvp8pay ! udpsink host=192.168.6.127 port=5004<br></div><div><br></div><div><br></div><div>The pipeline works well, but it i don't see the smooth video streaming, i m testing in the chrome browser, </div><div><br></div><div>With the help of developers tool in the Chrome, I have enabled "Show FPS Meter", where the value is shown something between: 10 to 24, keeps on varying. </div><div><br></div><div><br></div><div>Kindly let know the possibilities that i can change at the server side </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 10:36 PM, Sérgio Agostinho <span dir="ltr"><<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@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"><div>You're probably chocking your USB bus. Try the lowest resolution your camera supports, just to be sure the bus can handle it. Then set deadline=1 and cpu-used=5 on vp8enc to reduce the encoding latency. </div><div><br></div><div>To work around the USB bandwidth limitation try to grab jpeg frames from your camera if it supports it. </div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2015-03-18 16:44 GMT+01:00 Who AmI <span dir="ltr"><<a href="mailto:get2jils@gmail.com" target="_blank">get2jils@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi ,<div><br></div><div>I am trying to stream usb camera into the browser, To achieve this, i have used the http-launch from <a href="https://github.com/sdroege/http-launch" target="_blank">https://github.com/sdroege/http-launch</a></div><div><br></div><div><br></div><div>The pipeline is:</div><div><br></div><div><b>1) #http-launch 8156 v4l2src ! vp8enc ! webmmux streammable=true name=stream<br></b></div><div><br></div><div>I see the output like this once i launch :</div><div><br></div><div><div>New connection <a href="http://127.0.0.1:40929" target="_blank">127.0.0.1:40929</a></div><div>New connection <a href="http://127.0.0.1:40930" target="_blank">127.0.0.1:40930</a></div><div>New connection <a href="http://127.0.0.1:40931" target="_blank">127.0.0.1:40931</a></div><div>Starting to stream to <a href="http://127.0.0.1:40929" target="_blank">127.0.0.1:40929</a></div><div>Starting pipeline</div><div>Starting to stream to <a href="http://127.0.0.1:40930" target="_blank">127.0.0.1:40930</a></div><div>Removing connection <a href="http://127.0.0.1:40929" target="_blank">127.0.0.1:40929</a></div><div>Timeout</div><div>Removing connection <a href="http://127.0.0.1:40931" target="_blank">127.0.0.1:40931</a></div><div>Removing connection <a href="http://127.0.0.1:40930" target="_blank">127.0.0.1:40930</a></div></div><div><br></div><div><br></div><div>And in the browser</div><div><b>2) <a href="http://127.0.0.1:8156/" target="_blank">http://127.0.0.1:8156/</a><br></b></div><div><br></div><div><b>Problem:</b></div><div><b><br></b></div><div><b>The streaming is very much slow almost like slide show only. What do i have to tweak so that we get minimal latency?</b></div><div><b><br></b></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></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><br></div>
<br>_______________________________________________<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><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">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><br></div>