AMWA-TV / maj

Media Authoring with Java API - for MXF, AAF, IMF and Reg-XML
Apache License 2.0
17 stars 12 forks source link

Reading AVID aaf #16

Open drummer3333 opened 4 years ago

drummer3333 commented 4 years ago

I'm trying to generate AAF files to check in into AVID Interplay, I have a sample file and want to analyse the structure of that file. But when I execute the following code:

MediaEngine.initializeAAF();
AvidFactory.registerAvidExtensions();
Preface preface = AAFFactory.readPreface("test.aaf");

I only get the exception:

Exception in thread "main" java.io.IOException: Invalid header signature; read 0x01010502342B0E06, expected 0xE11AB1A1E011CFD0
    at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:125)
    at maj@1.0.0/tv.amwa.maj.io.aaf.AAFReader.read(AAFReader.java:100)
    at maj@1.0.0/tv.amwa.maj.io.aaf.AAFFactory.readPreface(AAFFactory.java:111)

Interplay can Import that file without errors. Any ideas whats wrong with that file? (I'm not sure if I can Upload the file, Its from a Customer).