maj
maj copied to clipboard
Reading AVID aaf
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 [email protected]/tv.amwa.maj.io.aaf.AAFReader.read(AAFReader.java:100)
at [email protected]/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).