mkv files have wrong position in 1.0.5

Steffen.Roeber at hella.com Steffen.Roeber at hella.com
Mon Mar 25 06:33:07 PDT 2013


Hi,
if I play .mkv files in my app, then seeking to a position i not performed 
correctly.
I have an filesrc, decodbin and an appsink.
If I call 
    gst_element_seek(GST_ELEMENT(m_pipeline), 1.0, GST_FORMAT_DEFAULT, 
GST_SEEK_FLAG_FLUSH,
      GST_SEEK_TYPE_SET, qMin(i_stamp, m_duration), GST_SEEK_TYPE_NONE, 
GST_CLOCK_TIME_NONE);


    gst_element_query_position(GST_ELEMENT(m_pipeline), 
GST_FORMAT_DEFAULT, &stamp);

then stamp contains same value as i_stamp, the stamp I want to set. It 
does not matter if I use stamp or frame mode (GST_FORMAT_DEFAULT or 
GST_FORMAT_TIME).
behaviour is same in both modes.
The problem is that the next buffer I get in my appsink has a stamp which 
is about 2-3 frame behind the frame I set. The problem occurs only in some 
.mkv files. Some work, other format like .avi or .mov also work.


Hella Aglaia Mobile Vision GmbH
Steffen Roeber
Firmware & Tools
Treskowstr. 14, D-13089 Berlin
Amtsgericht Berlin-Charlottenburg HRB 66976 B
Geschäftsführer: Kay Talmi

Fon:  +49 30 200 04 29– 412
Fax:  +49 30 200 04 29– 109
Mail: Steffen.Roeber at hella.com
URL: www.aglaia-gmbh.de

URL: www.mobilevision.de

Dieses Dokument ist vertraulich zu behandeln. Die Weitergabe sowie 
Vervielfältigung, Verwertung und Mitteilung seines Inhalts ist nur mit 
unserer ausdrücklichen Genehmigung gestattet. Alle Rechte vorbehalten, 
insbesondere für den Fall der Schutzrechtsanmeldung.
This document has to be treated confidentially. Its contents are not to be 
passed on, duplicated, exploited or disclosed without our express 
permission. All rights reserved, especially the right to apply for 
protective rights.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130325/cfb50c75/attachment.html>


More information about the gstreamer-devel mailing list