<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Message: 8<br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">Date: Wed, 10 Apr 2013 05:11:21 -0700 (PDT)<br>From: "yusuf.husainy" <<a ymailto="mailto:yusuf.husainy@gmail.com" href="mailto:yusuf.husainy@gmail.com">yusuf.husainy@gmail.com</a>><br>To: <a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>Subject: RTSP server using v4l2src<br>Message-ID: <<a ymailto="mailto:1365595880785-4659459.post@n4.nabble.com" href="mailto:1365595880785-4659459.post@n4.nabble.com">1365595880785-4659459.post@n4.nabble.com</a>><br>Content-Type: text/plain; charset=us-ascii<br><br>Hello everyone,<br><br>I am using the
 test-video.c for the server code but using v4l2src instead of<br>videotestsrc. The pipeline for the server is:<br><br>v4l2src device=/dev/video0 ! video/x-raw-yuv, width=800, height=600,<br>framerate=30/1 ! x264enc ! rtph264pay name=pay0 pt=96.<br><br>at the client, I am using VLC player to live stream.<br><br>when running the following command in terminal using above pipeline at<br>server, I got errors.<br><br>$ vlc rtsp://192.168.1.44:8554/test<br>VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d)<br>[0x9bae908] main libvlc: Running vlc with the default interface. Use 'cvlc'<br>to use vlc without interface.<br>[0xb4e03f88] live555 demux error: Failed to connect with<br>rtsp://192.168.1.44:8554/test<br>[0xb4e00618] main input error: open of `rtsp://192.168.1.44:8554/test'<br>failed<br><br><br><br>However,<br>when I use videotestsrc as my pipeline raw video source instead of v4l2src,<br>I got no error and the streaming starts flawlessly. I can
 view the test<br>video pattern generated by videotestsrc on my client using VLC with the same<br>command as above.<br><br>I cant figure out why v4l2src is not working with RTSP server???<br><br>I even tried using ffenc_mpeg4 and rtpmp4vpay instead of x264enc and<br>rtph264enc, but the same error occurs, I cannot connect to the server using<br>v4l2src, but videotestsrc has no problem at all, I can connect and also view<br>the test pattern.<br><br>I appreciate any suggestion or solutions.<br><br>Regards,<br>Yusuf Husainy.<br><br>Hi Yusuf,<br><br>Take the RTSP server out of the equation and run your pipeline like this:<br><br>GST_DEBUG=5 <span class="st">GST_DEBUG_NO_COLOR=1 </span>v4l2src device=/dev/video0 ! video/x-raw-yuv, width=800, height=600,<br>framerate=30/1 ! x264enc ! rtph264pay name=pay0 pt=96 &>capture.txt<code><br><br></code>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 problem.<br></div></div>



</div></body></html>