public class MediaTranscoderEngine
extends java.lang.Object
| 修飾子とタイプ | クラスと説明 |
|---|---|
static interface |
MediaTranscoderEngine.ProgressCallback |
| コンストラクタと説明 |
|---|
MediaTranscoderEngine()
Do not use this constructor unless you know what you are doing.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
double |
getProgress()
NOTE: This method is thread safe.
|
MediaTranscoderEngine.ProgressCallback |
getProgressCallback() |
void |
setDataSource(java.io.FileDescriptor fileDescriptor) |
void |
setProgressCallback(MediaTranscoderEngine.ProgressCallback progressCallback) |
void |
transcodeVideo(java.lang.String outputPath,
MediaFormatStrategy formatStrategy)
Run video transcoding.
|
public MediaTranscoderEngine()
public void setDataSource(java.io.FileDescriptor fileDescriptor)
public MediaTranscoderEngine.ProgressCallback getProgressCallback()
public void setProgressCallback(MediaTranscoderEngine.ProgressCallback progressCallback)
public double getProgress()
public void transcodeVideo(java.lang.String outputPath,
MediaFormatStrategy formatStrategy)
throws java.io.IOException,
java.lang.InterruptedException
outputPath - File path to output transcoded video file.formatStrategy - Output format strategy.java.io.IOException - when input or output file could not be opened.InvalidOutputFormatException - when output format is not supported.java.lang.InterruptedException - when cancel to transcode.