RTSP Streaming with v4l2src

Tejas Ravichandran venkatakrishnan164 at gmail.com
Thu Nov 24 09:49:34 UTC 2016


I am using the test-launch application of gst-rtsp-server to stream out
from v4l2src . I tested out two pipelines one with x264 encoding and other
one without any encoding and obtained the following results.

x264 encoding pipeline :

server side : ./test-launch "v4l2src device=/dev/video2 ! videoscale !
"video/x-raw,width=720,height=576,framerate=30/1,format=I420" ! x264enc
speed-preset=ultrafast tune=zerolatency ! rtph264pay name=pay0 pt=96 -v"
client-side
gst-launch-1.0 rtspsrc latency=50 location=rtsp://127.0.0.1:8554 !
rtph264depay ! decodebin ! videoconvert ! ximagesink -v

The above pipeline runs absolutely fine with a good fps.

However when i remove the encoding as follows:
server side:
./test-launch "v4l2src device=/dev/video2 ! videoscale !
"video/x-raw,width=720,height=576,format=I420" ! rtpvrawpay name=pay0 pt=96
"
client-side :
gst-launch-1.0 rtspsrc latency=50 location=rtsp://127.0.0.1:8554/test
<http://10.0.0.2:8554/test> !  rtpvrawdepay ! videoconvert ! ximagesink -v

It throws the following error:

ERROR: from element
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/
GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.006836897
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...

Then i tried out with videotestsrc without encoding which worked absolutely
fine as well.

server side:
./test-launch "videotestsrc ! videoscale !
"video/x-raw,width=720,height=576,format=I420"
! rtpvrawpay name=pay0 pt=96 "

client-side :
gst-launch-1.0 rtspsrc latency=50 location=rtsp://127.0.0.1:8554/test
<http://10.0.0.2:8554/test> !  rtpvrawdepay ! videoconvert ! ximagesink -v

Any help would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161124/3fa1c3be/attachment.html>


More information about the gstreamer-devel mailing list