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 [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Dengke Du
Le lun. 8 oct. 2018 05 h 27, Dengke Du <[hidden email]> a écrit : Hi all 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.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 2018年10月09日 07:31, Nicolas Dufresne
wrote:
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=<a class="moz-txt-link-rfc2396E" href="rtsp://127.0.0.1:8554/test">"rtsp://127.0.0.1:8554/test" latency=0 ! rtph264depay ! decodebin ! videoconvert ! ximagesink
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |