Want to make a video file from image sequences and an audio file

I want to make a format video file (.avi or .mp4) from sequences of images and an audio file (in wave format) in Objective C. I tried different methods, but it does not work. Can someone give me a direction of work so that I can achieve my goal.

+5
source share
2 answers

You can take a look at the QTMovie class included in QTKit.framework. It offers a convenient way:

- (void)addImage:(NSImage *)image forDuration:(QTTime)duration withAttributes:(NSDictionary *)attributes

You can create a new QTMovie than use the above method to add different images to this movie. Recording to a video file is as simple as calling:

- (BOOL)writeToFile:(NSString *)fileName withAttributes:(NSDictionary *)attributes error:(NSError **)errorPtr

In any case, this will not allow you to burn the AVI file, but instead will create a MOV.

0

QTMovie Mac OS X. iOS . AVFoundation: AVAssetXxX (Writer, WriterInput ..) , . .

0

All Articles