freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Thu Nov 21, 2019 10:04 pm
Board index » MXF Categories » General MXF



Post new topic Reply to topic  [ 1 post ] 
Author
Search for:
Message

Offline
Rookie

Joined: Mon Oct 04, 2010 9:15 am
Posts: 1

Post Posted: Mon Oct 04, 2010 9:37 am 
Top  
Hi,

I'm new here. I tried to read metadata in an mxf file. My application works on first mxf provided in sample on the website but doesn't work with mine (Jpeg2000, YCrCb, 10 bits).

I join my code :

Code:
#include <iostream>
#include "mxflib/mxflib.h"

using namespace std;
using namespace mxflib;

int main()
{

    MXFFilePtr TestFile = new MXFFile;

    //=>work
    int testDic = LoadDictionary("dict.xml");
    if (testDic == -1)
    {
        cout<<"fail while opening dictionnary"<<endl;
    }


    //=>work
    string path = "D:\\HD_jap_10m_1s.mxf";
    bool testOpen = TestFile->Open(path,false);
    if (!testOpen)
    {
        cout<<"fail while loading file"<<endl;
    }


    //=>work
    TestFile->SeekEnd();
    cout<<"size = "<<TestFile->Tell()<<endl;
    TestFile->Seek(0);

    //=>work
    PartitionPtr partitionHeader = TestFile->ReadMasterPartition();
    if (!partitionHeader)
    {
        cout<<"fail"<<endl;
    }
    //reading metadata =>failed
    partitionHeader->ReadMetadata();


    MetadataPtr HmetadataPtr = partitionHeader->ParseMetadata();

    if (!HmetadataPtr)
    {
        cout<<"fail HmetadataPtr"<<endl;
    }
    TestFile->Close();
    system("PAUSE");
    return 0;
}
}


I get the following mistake :
Quote:
ERROR : Failed to read complete AES3PCMDescriptor/UserDataMode Value at 0x000017ef in file "D\:...." - specified length=10, read =0
and many others like that.

And after these errors there is the error message :

0xC0000005:Access violation reading location error :
with a memcpy.

I'll be really grateful for explain me it.


Alexis

 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

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