MATLAB: Using vision.VideoWriter can I specify the audio bitdepth? It appears to allow only 16-bit audio.

audio bit depthComputer Vision Toolboxvision.videofilewriter

I write an AVI file (using vision.VideoFileWriter) with 24-bit audio and read it out (using vision.VideoFileReader) and find the audio has 16-bit resolution. The writer complains that "The AudioDataType property is not relevant in this configuration of the System object." AVI supports 24-bit audio. Is this a limitation of the vision implementation?

Best Answer

  • This is a limitation of the VideoFileWriter system object in that it does not support audio data into AVI files larger than 16-bit. Additionally, it does not appear to allow setting of the AudioDataType property when writing audio to AVI files.