local rtsp server video show delay 7+ seconds

Michael MacIntosh mmacintosh at linear-systems.com
Mon Oct 8 21:11:59 UTC 2018


x264 enc by default introduces at least a few seconds of delay 
(depending on the framerate, I think it caches about 40 frames)

Try setting x264enc to use the zerolatency tuning preset.  It might also 
be a good idea to separate your jpegdec and x264enc with a queue, so 
they run in separate threads.


On 10/8/2018 2:18 AM, Dengke Du wrote:
> Hi all
>
> gst-launch-1.0 --version
>
>     gst-launch-1.0 version 1.14.2
>     GStreamer 1.14.2
>     Unknown package origin
>
> My device info: v4l2-ctl --list-formats
>
> ioctl: VIDIOC_ENUM_FMT
>     Index       : 0
>     Type        : Video Capture
>     Pixel Format: 'YUYV'
>     Name        : YUYV 4:2:2
>
>     Index       : 1
>     Type        : Video Capture
>     Pixel Format: 'MJPG' (compressed)
>     Name        : Motion-JPEG
>
> Server side:
>
>     In rtsp examples directory: ./test-launch "( v4l2src ! image/jpeg 
> ! jpegdec ! x264enc ! rtph264pay name=pay0 pt=96 )"
>
> Client side:
>
>     gst-launch-1.0 -v playbin uri=rtsp://127.0.0.1:8554/test
>
> The video show delay 7+ seconds, does somebody know why?
>
> Thanks!
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list