markreidvfx / pyaaf2

Read and write Advanced Authoring Format (AAF) files
http://pyaaf.readthedocs.io
MIT License
132 stars 35 forks source link

Exporting embedded essence AAFs are tricky to open in other software #103

Open skysphr opened 2 years ago

skysphr commented 2 years ago

I followed iluvcapra's excellent pro tools aaf example and managed to encode files with linked essence, however embedded essence seems more difficult. Upon importing, ProTools throws "Assertion in "....\FF\Audio\FF_AudioFile.cpp", line 1092", which is not terribly useful since the software is closed source. However it sees the file name and sometimes correctly positions the clip on the track. Cubase, on the other hand, either complains that it cannot find a composition or just crashes. Vegas and DigitalPerformer also crash but I suspect they generally cannot open embedded essence AAFs at all, since they also crash with ProTools AAFs.

Here's my code: https://pastebin.com/NRjf9n2c

I've been attempting various ways to embed the file (the different create_source functions are my attempts at making it look as close as possible to something PT itself would export), but so far none seems successful.

I understand this is not an issue with the library, but perhaps someone more experienced with the process could chime in and shed some light. Many thanks!

iluvcapra commented 2 years ago

It might be an issue with create_essence, different apps are expecting these descriptors to be structured different ways. Can you post 6L.wav or is it too big?

skysphr commented 2 years ago

It's just a 6 second mono sine wave I made with audacity. 6L.wav.zip Is there any info regarding how a descriptor should be shaped for different apps to accept? I keep trying to tweak various fields in the descriptors but nothing seems to do the trick so far.

TrevorAyl commented 10 months ago

Not sure this is much help to you now, but I stumbled across this whilst trying to research how to create AAFs with OP1a MXF media.

I've exported your file from DaVinci Resolve, Premiere Pro and Avid Media Composer as both linked and embedded AAFs.

Avid media was imported within the Avid project (rather than linked) so will be a different underlying file name anyway - before it even went through the AAF process.