I use mxf2raw utility to get audio samples from mxf wave content. Before MCA inplementig mxf2raw could extraxt audio data but currently the utility exit with exception:
I don't have the SMPTE spec. to hand, but assume that a channel label is required to have that property, hence the check. It's possible I missed a default channel id (=1) is defined for the case of a single channel track, so I'll double check that.
You'll have to modify and recompile the code to get around that check. You could try commenting out the calls to ProcessMCALabels in bmx/src/mxf_reader/MXFFileReader.cpp, lines 1080 and 1768.
Philip
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I checked and it turns out that the specs. don't mandate the channel id property be present in a channel label. The assumption I make is that a track with a single channel doesn't require the channel label to specifiy a channel id. They don't describe how to interpret a missing channel id if there are multiple channels in the track, and so I'll keep a check in there to disallow that scenario.
I've pushed a fix to the git repository that will support "missing" channel id properties in tracks containing a single audio channel.
Philip
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I use mxf2raw utility to get audio samples from mxf wave content. Before MCA inplementig mxf2raw could extraxt audio data but currently the utility exit with exception:
Maybe we can disable MCA label check from command line or you know another workaround?
I don't have the SMPTE spec. to hand, but assume that a channel label is required to have that property, hence the check. It's possible I missed a default channel id (=1) is defined for the case of a single channel track, so I'll double check that.
You'll have to modify and recompile the code to get around that check. You could try commenting out the calls to ProcessMCALabels in bmx/src/mxf_reader/MXFFileReader.cpp, lines 1080 and 1768.
Philip
I checked and it turns out that the specs. don't mandate the channel id property be present in a channel label. The assumption I make is that a track with a single channel doesn't require the channel label to specifiy a channel id. They don't describe how to interpret a missing channel id if there are multiple channels in the track, and so I'll keep a check in there to disallow that scenario.
I've pushed a fix to the git repository that will support "missing" channel id properties in tracks containing a single audio channel.
Philip
Great thank you.