Get v4l2src width and height before pipeline runs?

Edward Hervey bilboed at gmail.com
Thu Oct 27 02:22:25 PDT 2011


Hi,

  Caps negotiation is *always* done before any data passing happens.
  i.e. your element's pad setcaps function will be called before any
call to the chainfunction.

  If you haven't implemented a pad setcaps function ... there's your
problem :)

    Edward

On Wed, 2011-10-26 at 13:34 -0700, wally_bkg wrote:
> Up to now I've been setting caps with a specific width and height needed for
> our table driven image processing algorithm and using videoscale to force
> the pipeline to that size (640x480) at the appsink.
> 
> The algorithm's original author visited recently and his recollections and
> insights have allowed me to remove that restriction.  This has exposed the
> fact that I don't know how to get the width and height caps until the
> pipeline is running, at which point its effectively too late.
> 
> Is there a way to get the results of the caps negotiation before the
> pipeline is running?
> 
>  
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Get-v4l2src-width-and-height-before-pipeline-runs-tp3942212p3942212.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list