TuSDKMediaMovieEditorTranscoder Class Reference

Inherits from TuSDKMediaMovieAssetExportSession : NSObject
Declared in TuSDKMediaMovieEditorTranscoder.h

Overview

视频转码器,一般用于视频编辑前的预处理操作。将高帧率高码率视频转为可用于视频编辑的视频。

– initWithInputAsset:videoDecodeOutputSettings:audioDecodeOutputSettings:exportOutputSettings:

初始化视频导出会话

- (instancetype _Nullable)initWithInputAsset:(AVAsset *_Nonnull)inputAsset videoDecodeOutputSettings:(TuSDKMediaDecoderOutputSettings *_Nullable)videoDecodeOutputSettings audioDecodeOutputSettings:(TuSDKMediaDecoderOutputSettings *_Nullable)audioDecodeOutputSettings exportOutputSettings:(nullable TuSDKMediaMovieEditorTranscoderSettings *)exportEncodeOutputSettings

Parameters

inputAsset

输入的视频资源

exportEncodeOutputSettings

输出设置

Return Value

TuSDKMediaMovieEditorTranscoder

Declared In

TuSDKMediaMovieEditorTranscoder.h

  delegate

转码器事件委托

@property (nonatomic, weak) id<TuSDKMediaEditorTranscoderDelegate> _Nullable delegate

Availability

v3.0

Declared In

TuSDKMediaMovieEditorTranscoder.h