freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Sun Apr 05, 2020 4:00 am
Board index » MXF Categories » freeMXF.org Tools



Post new topic Reply to topic  [ 2 posts ] 
Author
Search for:
Message

Offline
Rookie

Joined: Tue Jan 24, 2006 11:31 pm
Posts: 1
Location: Russia, Krasnoyarsk

Post Posted: Tue Jan 24, 2006 11:35 pm 
Top  
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.

 Profile  

Offline
Insider

Joined: Thu Apr 15, 2004 10:39 am
Posts: 198
Location: Scotland

Post Posted: Thu Feb 02, 2006 11:09 am 
Top  
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");
  ...
}

 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Jump to:  


Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: All times are UTC