Still stuck

Gary Thomas gary at mlbassoc.com
Thu Mar 7 15:58:16 PST 2013


On 2013-03-07 16:48, Gary Thomas wrote:
> On 2013-03-07 16:35, Tim-Philipp Müller wrote:
>> On Thu, 2013-03-07 at 16:16 -0700, Gary Thomas wrote:
>>
>>
>>> On to the next step.  Here's how I tried to encode the data:
>>> gst-launch -vvv shmsrc socket-path=/tmp/shm-preview.sock \
>>>     ! gdpdepay \
>>>     ! ffmpegcolorspace \
>>>     ! ffenc_mpeg4 \
>>>     ! mpeg4videoparse \
>>>     ! filesink location=/tmp/test.mp4
>>>
>>> Sadly, it fails:
>>>     Setting pipeline to PAUSED ...
>>>     Pipeline is PREROLLING ...
>>>     ERROR: from element /GstPipeline:pipeline0/GstGDPDepay:gdpdepay0: Could not decode stream.
>>>     Additional debug info:
>>>     gstgdpdepay.c(416): gst_gdp_depay_chain (): /GstPipeline:pipeline0/GstGDPDepay:gdpdepay0:
>>>     Received a buffer without first receiving caps
>>>     ERROR: pipeline doesn't want to preroll.
>>>     Setting pipeline to NULL ...
>>>     Freeing pipeline ...
>>>
>>> Obviously another problem with timing and/or timestamps, but I
>>> don't know what to adjust.
>>>
>>> If it's not obvious, I truly appreciate the help.
>>
>> What is the sending pipeline now, the one with shmsink? (too lazy to
>> search in the 191 earlier posts, sorry)
>
> No worries :-)  Here it is:
> gst-launch -e -v v4l2src device=/dev/video1 queue-size=16 \
>     ! video/x-raw-yuv,format='(fourcc)UYVY',width=720,height=480,framerate=30/1 \
>     ! tee name=v-src \
>       v-src. ! queue leaky=upstream ! videoscale ! "video/x-raw-yuv,width=320,height=240" ! gdppay ! shmsink socket-path=/tmp/shm-stream.sock \
>       v-src. ! queue leaky=upstream ! videoscale ! "video/x-raw-yuv,width=240,height=120" ! gdppay ! shmsink socket-path=/tmp/shm-preview.sock \
>       v-src. ! queue leaky=upstream ! shmsink socket-path=/tmp/shm-record.sock \
>

This brought up an interesting idea - what if there was something left
over in the shm buffer between "tries"?  So, I killed my source pipeline
and restarted it.  This seems to run correctly.

Is there some way I can tell gdpdepay to ignore the "buffer before caps"
situation (in hopes that caps will arrive soon)?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


More information about the gstreamer-devel mailing list