AudioFormatManager and Quicktime .mov files


#1

Hi there

I would very much appreciate some advice/help please. :slight_smile:

The CameraDevice on iOS and macOS writes .mov files with the startRecordingToFile method.

Subsequently I’d like to be able to load in this file. More specifically I’d like to access and process the audio within it (I don’t need to be able to write it back to the mov file though).

@Xenakios kindly tried to help me out. He believed that in the past AudioFormatManager may have allowed us to read mov files, which would be great. Unfortunately neither of us are able to get this to work at this time. Has this functionality changed or been broken somehow?

Many thanks in advance!

Best wishes

Jeff


#2

Worth noting with that is that the AudioFormatManager still lists .mov as an allowed file extension (getWildcardForAllFormats) on OS-X but the AudioFormatReader instance actually can’t be created. Interestingly, other kinds of video files like .mp4 can be opened and the audio can be read from the file.


#3

CoreAudioFormat generates the list of allowed file extension at runtime (see https://github.com/WeAreROLI/JUCE/blob/master/modules/juce_audio_formats/codecs/juce_CoreAudioFormat.cpp#L39), so there might be some discrepancy between what that function returns and what the CoreAudioFormat can actually do.


#4

Thanks for chiming in @McMartin. Out of interest were you ever able to access the audio from a Quicktime .mov that was just written via JUCE’s CameraDevice?