[gst-devel] How do I get gst-inspect properties for v4l2src device other than /dev/video0?

Edward Hervey bilboed at gmail.com
Sat Apr 17 18:15:18 CEST 2010


On Fri, 2010-04-16 at 14:53 -0500, Kulecz, Walter (JSC-SK)[WYLE INTEG.
SCI. & ENG.] wrote:
> > Camera sources are live-sources. That means GST_BUFFER_TIMESTAMP(buf) is
> > a clock sample of the time when the frame was captured
> > (clocktime-basetime). Thats why it is a good idea to use operating
> > system mechanisms to run those capture threads at higher priority or
> > even under realtime scheduling (avoiding jitter in the timestamps).
> >
> > Stefan
> 
> Thanks for the reply.  This sounds like what I wanted to hear!
> My version one code runs on the RT kernal from Ubuntu Studio.
> 
> Any clues about how to read the buffer time stamps after I've pulled 
> them in with appsink would be greatly appreciated.   Its not clear to me 
> what the nested macro definition does:
> 
> #define GST_BUFFER_TIMESTAMP(buf) (GST_BUFFER_CAST(buf)->timestamp)
> 
> If buf is a pointer to a GstBuffer does this turn into the value of the buffer's timestamp,
> or a pointer to it?
> 
> I haven't stumbled on the definition of  the GST_BUFFER_CAST macro yet :(

  ==> Option 1 : Just try using GST_BUFFER_TIMESTAMP
  ==> Option 2 : Google for usages of GST_BUFFER_TIMESTAMP
  ==> Option 3 : grep for usage of GST_BUFFER_TIMESTAMP in existing code
  ==> Option 4 : Use common sense
  ==> Option 5 : Consider career change

   No, you don't need to reply, I'll say it before you : Our
documentation sucks [1]

> 
> --wally.
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
[1] For blind people





More information about the gstreamer-devel mailing list