local rtsp server video show delay 7+ seconds
Dengke Du
dengke.du at windriver.com
Tue Oct 9 01:11:03 UTC 2018
On 2018年10月09日 07:31, Nicolas Dufresne wrote:
>
>
> Le lun. 8 oct. 2018 05 h 27, Dengke Du <dengke.du at windriver.com
> <mailto:dengke.du at windriver.com>> a écrit :
>
> 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 )"
>
>
> Default x264 settings are high latency. Try with setting
> tune=zerolatency. That will drop the latency to around two sec. 2s is
> the configured latency on the rtspsrc element. You can reconfigure
> that using the playbin callbacks, or child proxy mechanism.
Thanks!
1. After adding "tune=zerolatency" drop the latency 2-3s
2. Using the following instead of playbin drop the latency 4-5s:
gst-launch-1.0 rtspsrc location="rtsp://127.0.0.1:8554/test"
latency=0 ! rtph264depay ! decodebin ! videoconvert ! ximagesink
>
>
>
> Client side:
>
> gst-launch-1.0 -v playbin uri=rtsp://127.0.0.1:8554/test
> <http://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
> <mailto:gstreamer-devel at lists.freedesktop.org>
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20181009/fd1a740c/attachment.html>
More information about the gstreamer-devel
mailing list