Hi, Am 10.08.2010 14:52, schrieb august: >> Hi, >> >>> I just noticed that on the elephants-dream.webm file, that : >>> >>> open_video_format = bgav_get_video_format(file, 0); >>> >>> open_video_format->frame_duration is 0. >>> >>> is it at all possible to have a frame_duration of zero in gavl? >> >> Yes, in this case, framerate_mode is GAVL_FRAMERATE_VARIABLE. >> By default Matroska has no framerate and each frame has an individual >> timestamp. >> >> Burkhard >> > > okay. what does bgav_video_duration() return when framerate_mode is > GAVL_FRAMERATE_VARIABLE and sample accurate seeking is true?
It returns the duration of the whole video stream as obtained from the timestamps of the individual frames. One slightly critical thing is, that the duration of the last frame isn't known, so I set this equal to the duration of the second last frame. In the usual webm case, the resulting error for the total stream duration is between 0 and +/- 1 ms. Burkhard ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Gmerlin-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gmerlin-general
