We are assessing the use of AMT v3 in our implementation - and are very keen to try and make use of the AAF generation capability that it includes. However, the example only supports a single file per AAF - which is a bit pointless as the whole idea for AAF is to connect multiple files and present them as a sequence.
Is there any way to provide mutilple source OPAtoms into this AAF generator?
AAFCreationOptions ()
{
this -> addArgument (Common::makeArgument ("Source MAD", "Source media asset description xml path", m_sourceMADPath, ArgumentRequired));
this -> addArgument (Common::makeArgument ("Output AAF", "Output file where to write the resulting AAF.", m_outputFile, ArgumentRequired));
// Add optional parameters
MediaParameters mediaParameters;
JobSetupUtils::setMediaParameters (mediaParameters,
m_options.m_masterMobID,
m_options.m_physicalSourceMobID,
m_options.m_tapeName,
m_options.m_psmDescriptorType,
m_options.m_psmTimecode,
0);
Additionally - what restrictions are there on the supported formats - specifically is XDCAM / other long GOP formats supported?
JamesTV,
AMT is not intended to create AAFs with a higher complexity than master clips, specifically there is no support for creating composition MOBs (sequences). The purpose of the AAF generated by AMT is to describe media assets comprising multiple Avid Atom media files, typically video, audio and data tracks. Creating such AAFs can be a rather complex operation especially if Long GOP essence and growing files (EWC) are involved so we hope the functionality is not entirely pointless.
For the described use case (master clips only) all media formats supported by AMT are supported, this includes MPEG-2 and MPEG-4 Long GOP essence.
Andy,
Thanks for the reply - and did not mean to say the implementation was not entirely pointless, it would just be incredibly useful for Avid to offer support within the toolkit for AAF generation for multiple assets.
However - back to AMT3 and what is there today, I am strugging to generate a MAD XML directly from the tool for a OpAtom asset (e.g. 1 video MXF and multiple audio MXFs). Do we need to generate our our own MAD XML (effectively combining elements of the standalone MAD XMLs for each MXF into a singular one) - ready then for the code to generate an AAF from this XML?
Do you have an example MAD XML for an OpAtom structure you could share for reference?
Hi all, Andy,
I am trying to use the AAFCreator class to build an XAVC AAF file using the sample MAD from Demos\media_sample\XAVCIntra_300_4k5994_Unwrapped\MediaAssetDescription_CorrectMaxBitRate.xml
Unfortunately the CreateAAF method throws an exception:
c:\builds\mediaprocessor.release\c\vs2017_mpi\xplat\mediaprocessor\src\mediaprocessor\aaf\aafcreatorutilities.cpp, 53: Unexpected AVC-Intra picture essence encoding: 67.
MPI error code = 5009 (INVALID_FORMAT)
Is there anything special that needs to be configured to use this format?
Regards,
Raphael
PS: Additional info - The same exact code using AAFCreator works OK with an XDCAM-HD MAD that I created from an AAF using MetadataExtractor class... But does not work with the MAD provided with the SDK demo!
Raphael and James,
the AMT3 package includes MediaAssetDescription.xsd (in the Documentation folder) which fully documents all supported values and properties for a MAD. Usually the easiest way of creating a MAD is to have an Avid product such as Media Composer create the desired media and extract a MAD from there as demonstrated in the Getting Started video. This ensures media is specified exactly as created by the Avid product. Let us take a look at the sample MAD you are referring to and check whether it works as expected; I will post the result here.
I used the following command line from the demo to extract a MAD (note the paths have been truncated):
PS ...\MediaProcessor_4.4.22.138_win_vc12_x64\bin\Release> .\MediaProcessor.Demos.exe 3 AVID_MASTER_CLIP "...\Media\OP-Atom\Avid\XDCAM-HD_50_1080i_25ndf_16x1pcm_16bit_48kHz_TRANS_2s" C:\temp\XML\
==================================================================
MediaAsset description extraction Demo
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<mpmad:MediaAssetDescription xmlns:mpmad="urn:AVID:MediaProcessor:MediaAssetDescription" xmlns:mpct="urn:AVID:MediaProcessor:CommonTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:AVID:MediaProcessor:MediaAssetDescription MediaAssetDescription.xsd">
<mpmad:PreCharge>
<mpct:Numerator>0</mpct:Numerator>
<mpct:Denominator>1</mpct:Denominator>
</mpmad:PreCharge>
<mpmad:Duration>
<mpct:Numerator>2</mpct:Numerator>
</mpmad:Duration>
<mpmad:Tracks>
<mpmad:PictureTrack>
<mpmad:EditRate>
<mpct:Numerator>25</mpct:Numerator>
</mpmad:EditRate>
<mpmad:SampleRate>
</mpmad:SampleRate>
<mpmad:FramePreCharge>
</mpmad:FramePreCharge>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609f70000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:PictureEssenceEncoding>XDCAM-HD 50</mpmad:PictureEssenceEncoding>
<mpmad:VideoBitRate>50000000</mpmad:VideoBitRate>
<mpmad:CompressedData>
<mpmad:ColorModel>YUV</mpmad:ColorModel>
<mpmad:ComponentDepth>8</mpmad:ComponentDepth>
<mpmad:HorizontalSubsampling>2</mpmad:HorizontalSubsampling>
<mpmad:VerticalSubsampling>1</mpmad:VerticalSubsampling>
</mpmad:CompressedData>
<mpmad:CDCIData>
<mpmad:BlackRefLevel>16</mpmad:BlackRefLevel>
<mpmad:WhiteRefLevel>235</mpmad:WhiteRefLevel>
<mpmad:ColorRange>225</mpmad:ColorRange>
<mpmad:ColorSiting>4</mpmad:ColorSiting>
</mpmad:CDCIData>
<mpmad:FrameLayout>1</mpmad:FrameLayout>
<mpmad:SampledTopness>1</mpmad:SampledTopness>
<mpmad:StoredWidth>1920</mpmad:StoredWidth>
<mpmad:StoredHeight>544</mpmad:StoredHeight>
<mpmad:SampledWidth>1920</mpmad:SampledWidth>
<mpmad:SampledHeight>540</mpmad:SampledHeight>
<mpmad:SampledXOffset>0</mpmad:SampledXOffset>
<mpmad:SampledYOffset>0</mpmad:SampledYOffset>
<mpmad:DisplayWidth>1920</mpmad:DisplayWidth>
<mpmad:DisplayHeight>540</mpmad:DisplayHeight>
<mpmad:DisplayXOffset>0</mpmad:DisplayXOffset>
<mpmad:DisplayYOffset>0</mpmad:DisplayYOffset>
<mpmad:VideoLineMap>
<mpmad:Line>21</mpmad:Line>
<mpmad:Line>584</mpmad:Line>
</mpmad:VideoLineMap>
<mpmad:DisplayAspectRatio>
<mpct:Numerator>16</mpct:Numerator>
<mpct:Denominator>9</mpct:Denominator>
</mpmad:DisplayAspectRatio>
<mpmad:CodingEquations>06.0E.2B.34.04.01.01.01.04.01.01.01.02.02.00.00</mpmad:CodingEquations>
</mpmad:PictureTrack>
<mpmad:SoundTrack>
<mpct:Numerator>48000</mpct:Numerator>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609f80000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:SoundEssenceEncoding>Uncompressed</mpmad:SoundEssenceEncoding>
<mpmad:SoundEssenceWrapping>Wave ST 382</mpmad:SoundEssenceWrapping>
<mpmad:AudioSamplingRate>
</mpmad:AudioSamplingRate>
<mpmad:ChannelCount>1</mpmad:ChannelCount>
<mpmad:QuantizationBits>16</mpmad:QuantizationBits>
<mpmad:AudioRefLevel>-14</mpmad:AudioRefLevel>
<mpmad:WaveData>
<mpmad:BlockAlign>2</mpmad:BlockAlign>
<mpmad:AvgBytesPerSecond>96000</mpmad:AvgBytesPerSecond>
</mpmad:WaveData>
</mpmad:SoundTrack>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609f90000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609fa0000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609fb0000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609fc0000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609fd0000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609fe0000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b9609ff0000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a000000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a010000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a020000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a030000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a040000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a050000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a060000-060e2b347f7f-2a80</mpmad:FileMobID>
<mpmad:FileMobID>060a2b340101010101010f0013-000000-4ed60b960a070000-060e2b347f7f-2a80</mpmad:FileMobID>
</mpmad:Tracks>
<mpmad:StartTimecode>
<mpct:RoundedTimecodeBase>25</mpct:RoundedTimecodeBase>
<mpct:FrameCounter>90000</mpct:FrameCounter>
<mpct:DropFrame>false</mpct:DropFrame>
</mpmad:StartTimecode>
<mpmad:MaterialName>XDCAM_HD_50_1080i_25ndf_16pcm_16bit_TRANS_2s</mpmad:MaterialName>
</mpmad:MediaAssetDescription>
© Copyright 2011 Avid Technology, Inc. Terms of Use | Privacy Policy | Site Map | Find a Reseller