forked from chrisballinger/FFmpeg-iOS-Encoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoEncoder.h
More file actions
executable file
·31 lines (24 loc) · 798 Bytes
/
Copy pathVideoEncoder.h
File metadata and controls
executable file
·31 lines (24 loc) · 798 Bytes
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
30
31
//
// 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;
NSString* _path;
}
@property 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