[gst-devel] DV capture pipeline frozen

Andoni Morales ylatuya at gmail.com
Tue Oct 19 17:55:07 CEST 2010


2010/8/16 Gregory Petrosyan <gregory.petrosyan at gmail.com>:
> On Mon, Aug 16, 2010 at 11:35 PM, Gregory Petrosyan
> <gregory.petrosyan at gmail.com> wrote:
>> I am having some problems with GStreamer. Basically, I have a
>> pipeline, which used to work (with Ubuntu 9.04 GStreamer packages).
>> Here it is:
>>
>> ...
>>
>> Basically, it captures video from a DV camera, stores raw DV data,
>> encodes it to H.264 on the fly and shows video preview window.
>
> Here are the minimal pipelines, which reproduce the problem:
>
> This works:
> gst-launch-0.10 -e dv1394src ! queue ! dvdemux ! ffdec_dvvideo ! queue
> ! ffmpegcolorspace ! x264enc ! mpegtsmux ! queue ! filesink
> location=test.avi
>
> And this:
> gst-launch-0.10 -e dv1394src ! queue ! dvdemux ! ffdec_dvvideo ! tee
> name=t ! queue ! ffmpegcolorspace ! x264enc ! mpegtsmux ! queue !
> filesink location=test.avi t. ! queue ! ffmpegcolorspace ! xvimagesink
> sync=false

The x264 encoder needs some buffers before the pushing first one
downstream, which full the queue before the video sink.

Disable the limits in the queue (queue max-size-bytes=0
max-size-buffers=0 max-size-time=0) and that will fix you problem:
gst-launch-0.10 -e dv1394src ! queue ! dvdemux ! ffdec_dvvideo ! tee
name=t ! queue ! ffmpegcolorspace ! x264enc ! mpegtsmux ! queue !
filesink location=test.avi t. ! queue max-size-bytes=0
max-size-buffers=0 max-size-time=0 ! ffmpegcolorspace ! xvimagesink
sync=false

Next time you can debug it naming the queues and using GST_DEBUG=*queue*:5:
queue_dataflow gstqueue.c:930:gst_queue_chain:<sink_queue> received
buffer 0xb53029f0 of size 153600, time 0:00:01.033333333, duration
0:00:00.033333333
queue_dataflow gstqueue.c:963:gst_queue_chain:<sink_queue> queue is
full, waiting for free space
queue_dataflow gstqueue.c:968:gst_queue_chain:<sink_queue>
(sink_queue:sink) wait for DEL: 30 of 0-200 buffers, 4608000 of
0-10485760 bytes, 1000000000 of 0-1000000000 ns, 30 items

As you see the limit in time was reached in the queue "1000000000 of
0-1000000000 ns"

Andoni
>
> results in frozen preview window + zero-length test.avi file.
>
>                 Gregory
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es




More information about the gstreamer-devel mailing list