TuSDKMediaAssetExtractor Class Reference

Inherits from NSObject
Conforms to TuSDKMediaExtractor
Declared in TuSDKMediaAssetExtractor.h

Overview

多媒体数据分离器

– initWithAsset:outputTrackMediaType:outputSettings:

初始化数据分离器

- (instancetype _Nullable)initWithAsset:(AVAsset *_Nonnull)asset outputTrackMediaType:(AVMediaType _Nonnull)mediaType outputSettings:(TuSDKMediaAssetExtractorSettings *_Nullable)outputSettings

Parameters

asset

媒体资产

outputSettings

输出设置 An NSDictionary of output settings to be used for sample output. See AVAudioSettings.h for available output settings for audio tracks or AVVideoSettings.h for available output settings for video tracks and also for more information about how to construct an output settings dictionary.

Return Value

TuSDKMediaAssetExtractor

Declared In

TuSDKMediaAssetExtractor.h

  timeRange

解码器当前状态

@property (nonatomic) CMTimeRange timeRange

Availability

v3.0

Declared In

TuSDKMediaAssetExtractor.h

  outputPresentationTimeOffset

设置输出的时间偏移量。默认为 :kCMTimeInvalid

@property (nonatomic) CMTime outputPresentationTimeOffset

Availability

v3.0

Declared In

TuSDKMediaAssetExtractor.h

  extractorFrameDuration

The value of the extractorFrameDuration property is set to a value short enough to accommodate the greatest nominal frame rate value among the asset’s video tracks, as indicated by the nominalFrameRate property of each track. If all of the asset tracks have a nominal frame rate of 0, a frame rate of 30 frames per second is used, with the frame duration set accordingly. extractorFrameDuration属性的值被设置为一个足够短的值,以容纳资产的视频轨道中最大的名义帧速率值,这是由每条轨道的名义上的属性所指示的。如果所有资产跟踪的名义帧速率为0,则使用每秒30帧的帧速率,并相应地设置帧持续时间。

@property (nonatomic) CMTime extractorFrameDuration

Availability

v3.0

Declared In

TuSDKMediaAssetExtractor.h

  pitch

外部分离器补丁

@property (nonatomic) TuSDKMediaAssetExtractorPitch *pitch

Availability

v3.4.2

Declared In

TuSDKMediaAssetExtractor.h