I record audio separately from creating MPEG4 video in the iphone app. I am trying to combine them using AVAssetExportSession.
The audio session uses 1 channel, kAudioFormatAppleLossless and AVAudioQualityMax. The video is AVVideoCodecH264 using the kCVPixelFormatType_32ARGB pixel format. This silent video plays perfectly on my iphone through the photo library.
The exporter tells me that these are supported presets, I use AVAssetExportPresetHighestQuality:
(
AVAssetExportPresetAppleM4A,
AVAssetExportPresetLowQuality,
AVAssetExportPresetHighestQuality,
AVAssetExportPreset640x480,
AVAssetExportPresetMediumQuality
)
and this tells me that this is a supported file type:
(
"com.apple.quicktime-movie"
)
If I switch to AVAssetExportPresetPassthrough, I get file types
(
"com.apple.quicktime-movie",
"com.apple.m4a-audio",
"public.mpeg-4",
"com.apple.m4v-video",
"public.3gpp",
"org.3gpp.adaptive-multi-rate-audio",
"com.microsoft.waveform-audio",
"public.aiff-audio",
"public.aifc-audio"
)
I tried quicktime movie and mpeg 4 as outputFileType and still get the same results.
EDIT: May 10
- . ... !
. .mp4, exportSession setOutputFileType: AVFileTypeQuickTimeMovie, presetName: AVAssetExportPresetPassthrough