forked from justinmakaila/iOS-FrameEncoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVideoEncoder.h
29 lines (22 loc) · 797 Bytes
/
VideoEncoder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// VideoEncoder.h
// Encoder Demo
//
// Created by Geraint Davies on 14/01/2013.
// Copyright (c) 2013 GDCL http://www.gdcl.co.uk/license.htm
//
#import <Foundation/Foundation.h>
#import "AVFoundation/AVAssetWriter.h"
#import "AVFoundation/AVAssetWriterInput.h"
#import "AVFoundation/AVMediaFormat.h"
#import "AVFoundation/AVVideoSettings.h"
@interface VideoEncoder : NSObject {
AVAssetWriter* _writer;
AVAssetWriterInput* _writerInput;
}
@property (strong, nonatomic) NSString* path;
+ (VideoEncoder*) encoderForPath:(NSString*) path Height:(int) height andWidth:(int) width;
- (void) initPath:(NSString*)path Height:(int) height andWidth:(int) width;
- (void) finishWithCompletionHandler:(void (^)(void))handler;
- (BOOL) encodeFrame:(CMSampleBufferRef) sampleBuffer;
@end