freeMXF.org
http://freemxf.org/forum/

Metadata parsing
http://freemxf.org/forum/viewtopic.php?f=2&t=40
Page 1 of 1

Author:  KaSA [ Tue Jan 24, 2006 11:35 pm ]
Post subject:  Metadata parsing

Hello, All!
Please, help!!!
Which is the shortest and fastest way to retrieve StartTimecode and Duration of the track from MXF file?

Thanks a lot.

Author:  Matt Beard [ Thu Feb 02, 2006 11:09 am ]
Post subject: 

Hi, sorry it has taken me so long to reply!

This question has pointed out a small hole in the "Track" API - I wonder why I didn't spot it before. I will add new functions as soon as practical.

What you need to to for the moment is to locate the sequence and read the info from there - try this code:

Code:
MDObjectPtr Sequence = Track->GetChild("Sequence");
if(Sequence) Sequence = Sequence->GetLink();
if(Sequence)
{
  Length Duration = Sequence->GetInt64("Duration");
  Position StartTimecode = Sequence->GetInt64("StartTimecode");
  ...
}

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/