2024-03-24 15:14:58 +04:00

17 lines
394 B
Objective-C
Executable File

#import <Foundation/Foundation.h>
#import <CoreVideo/CoreVideo.h>
NS_ASSUME_NONNULL_BEGIN
@class FFMpegAVFrame;
@interface FFMpegVideoWriter : NSObject
- (bool)setupWithOutputPath:(NSString *)outputPath width:(int)width height:(int)height bitrate:(int64_t)bitrate framerate:(int32_t)framerate;
- (bool)encodeFrame:(FFMpegAVFrame *)frame;
- (bool)finalizeVideo;
@end
NS_ASSUME_NONNULL_END