6

I created a demo app like tom cat with the help of this. In this link, we can set pitch value of an audio using CDSoundEngine. However, I want to set pitch value of a video. How can I do that?

5
  • how do you play the video?
    – CodeSmile
    Mar 16, 2013 at 11:46
  • I play video from iphone photo library.
    – yen
    Mar 16, 2013 at 11:49
  • No, I mean with which video player? MPMoviePlayerController? If yes, check the docs: developer.apple.com/library/ios/#documentation/mediaplayer/… I don't see any way to pitch audio, and it's very uncommon to have such a feature for videos as you would normally have to re-encode the entire video. Unless you can hook between the player and audio output, like plugins of desktop video players can do. I doubt something like that is possible on iOS though. Not with MPMoviePlayer anyway.
    – CodeSmile
    Mar 16, 2013 at 11:55
  • I merged images array and audio and create new video and I want to set pitch value of newly created video. when we play new video ,audio should be in funny voice like tomcat. I saved this video in photo library.
    – yen
    Mar 16, 2013 at 12:15
  • Well then I would look into modifying the audio before you merge it with the video.
    – CodeSmile
    Mar 16, 2013 at 15:58

1 Answer 1

0

There is a scaleTimeRange method in the AVMutableCompositionTrack that can be used for setting the speed of video playback.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.