econner / cinesnap

0 stars 0 forks source link

Add audio to the video #7

Open joinbreeze opened 11 years ago

joinbreeze commented 11 years ago

It's trivial to just add an audio AVAssetTrack, but AVMutableCompositionTrack::scaleTimeRange has no effect on the audio playback speed.

AVAudioPlayer can be used to play the audio at different speeds, but I don't think we can export the underlying data.

econner commented 11 years ago

Yea, they warned this would be a problem in the stack overflow post. There's a library they said you could use to slow the audio down as well and then re-compose the video and audio.