MeiCam SDK For iOS  3.10.0
Classes | Enumerations
NvsMediaFileConvertor.h File Reference
#import <UIKit/UIImage.h>
#import "NvsCommonDef.h"

Go to the source code of this file.

Classes

protocol  <NvsMediaFileConvertorDelegate>
 
class  NvsMediaFileConvertor
 

Macros

Configuration of media convertor

#define NVS_MEDIA_CONVERTOR_CUSTOM_HEIGHT   @"custom-video-height"
 Set custom video height,width will be automatic scaled to keep aspect ratio. type:int. More...
 
#define NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_SAMPLE_RATE   @"custom-audio-sample-rate"
 Set custom audio sample rate,type:int. More...
 
#define NVS_MEDIA_CONVERTOR_NO_VIDEO   @"convertor-no-video"
 only convert audio stream,type:bool More...
 
#define NVS_MEDIA_CONVERTOR_NO_AUDIO   @"convertor-no-audio"
 only convert video stream,type:bool More...
 
#define NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_CHANNEL   @"custom-audio-channel"
 Set custom audio channels,type:int. More...
 
#define NVS_MEDIA_CONVERTOR_REVERSE_AUDIO_STREAM   @"convertor-reverse-audio"
 Reverse audio stream,type:bool. More...
 
#define NVS_MEDIA_CONVERTOR_MAX_CACHE_SIZE_IN_MEMORY   @"max_cache_size_in_memory"
 max cache video frame buffer count in host memory,type:int More...
 
#define NVS_MEDIA_CONVERTOR_CUSTOM_FRAME_RATE   @"custom-video-frame-rate"
 Set custom video frame rate, type: int. More...
 
#define NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_PCM_FILE   @"custom-audio-pcm-file"
 Set output audio pcm stream,type:bool. More...
 
#define NVS_MEDIA_CONVERTOR_COMPILE_GOP_SIZE   @"gopsize"
 GOP SIZE for convert video. type:int. More...
 
#define NVS_MEDIA_CONVERTOR_COMPILE_BITRATE   @"bitrate"
 Bitrate for convert video in bps. type:int. More...
 
#define NVS_MEDIA_CONVERTOR_COMPILE_AUDIO_BITRATE   @"audio bitrate"
 Bitrate for convert audio in bps. type:int. More...
 
#define NVS_EDIA_CONVERTOR_VIDEO_ENCODEC_NAME   @"video encoder name"
 Assigned video encoding format, hevc(h.256) is supported, default is h.264. More...
 
#define NVS_EDIA_CONVERTOR_AUDIO_ENCODEC_NAME   @"audio encoder name"
 

Enumerations

enum  NvsMediaConvertorErrorType {
  keNvsMediaConvertorErrorType_NoError = 0, keNvsMediaConvertorErrorType_Cancled, keNvsMediaConvertorErrorType_HardwareVideoEncoderSetupError, keNvsMediaConvertorErrorType_HardwareVideoEncodingError,
  keNvsMediaConvertorErrorType_HardwareVideoDecoderSetupError, keNvsMediaConvertorErrorType_HardwareVideoDecodingError, keNvsMediaConvertorErrorType_ProcessVideoError, keNvsMediaConvertorErrorType_ProcessAudioError,
  keNvsMediaConvertorErrorType_ReadFileEof, keNvsMediaConvertorErrorType_UnkownError = 65535
}
 Type of convertor error. More...
 

Macro Definition Documentation

◆ NVS_EDIA_CONVERTOR_AUDIO_ENCODEC_NAME

#define NVS_EDIA_CONVERTOR_AUDIO_ENCODEC_NAME   @"audio encoder name"

Assigned audio encoding format, "amr-wb" and "mp3" are supported, default is "aac"

◆ NVS_EDIA_CONVERTOR_VIDEO_ENCODEC_NAME

#define NVS_EDIA_CONVERTOR_VIDEO_ENCODEC_NAME   @"video encoder name"

Assigned video encoding format, hevc(h.256) is supported, default is h.264.

◆ NVS_MEDIA_CONVERTOR_COMPILE_AUDIO_BITRATE

#define NVS_MEDIA_CONVERTOR_COMPILE_AUDIO_BITRATE   @"audio bitrate"

Bitrate for convert audio in bps. type:int.

◆ NVS_MEDIA_CONVERTOR_COMPILE_BITRATE

#define NVS_MEDIA_CONVERTOR_COMPILE_BITRATE   @"bitrate"

Bitrate for convert video in bps. type:int.

◆ NVS_MEDIA_CONVERTOR_COMPILE_GOP_SIZE

#define NVS_MEDIA_CONVERTOR_COMPILE_GOP_SIZE   @"gopsize"

GOP SIZE for convert video. type:int.

◆ NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_CHANNEL

#define NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_CHANNEL   @"custom-audio-channel"

Set custom audio channels,type:int.

◆ NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_PCM_FILE

#define NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_PCM_FILE   @"custom-audio-pcm-file"

Set output audio pcm stream,type:bool.

◆ NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_SAMPLE_RATE

#define NVS_MEDIA_CONVERTOR_CUSTOM_AUDIO_SAMPLE_RATE   @"custom-audio-sample-rate"

Set custom audio sample rate,type:int.

◆ NVS_MEDIA_CONVERTOR_CUSTOM_FRAME_RATE

#define NVS_MEDIA_CONVERTOR_CUSTOM_FRAME_RATE   @"custom-video-frame-rate"

Set custom video frame rate, type: int.

◆ NVS_MEDIA_CONVERTOR_CUSTOM_HEIGHT

#define NVS_MEDIA_CONVERTOR_CUSTOM_HEIGHT   @"custom-video-height"

Set custom video height,width will be automatic scaled to keep aspect ratio. type:int.

◆ NVS_MEDIA_CONVERTOR_MAX_CACHE_SIZE_IN_MEMORY

#define NVS_MEDIA_CONVERTOR_MAX_CACHE_SIZE_IN_MEMORY   @"max_cache_size_in_memory"

max cache video frame buffer count in host memory,type:int

◆ NVS_MEDIA_CONVERTOR_NO_AUDIO

#define NVS_MEDIA_CONVERTOR_NO_AUDIO   @"convertor-no-audio"

only convert video stream,type:bool

◆ NVS_MEDIA_CONVERTOR_NO_VIDEO

#define NVS_MEDIA_CONVERTOR_NO_VIDEO   @"convertor-no-video"

only convert audio stream,type:bool

◆ NVS_MEDIA_CONVERTOR_REVERSE_AUDIO_STREAM

#define NVS_MEDIA_CONVERTOR_REVERSE_AUDIO_STREAM   @"convertor-reverse-audio"

Reverse audio stream,type:bool.

Enumeration Type Documentation

◆ NvsMediaConvertorErrorType

Type of convertor error.

Enumerator
keNvsMediaConvertorErrorType_NoError 

no error

keNvsMediaConvertorErrorType_Cancled 

task is canceled

keNvsMediaConvertorErrorType_HardwareVideoEncoderSetupError 

video encoder setup error

keNvsMediaConvertorErrorType_HardwareVideoEncodingError 

video encoder error

keNvsMediaConvertorErrorType_HardwareVideoDecoderSetupError 

video decoder setup error

keNvsMediaConvertorErrorType_HardwareVideoDecodingError 

video decode error

keNvsMediaConvertorErrorType_ProcessVideoError 
keNvsMediaConvertorErrorType_ProcessAudioError 
keNvsMediaConvertorErrorType_ReadFileEof 
keNvsMediaConvertorErrorType_UnkownError 

task has unknown error