v4l2src on rtsp-server

jlancaster jeff_lancaster at msn.com
Wed Jul 3 17:11:41 PDT 2013


I am using the gst-rtsp-server 10.8 to serve video from v4l2src.

I am using test-video.c from the rtsp-server example code and the following
pipeline to feed video to the server (rather than using videotestsrc):

v4l2src device=/dev/video0 always-copy=false queue-size=8 !
'video/x-raw-yuv-strided,format=(fourcc)NV12,width=640,height=480,framerate=(fraction)30/1'
! omxbufferalloc numBuffers=8 ! omx_h264enc ! rtph264pay name=pay0 pt=96


I can get the following pipeline to work outside of the server:
gst-launch -e -v v4l2src device=/dev/video0 always-copy=false queue-size=8 !
'video/x-raw-yuv-strided,format=(fourcc)NV12,width=640,height=480,framerate=(fraction)30/1'
! omxbufferalloc numBuffers=8 ! omx_h264enc ! rtph264pay name=pay0 pt=96 !
gstperf ! udpsink host=192.168.0.186 port=5000

As for the v4l2src/rtsp-server pipeline, the server starts up fine but when
I start pulling video from VLC I get the errors:

(test-video:3869): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion `gst_uri_is_valid (uri)' failed

Where I set gst_debug on *v4l2*:5,*rtp*:5,*rtsp*:5
0:00:10.153594850  3869    0x11c90 DEBUG                v4l2src
gstv4l2src.c:459:gst_v4l2src_negotiate:<v4l2src0> caps of peer: (nil)
0:00:10.153682900  3869    0x11c90 DEBUG                v4l2src
gstv4l2src.c:460:gst_v4l2src_negotiate:<v4l2src0> peercaps: (nil)

Any thoughts and ideas are welcome.




-----
Jeff Lancaster
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/v4l2src-on-rtsp-server-tp4660894.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list