vendredi 10 avril 2015

WritePartition correct usage in mxflib(c++ library)


Vote count:

0






I am using mxflib(http://ift.tt/1DPYpU6) to create a MXF file from another MXF file. I am reading the contents of a MXF file and I'm trying to write it in another file. Reading the documentation provided I cannot get what I am doing wrong. My piece of code:



MXFFilePtr TestFile = new MXFFile;

MXFFilePtr outFile = new MXFFile;
outFile->OpenNew("Test.mxf");

if (! TestFile->Open("inputfile.mxf", true))
{
perror(argv[num_options+1]);
return 1;
}
.....
TestFile->GetRIP();
while(it != TestFile->FileRIP.end())
{
.....
PartitionPtr ThisPartition = TestFile->ReadPartition();
.....
outFile->WritePartition(ThisPartition);
}
outFile->Close();
TestFile->Close();


The reading of the input file is done ok, I'm doing all sorts of things with those partitions and it's working fine. The output file is not ok it doesn't contain readable stuff.

Do you have any idea what I am doing wrong?

Thanks



asked 1 min ago

Lucian

146






WritePartition correct usage in mxflib(c++ library)

Aucun commentaire:

Enregistrer un commentaire