v4l2src on rtsp-server

Chuck Crisler ccrisler at mutualink.net
Mon Jul 8 06:57:47 PDT 2013


Obviously there is a caps negotiation problem. Try adding omx_h264enc:4 to
your gst_debug setting to try to see what caps it is expecting. Just for
grins you might try changing your capture format, though I can't suggest
why the pipeline elements would behave differently in the rtsp rtpbin than
outside. But try it to see what happens.


On Wed, Jul 3, 2013 at 8:11 PM, jlancaster <jeff_lancaster at msn.com> wrote:

> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130708/cbf1a097/attachment-0001.html>


More information about the gstreamer-devel mailing list