Framerate=(fraction)1000/1 question.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Framerate=(fraction)1000/1 question.

wanting2learn
I am debugging a gStreamer application and the following code :
GstStructure *msgStructure =
       gst_structure_new( "video-stats",
                          "bufferCaps", G_TYPE_STRING, l_sCapsStr.c_str(),
                           NULL );

Gives me info like so:
Buffer caps: video/x-raw-yuv, width=(int)640, height=(int)480, framerate=(fraction)1000/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1;

It says the framerate is framerate=(fraction)1000/1,

What does this 1000/1 rate mean??  
Reply | Threaded
Open this post in threaded view
|

Re: Framerate=(fraction)1000/1 question.

Edward Hervey
Administrator
On Thu, 2009-11-26 at 05:59 -0800, LearnerMan wrote:

> I am debugging a gStreamer application and the following code :
> GstStructure *msgStructure =
>        gst_structure_new( "video-stats",
>                           "bufferCaps", G_TYPE_STRING, l_sCapsStr.c_str(),
>                            NULL );
>
> Gives me info like so:
> Buffer caps: video/x-raw-yuv, width=(int)640, height=(int)480,
> framerate=(fraction)1000/1, format=(fourcc)I420, interlaced=(boolean)false,
> pixel-aspect-ratio=(fraction)1/1;
>
> It says the framerate is framerate=(fraction)1000/1,
>
> What does this 1000/1 rate mean??  

  That the output framerate is 1000 frames per second (it's a fraction).

  Looks like there's a bug somewhere though (unless your file *REALLY*
has a 1000fps stream...)

   Edward




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel