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

Problem with reading metadata
http://www.freemxf.org/forum/viewtopic.php?f=3&t=229
Page 1 of 1

Author:  ajulin [ Mon Oct 04, 2010 9:37 am ]
Post subject:  Problem with reading metadata

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

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