RCSaveToH265FileTool.h 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // ESCSaveToH265FileTool.h
  3. // ESCCameraH264Demo
  4. //
  5. // Created by xiang on 5/31/19.
  6. // Copyright © 2019 xiang. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface RCSaveToH265FileTool : NSObject
  11. @property (nonatomic, copy) NSString* filePath;
  12. /**
  13. yuv文件转h265压缩文件
  14. */
  15. //+ (void)yuvToH265EncoderWithVideoWidth:(NSInteger)width
  16. // height:(NSInteger)height
  17. // yuvFilePath:(NSString *)yuvFilePath
  18. // h265FilePath:(NSString *)h265FilePath
  19. // frameRate:(NSInteger)frameRate;
  20. /**
  21. yuv流转h265压缩文件
  22. */
  23. - (void)setupVideoWidth:(NSInteger)width
  24. height:(NSInteger)height
  25. frameRate:(NSInteger)frameRate
  26. h265FilePath:(NSString *)h265FilePath;
  27. /**
  28. 填充需要压缩的yuv流数据
  29. */
  30. - (void)encoderYUVData:(NSData *)yuvData;
  31. - (void)stopRecord;
  32. @end
  33. NS_ASSUME_NONNULL_END