Getting error unsupported JPEG and stoppping

Kapil Agrawal kapil.agl at gmail.com
Mon Apr 4 05:19:27 PDT 2011


Hello Jerry,

If I understand correctly your webcam outputs H264 encoded video data ?
If yes then you need to make some changes in the v4l2src element, so that it
can support h264 caps on the src pad.

So your pipeline should look like this
/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

Best
Kapil

On Sun, Apr 3, 2011 at 5:10 PM, Jerry Geis <geisj at pagestation.com> wrote:

> I am getting this error: ( EOI reached before SOS! see below)
>
> 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)
> 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
> 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)
> 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)
> 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)
> 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
> 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
> 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
> 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
> 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
> 0:00:50.869598000 ^[[335m17734^[[00m 0x2aaaac00f530 ^[[37mLOG    ^[[00m
> ^[[00m          rtpjpegpay
> gstrtpjpegpay.c:587:gst_rtp_jpeg_pay_scan_marker:^[[00m found EOI marker
> 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!
> 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
> 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
> 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
> 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
> 0:00:50.870008000 ^[[335m17734^[[00m
>
>
> My command for my H.264 encoded web cam is :
> /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
>
> 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.
>
> If I connect again I'll eventually get a picture again.
> how/what can I do to reliably connect to the H.264 encoded web cam?
>
> Thanks - so much.
>
> Jerry
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110404/fbe952ce/attachment.html>


More information about the gstreamer-devel mailing list