Wrong file duration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Wrong file duration

Mikl
Hello,

I have mkv file (recorded my gstreamer) of 125Mb, 60 sec long and about 1200 frames.
It is played well in VLC, but in my app i am doing this:

gst_element_query_duration(_pipeline, GST_FORMAT_TIME, (gint64*)&fileDuration);

and fileDuration is only 1 sec (1 100 000 000). It is 22 frames.

What i am doing wrong?
How i can see the rest of the file?

Mikl