RTSP server using v4l2src
robkrakora at att.net
Wed Apr 10 06:33:31 PDT 2013
Date: Wed, 10 Apr 2013 05:11:21 -0700 (PDT)
From: "yusuf.husainy" <yusuf.husainy at gmail.com>
To: gstreamer-devel at lists.freedesktop.org
Subject: RTSP server using v4l2src
Message-ID: <1365595880785-4659459.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
I am using the test-video.c for the server code but using v4l2src instead of
videotestsrc. The pipeline for the server is:
v4l2src device=/dev/video0 ! video/x-raw-yuv, width=800, height=600,
framerate=30/1 ! x264enc ! rtph264pay name=pay0 pt=96.
at the client, I am using VLC player to live stream.
when running the following command in terminal using above pipeline at
server, I got errors.
$ vlc rtsp://192.168.1.44:8554/test
VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)
[0x9bae908] main libvlc: Running vlc with the default interface. Use 'cvlc'
to use vlc without interface.
[0xb4e03f88] live555 demux error: Failed to connect with
[0xb4e00618] main input error: open of `rtsp://192.168.1.44:8554/test'
when I use videotestsrc as my pipeline raw video source instead of v4l2src,
I got no error and the streaming starts flawlessly. I can view the test
video pattern generated by videotestsrc on my client using VLC with the same
command as above.
I cant figure out why v4l2src is not working with RTSP server???
I even tried using ffenc_mpeg4 and rtpmp4vpay instead of x264enc and
rtph264enc, but the same error occurs, I cannot connect to the server using
v4l2src, but videotestsrc has no problem at all, I can connect and also view
the test pattern.
I appreciate any suggestion or solutions.
Take the RTSP server out of the equation and run your pipeline like this:
GST_DEBUG=5 GST_DEBUG_NO_COLOR=1 v4l2src device=/dev/video0 ! video/x-raw-yuv,
framerate=30/1 ! x264enc ! rtph264pay name=pay0 pt=96 &>capture.txt
You can e-mail me the capture.txt if you want, but you should be able to see
warnings and/or errors in the log that will lead you to the root cause of your
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel