NvsPassthroughConvertor.
More...
|
|
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) |
|
◆ NvsPassthroughConvertor()
com.meicam.sdk.NvsPassthroughConvertor.NvsPassthroughConvertor |
( |
| ) |
|
|
inline |
◆ cancelTask()
void com.meicam.sdk.NvsPassthroughConvertor.cancelTask |
( |
long |
taskId | ) |
|
|
inline |
◆ convertMediaFile()
long com.meicam.sdk.NvsPassthroughConvertor.convertMediaFile |
( |
List< NvsPassthroughFileInfo > |
srcFileInfos, |
|
|
String |
dstFile, |
|
|
Hashtable< String, Object > |
configurations, |
|
|
int |
passthroughType |
|
) |
| |
|
inline |
Start to passthrough file.
- Parameters
-
srcFileInfos | Source file infos |
dstFile | Destination file |
configurations | Passthrough params, only supports PASSTHROUGH_CREATION_TIME, PASSTHROUGH_OPTIMIZE_FOR_NETWORK_USE and PASSTHROUGH_METADATADESCRIPTION |
passthroughType | Passthrough 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]
Sets callback to passthrough convertor.
- Parameters
-
callback | Callback interface |
postMainLoop | whether to callback to main looper |
◆ setPassthroughConvertorCallback() [2/2]
Set callback to passthrough convertor.
- Parameters
-
callback | Callback interface |
hanlder | Callback to this handler,if null will callback to main looper |
◆ 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 |
◆ PASSTHROUGH_ERROR_CONVERTFILE
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_CONVERTFILE = 8 |
|
static |
◆ PASSTHROUGH_ERROR_INVALID_DATA
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_INVALID_DATA = 6 |
|
static |
◆ PASSTHROUGH_ERROR_IOERROR
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_IOERROR = 7 |
|
static |
◆ PASSTHROUGH_ERROR_NO_ERROR
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_NO_ERROR = 0 |
|
static |
◆ PASSTHROUGH_ERROR_PROCESS_AUDIO
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_PROCESS_AUDIO = 5 |
|
static |
◆ PASSTHROUGH_ERROR_PROCESS_VIDEO
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_PROCESS_VIDEO = 4 |
|
static |
◆ PASSTHROUGH_ERROR_UNKNOWN
final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_UNKNOWN = 65535 |
|
static |
◆ 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 |
The documentation for this class was generated from the following file: