[gst-devel] Another weird difference [Re: v4l2src not working when pipeline is placed in a bin, but it works for videotestsrc]

Edgard Lima edgard.lima at indt.org.br
Mon Oct 15 10:37:49 CEST 2007


I have just created a bug

http://bugzilla.gnome.org/show_bug.cgi?id=486758

BR,
Edgard

ext Edgard Lima wrote:
> Hi,
> 
> indeed the problem seems to be with the "queue" element
> 
> if you don't use the queue element, there is no problem.
> 
> the point is, ...queue ! ximagesink
> 
> when you resize it seems the queue re-negotiate the caps with ximagesink
> and then try to re-negotiate with ffmpegcolorspace which tries to
> re-negotiate with v4l2src that can't work in a size like 645x483 for example
> 
> if you try like this "v4l2src ! queue ! ffmpegcolorspace ! ximagesink"
> or "v4l2src ! queue ! ffmpegcolorspace ! identity ! ximagesink"
> 
> neither ffmpegcolorspace or identity accept the new size and the
> ximagesink just put a black area and everything works fine
> 
> I think we should open a bug for queue, tim? wtay? ??
> 
> BR,
> Edgard
> 
> ext Jaap Haitsma wrote:
>> Hi,
>>
>> I just found another weird difference (happening in CVS and latest stable
>>
>> If I run the following pipeline:
>>
>> gst-launch v4l2src ! ffmpegcolorspace ! queue  ! ximagesink
>>
>> and try to change the window size gstreamer crashes:
>>
>> ERROR: from element /pipeline0/v4l2src0: Internal data flow error.
>> Additional debug info:
>> gstbasesrc.c(1816): gst_base_src_loop (): /pipeline0/v4l2src0:
>> streaming task paused, reason not-negotiated (-4)
>>
>> If I replace v4l2src with videotestsrc it works fine. Also if I change
>> the pipeline to
>>
>> gst-launch v4l2src ! ffmpegcolorspace ! queue  ! identity ! ximagesink
>>
>> it works fine.
>>
>> Is this a bug or something that can be explained with how gstreamer works
>>
>> Jaap
>>
>> PS I need the queue because I'm writing an application where I need to
>> tee the video stream. The above pipelines
>>
>>
>> On 10/9/07, Tim Müller <t.i.m at zen.co.uk> wrote:
>>> On Sun, 2007-10-07 at 18:32 +0200, Jaap Haitsma wrote:
>>>
>>>> I'm having trouble getting a v4l2src (a webcam) to work when it's part
>>>> of a bin and subsequently placed in a pipeline the attached code is a
>>>> minimal example, where it occurs. (put Makefile and gst-bin-test.c in
>>>> a directory and run make)
>>>> ...
>>>> Any ideas what I'm doing wrong here? Or is this a bug?
>>> I can reproduce the problem with core/base 0.10.14 and v4l2src from CVS.
>>> Works fine with core/base from CVS though, so I guess whatever it was
>>> it's been fixed now.
>>>
>>>  Cheers
>>>   -Tim
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc.
>>> Still grepping through log files to find problems?  Stop.
>>> Now Search log events and configuration files using AJAX and a browser.
>>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list