MeiCam SDK For Android  3.14.0
Classes | Static Public Attributes | List of all members
com.meicam.sdk.NvsPassthroughConvertor Class Reference

NvsPassthroughConvertor. More...

Classes

class  NvsPassthroughFileInfo
 
interface  PassthroughConvertorCallback
 

Static Public Attributes

static final String PASSTHROUGH_OPTIMIZE_FOR_NETWORK_USE = "optimize-for-network-use"
 Whether to prepose the index table, type: boolean,default is false. More...
 
static final String PASSTHROUGH_CREATION_TIME = "creation time"
 Set creation time for this file. Foramt:"YYYY-MM-DDTHH:MM:SS",eg:2010-12-24T12:00:00(use location time) More...
 
static final String PASSTHROUGH_METADATADESCRIPTION = "metadata description"
 sets the metadata description of the video files More...
 
passthrough error

static final int PASSTHROUGH_ERROR_NO_ERROR = 0
 no error More...
 
static final int PASSTHROUGH_ERROR_CANCEL = 1
 task is canceled More...
 
static final int PASSTHROUGH_ERROR_AUDIOENCODER_SETUP = 2
 setup audio encoder error More...
 
static final int PASSTHROUGH_ERROR_AUDIODECODER_SETUP = 3
 setup audio decoder error More...
 
static final int PASSTHROUGH_ERROR_PROCESS_VIDEO = 4
 process video error More...
 
static final int PASSTHROUGH_ERROR_PROCESS_AUDIO = 5
 process audio error More...
 
static final int PASSTHROUGH_ERROR_INVALID_DATA = 6
 invalid data error More...
 
static final int PASSTHROUGH_ERROR_IOERROR = 7
 input/output error More...
 
static final int PASSTHROUGH_ERROR_CONVERTFILE = 8
 file convert error More...
 
static final int PASSTHROUGH_ERROR_UNKNOWN = 65535
 task has unknown error More...
 

passthrough type

static final int PASSTHROUGH_TYPE_ALL = 0
 passthrough both video and audio More...
 
static final int PASSTHROUGH_TYPE_ONLYVIDEO = 1
 passthrough only video More...
 
static final int PASSTHROUGH_TYPE_DISABLETRANSCODE = 2
 passthrough disable transcode. When the starting position is not an I-frame, the frames between the current frame and the I-frame will be transcoded. After disabling transcoding, passthrough will start from the last I-frame closest to the current location, and the output file will be slightly larger than the specified file length More...
 
 NvsPassthroughConvertor ()
 
void release ()
 Release passthrough convertor object. More...
 
boolean isReleased ()
 Whether released. More...
 
void setPassthroughConvertorCallback (PassthroughConvertorCallback callback, Handler hanlder)
 Set callback to passthrough convertor. More...
 
void setPassthroughConvertorCallback (PassthroughConvertorCallback callback, boolean postMainLoop)
 Sets callback to passthrough convertor. More...
 
long convertMediaFile (List< NvsPassthroughFileInfo > srcFileInfos, String dstFile, Hashtable< String, Object > configurations, int passthroughType)
 Start to passthrough file. More...
 
void cancelTask (long taskId)
 Cancel task. More...
 
void finalize () throws Throwable
 
void notifyProgress (final long taskId, final float progress)
 
void notifyFinish (final long taskId, final int errorCode, final String errorString)
 

Detailed Description

NvsPassthroughConvertor.

Constructor & Destructor Documentation

◆ NvsPassthroughConvertor()

com.meicam.sdk.NvsPassthroughConvertor.NvsPassthroughConvertor ( )
inline

Member Function Documentation

◆ cancelTask()

void com.meicam.sdk.NvsPassthroughConvertor.cancelTask ( long  taskId)
inline

Cancel task.

Parameters
taskIdTask Id

◆ convertMediaFile()

long com.meicam.sdk.NvsPassthroughConvertor.convertMediaFile ( List< NvsPassthroughFileInfo srcFileInfos,
String  dstFile,
Hashtable< String, Object >  configurations,
int  passthroughType 
)
inline

Start to passthrough file.

Parameters
srcFileInfosSource file infos
dstFileDestination file
configurationsPassthrough params, only supports PASSTHROUGH_CREATION_TIME, PASSTHROUGH_OPTIMIZE_FOR_NETWORK_USE and PASSTHROUGH_METADATADESCRIPTION
passthroughTypePassthrough type
Returns
Task ID

