GStreamerRTP video stream Duplex audio and lag issue

Dmitri Afanasjev adimas at gmail.com
Tue Jun 16 15:01:53 PDT 2015


And of course, am using slow Linux-based embedded hardware, which cannot
encode stream to h284 in realtime

On Wed, Jun 17, 2015, 12:58 AM Dmitri Afanasjev <adimas at gmail.com> wrote:

> Hello!
> 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
>
> Regards, Dmitri
>
> On Tue, Jun 16, 2015, 6:27 PM Nicolas Dufresne <
> nicolas.dufresne at collabora.com> wrote:
>
>> Le mardi 16 juin 2015 à 17:58 +0530, Apurv Saraf a écrit :
>> > hi all
>> > We are developing a video chatting app using GStreamer. We have been
>> > able to send and receive videos using the following pipelines(one
>> > system is iOS simulator in Xcode and other is ubuntu).
>> >
>> > On mac we are using :
>> > pipeline = gst_parse_launch("videotestsrc ! video/x
>> > -raw,width=640,height=480 ! x264enc ! h264parse ! rtph264pay !
>> > udpsink host=192.168.100.3 port=5000 udpsrc port=9078
>> > caps=\"application/x-rtp,payload=96,encoding-name=H264\" ! queue !
>> > rtph264depay ! h264parse ! decodebin ! autovideosink", &error);
>> > On ubuntu we are using:
>> > gst-launch-1.0 udpsrc port=5000 caps=\"application/x-rtp, payload=96,
>> > encoding-name=H264\" ! queue ! rtph264depay ! h264parse ! decodebin !
>> > autovideosink videotestsrc ! video/x-raw,width=640,height=480 !
>> > x264enc ! h264parse ! queue ! rtph264pay ! udpsink host=192.168.100.4
>> > port=9078
>>
>> You should learn a bit about RTP streaming and study each element you
>> are using, that would help. As a hint, in an RTP pipeline it is
>> recommended that the receiver uses rtpjitterbuffer to compensate for
>> network jitter, and give some time for downstream element to decode by
>> adding latency (configurable.).
>>
>> Second big problem, you are using x264enc with default setup. The
>> default is near what we would use for encoding DVDs. Considering using
>> at least the zerolatency preset (tune=zerolatency). Other thing you may
>> want to configure is that delay of key frame repetition, or otherwise
>> look forward using rtpbin, which let you enable more RTP features.
>> Again, learn about these elements, their configuration and how this
>> should be configured for live usage.
>>
>> Nicolas
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150616/17f60954/attachment.html>


More information about the gstreamer-devel mailing list