[gst-devel] How do get the number of frames in a video file?
Felipe Contreras
felipe.contreras at gmail.com
Wed Feb 20 11:54:55 CET 2008
On Feb 19, 2008 11:48 PM, Nick Haddad <nhaddad at mathworks.com> wrote:
> I want to retrieve the duration of a video file in frames, but can't
> figure out the best way to do this.
>
> Calling...
>
> GstFormat fmt = GST_FORMAT_DEFAULT;
> gst_element_query_duration( _pipeline, &fm, &numFrames)
>
> ...doesn't work. I'm assuming because the pipeline doesn't know about
> the "default format" (GST_FORMAT_TIME works fine).
>
> Which element in my pipeline should I query for the number of video
> frames? Is this even possible. Currently I am building a pipeline
> using decodebin.
Do you need it at any point in time or would it be OK at the end of
the playback?
--
Felipe Contreras
More information about the gstreamer-devel
mailing list