I hope this response is still usefull.
AVID op-atoms files contain large amounts of dark AAF-like data, which makes it (in my experience) very hard to create such a file using the MXFlib.
There however does exist a project on sourceforge, INGEX, which contains an open source software library libMXF (to keep it original
).
http://ingex.sourceforge.net/libMXF/
Included with this library are a number of tools.
One of these is writeavidmxf, which should do exactly what you need.
If you want to use the mxflib toolset, one of the following might also work:
What you definitely should do is enable the use of a version 1 KLVFill item key, or else AVID will very probably produce an error
One of these may produce better results (I haven't tested these):
create an op-1a file to import it in Avid Media composer
Code:
mxfwrap -1 -i -k=512 -u inputfile.m2v outputfile.mxf
or if you want an op-atom
Code:
mxfwrap -1 -a -i -e -k=256 -u inputfile.m2v outputfile.mxf