문제

I am using AVMutableComposition to combine two pieces of media (one video one graphic overlay). The video was captured using UIImagePickerController.

Video records fine and audio is there when previewing the recording.

Process with Composition, and export session. Video saves fine (with overlay), but no audio.

iOS7.

I'm not specifically doing anything with audio in the composition. I just assumed it would "come along" with the video file. Is that accurate, or do I need to create a dedicated audio track in the composition?

_mike

도움이 되었습니까?

해결책

After much researching, I found the solution to this in another Stackoverflow question (and answer).

iOS AVFoundation Export Session is missing audio.

Many thanks to that user.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top