◆ finalize()

void com.meicam.sdk.NvsPassthroughConvertor.finalize ( ) throws Throwable
inlineprotected

◆ isReleased()

boolean com.meicam.sdk.NvsPassthroughConvertor.isReleased ( )
inline

Whether released.

Returns
Returns whether released

◆ notifyFinish()

void com.meicam.sdk.NvsPassthroughConvertor.notifyFinish ( final long  taskId,
final int  errorCode,
final String  errorString 
)
inlineprotected

◆ notifyProgress()

void com.meicam.sdk.NvsPassthroughConvertor.notifyProgress ( final long  taskId,
final float  progress 
)
inlineprotected

◆ release()

void com.meicam.sdk.NvsPassthroughConvertor.release ( )
inline

Release passthrough convertor object.

◆ setPassthroughConvertorCallback() [1/2]

void com.meicam.sdk.NvsPassthroughConvertor.setPassthroughConvertorCallback ( PassthroughConvertorCallback  callback,
boolean  postMainLoop 
)
inline

Sets callback to passthrough convertor.

Parameters
callbackCallback interface
postMainLoopwhether to callback to main looper

◆ setPassthroughConvertorCallback() [2/2]

void com.meicam.sdk.NvsPassthroughConvertor.setPassthroughConvertorCallback ( PassthroughConvertorCallback  callback,
Handler  hanlder 
)
inline

Set callback to passthrough convertor.

Parameters
callbackCallback interface
hanlderCallback to this handler,if null will callback to main looper

Member Data Documentation

◆ PASSTHROUGH_CREATION_TIME

final String com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_CREATION_TIME = "creation time"
static

Set creation time for this file. Foramt:"YYYY-MM-DDTHH:MM:SS",eg:2010-12-24T12:00:00(use location time)

◆ PASSTHROUGH_ERROR_AUDIODECODER_SETUP

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_AUDIODECODER_SETUP = 3
static

setup audio decoder error

◆ PASSTHROUGH_ERROR_AUDIOENCODER_SETUP

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_AUDIOENCODER_SETUP = 2
static

setup audio encoder error

◆ PASSTHROUGH_ERROR_CANCEL

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_CANCEL = 1
static

task is canceled

◆ PASSTHROUGH_ERROR_CONVERTFILE

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_CONVERTFILE = 8
static

file convert error

◆ PASSTHROUGH_ERROR_INVALID_DATA

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_INVALID_DATA = 6
static

invalid data error

◆ PASSTHROUGH_ERROR_IOERROR

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_IOERROR = 7
static

input/output error

◆ PASSTHROUGH_ERROR_NO_ERROR

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_NO_ERROR = 0
static

no error

◆ PASSTHROUGH_ERROR_PROCESS_AUDIO

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_PROCESS_AUDIO = 5
static

process audio error

◆ PASSTHROUGH_ERROR_PROCESS_VIDEO

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_PROCESS_VIDEO = 4
static

process video error

◆ PASSTHROUGH_ERROR_UNKNOWN

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_UNKNOWN = 65535
static

task has unknown error

◆ PASSTHROUGH_METADATADESCRIPTION

final String com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_METADATADESCRIPTION = "metadata description"
static

sets the metadata description of the video files

◆ PASSTHROUGH_OPTIMIZE_FOR_NETWORK_USE

final String com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_OPTIMIZE_FOR_NETWORK_USE = "optimize-for-network-use"
static

Whether to prepose the index table, type: boolean,default is false.

◆ PASSTHROUGH_TYPE_ALL

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_TYPE_ALL = 0
static

passthrough both video and audio

◆ PASSTHROUGH_TYPE_DISABLETRANSCODE

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_TYPE_DISABLETRANSCODE = 2
static

passthrough disable transcode. When the starting position is not an I-frame, the frames between the current frame and the I-frame will be transcoded. After disabling transcoding, passthrough will start from the last I-frame closest to the current location, and the output file will be slightly larger than the specified file length

◆ PASSTHROUGH_TYPE_ONLYVIDEO

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_TYPE_ONLYVIDEO = 1
static

passthrough only video


The documentation for this class was generated from the following file: