Hello Jerry,<br><br>If I understand correctly your webcam outputs H264 encoded video data ?<br>If yes then you need to make some changes in the v4l2src element, so that it can support h264 caps on the src pad.<br><br>So your pipeline should look like this <br>
/usr/local/bin/.libs/lt-test-launch ( v4l2src device=/dev/video0 always-copy=false ! video/x-h264 ! h264parse ! rtph264pay pt=26 name=pay0 alsasrc device=hw:1,0 ! audioresample ! audio/x-raw-int,channels=2,rate=48000 ! audioconvert ! vorbisenc ! rtpvorbispay pt=97 name=pay1 ) 16200 192.168.1.170<br>
<br>Best<br>Kapil<br><br><div class="gmail_quote">On Sun, Apr 3, 2011 at 5:10 PM, Jerry Geis <span dir="ltr"><<a href="mailto:geisj@pagestation.com">geisj@pagestation.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I am getting this error: ( EOI reached before SOS! see below)<br>
<br>
0:00:50.868899000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00;01;37;44m GST_PROPERTIES gstobject.c:542:gst_object_dispatch_properties_changed:<media-pipeline>^[[00m deep notification from src (caps)<br>
0:00:50.868997000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[36mDEBUG ^[[00m ^[[00;01;34m GST_CAPS gstpad.c:2703:gst_pad_set_caps:<pay0:sink>^[[00m caps 0x2aaaac007140 image/jpeg, framerate=(fraction)30/1, width=(int)1280, heig<br>
0:00:50.869151000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00;01;37;44m GST_PROPERTIES gstobject.c:542:gst_object_dispatch_properties_changed:<pay0>^[[00m deep notification from sink (caps)<br>
0:00:50.869212000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00;01;37;44m GST_PROPERTIES gstobject.c:542:gst_object_dispatch_properties_changed:<bin8>^[[00m deep notification from sink (caps)<br>
0:00:50.869275000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00;01;37;44m GST_PROPERTIES gstobject.c:542:gst_object_dispatch_properties_changed:<media-pipeline>^[[00m deep notification from sink (caps)<br>
0:00:50.869340000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00;01;35m GST_SCHEDULING gstpad.c:4224:gst_pad_chain_data_unchecked:<pay0:sink>^[[00m calling chainfunction &0x2b91fa01fbc0<br>
0:00:50.869400000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:633:gst_rtp_jpeg_pay_handle_buffer:<pay0>^[[00m got buffer size 1012, timestamp 0:00:00.414479667<br>
0:00:50.869451000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:642:gst_rtp_jpeg_pay_handle_buffer:<pay0>^[[00m checking from offset 0<br>
0:00:50.869511000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:593:gst_rtp_jpeg_pay_scan_marker:^[[00m found 00 marker at offset 927<br>
0:00:50.869558000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:642:gst_rtp_jpeg_pay_handle_buffer:<pay0>^[[00m checking from offset 928<br>
0:00:50.869598000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:587:gst_rtp_jpeg_pay_scan_marker:^[[00m found EOI marker<br>
0:00:50.869641000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[33;01mWARN ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:666:gst_rtp_jpeg_pay_handle_buffer:<pay0>^[[00m EOI reached before SOS!<br>
0:00:50.869690000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[33;01mWARN ^[[00m ^[[00m rtpjpegpay gstrtpjpegpay.c:851:gst_rtp_jpeg_pay_handle_buffer:<pay0>^[[00m error: Unsupported JPEG<br>
0:00:50.869739000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[36mDEBUG ^[[00m ^[[00;01;37;41m GST_MESSAGE gstelement.c:1834:gst_element_message_full:<pay0>^[[00m start<br>
0:00:50.869878000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[32;01mINFO ^[[00m ^[[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:1865:gst_element_message_full:<pay0>^[[00m posting message: Unsupported JPEG<br>
0:00:50.869964000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG ^[[00m ^[[00;01;37;41m GST_MESSAGE gstmessage.c:184:gst_message_init:^[[00m new message 0x2aaaac006630<br>
0:00:50.870008000 ^[[335m17734^[[00m<br>
<br>
<br>
My command for my H.264 encoded web cam is :<br>
/usr/local/bin/.libs/lt-test-launch ( v4l2src device=/dev/video0 always-copy=false ! image/jpeg,width=1280,height=720,framerate=(fraction)30/1 ! rtpjpegpay pt=26 name=pay0 alsasrc device=hw:1,0 ! audioresample ! audio/x-raw-int,channels=2,rate=48000 ! audioconvert ! vorbisenc ! rtpvorbispay pt=97 name=pay1 ) 16200 192.168.1.170<br>
<br>
When I use totem to play the camera its about 50/50 if I will get a picture or not. I would think that being a "stream" of data if it cannot decode the stream it would toss a bad frame or packet and wait for one it can decode.<br>
<br>
If I connect again I'll eventually get a picture again.<br>
how/what can I do to reliably connect to the H.264 encoded web cam?<br>
<br>
Thanks - so much.<br>
<br>
Jerry<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.mediamagictechnologies.com">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>twitter handle: @gst_kaps<br><a href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>