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

Checking the existence and reading a SMPTE 12M track
http://freemxf.org/forum/viewtopic.php?f=2&t=237
Page 1 of 1

Author:  liechtjc [ Fri Mar 11, 2011 12:15 pm ]
Post subject:  Checking the existence and reading a SMPTE 12M track

Hi,

Can someone tell me if there is a tool to check the existence of a SMPTE 12M TC track I can see in the material package or the source package of a MXF and if I can read it's content. I'm just looking if there are timecode discontinuities in it.

I hope my question is not too trivial... I still fighting with MXF.
Thanks.

Author:  Matt Beard [ Fri Mar 11, 2011 1:06 pm ]
Post subject: 

Hi,

It may be worth starting out by looking at MXFDump. That will allow you to get a feel for the structure of the files.

If you are happy to program in C++, you should be able to write a simple program using MXFLib that does the following:
Code:
// Open the file as read-only
MXFFilePtr File = new MXFFile();
File->Open(Filename, true);

// Locate the master partition and read in the metadata
PartitionPtr Master = File->ReadMasterPartition();
Master->ReadMetadata();

// Parse the metadata into higher-level classes
MetadataPtr Meta = Master->ParseMetadata();

// Iterate through the packages
PackageList::iterator it = Meta->Packages.begin();
while(it != Meta->Packages.end())
{
    // Iterate through the tracks
    TrackList::iterator it2 = (*it)->Tracks.begin();
    while(it2 != (*it)->Tracks.end())
    {
        if((*it2)->IsTimecodeTrack())
        {
            if((*it)->IsA(MaterialPackage_UL))
            {
                // Do Material Timecode Tests Here
            }
            else
            {
                // Do Source Package Timecode Tests Here
            }
        }

        it2++;
    }

    it++;
}

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