<p dir="ltr">And of course, am using slow Linux-based embedded hardware, which cannot encode stream to h284 in realtime </p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 17, 2015, 12:58 AM Dmitri Afanasjev <<a href="mailto:adimas@gmail.com">adimas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hello!<br>
I would suggest using some kind of h268 hardware as gstreamer stream source. For instance using Logitech c920 webcam in my project significantly reduced video lag. In cooperation with rtpjitterbuffer I have ~200-300 ms of lag</p>
<p dir="ltr">Regards, Dmitri</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 16, 2015, 6:27 PM Nicolas Dufresne <<a href="mailto:nicolas.dufresne@collabora.com" target="_blank">nicolas.dufresne@collabora.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mardi 16 juin 2015 à 17:58 +0530, Apurv Saraf a écrit :<br>
> hi all<br>
> We are developing a video chatting app using GStreamer. We have been<br>
> able to send and receive videos using the following pipelines(one<br>
> system is iOS simulator in Xcode and other is ubuntu).<br>
><br>
> On mac we are using :<br>
> pipeline = gst_parse_launch("videotestsrc ! video/x<br>
> -raw,width=640,height=480 ! x264enc ! h264parse ! rtph264pay !<br>
> udpsink host=192.168.100.3 port=5000 udpsrc port=9078<br>
> caps=\"application/x-rtp,payload=96,encoding-name=H264\" ! queue !<br>
> rtph264depay ! h264parse ! decodebin ! autovideosink", &error);<br>
> On ubuntu we are using:<br>
> gst-launch-1.0 udpsrc port=5000 caps=\"application/x-rtp, payload=96,<br>
> encoding-name=H264\" ! queue ! rtph264depay ! h264parse ! decodebin !<br>
> autovideosink videotestsrc ! video/x-raw,width=640,height=480 !<br>
> x264enc ! h264parse ! queue ! rtph264pay ! udpsink host=192.168.100.4<br>
> port=9078<br>
<br>
You should learn a bit about RTP streaming and study each element you<br>
are using, that would help. As a hint, in an RTP pipeline it is<br>
recommended that the receiver uses rtpjitterbuffer to compensate for<br>
network jitter, and give some time for downstream element to decode by<br>
adding latency (configurable.).<br>
<br>
Second big problem, you are using x264enc with default setup. The<br>
default is near what we would use for encoding DVDs. Considering using<br>
at least the zerolatency preset (tune=zerolatency). Other thing you may<br>
want to configure is that delay of key frame repetition, or otherwise<br>
look forward using rtpbin, which let you enable more RTP features.<br>
Again, learn about these elements, their configuration and how this<br>
should be configured for live usage.<br>
<br>
Nicolas<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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></blockquote></div>