0

I have a doubt.I have two videos and want to cut the 0 to 10 minutes video from first video,10 to 20 minutes video from second video.After that I want to merge the two splitted videos into one video.So Kindly help me how to do this for iOS?

Any help is greatful.

Tendulkar
  • 5,550
  • 2
  • 27
  • 53

1 Answers1

3

Have a look at AVFoundation reference here for general video loading with single frame access classes.

Especially at the "Creating new assets" chapter, which deals with merging two pieces of video together.

There's also a video cropping class you could use to produce the segments you want to merge later with AVMutableComposition: UIVideoEditorController

Look for the AVEditDemo sample from WWDC 2010 for some code examples.

  • anybody knows where I can download the AVEditDemo, I have tried to find that sample code for hours – vodkhang Sep 06 '11 at 14:45
  • 1
    The AVEditDemo sample is in the WWDC 2010 sample code pack - you should find it somewhere on Apple's iOS developer page. Or, if you only want that sample, download it from here: http://ge.tt/86NpOV7?c – Adrian Demetrescu Sep 06 '11 at 21:38