public class FfmpegCommandBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FfmpegCommandBuilder.VideoWatermarkPosition |
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOLUTION_DEFAULT |
static String |
RESOLUTION_HIGHDEFINITION |
static String |
RESOLUTION_SIMPLEDEFINITION |
static String |
RESOLUTION_SUPERDEFINITION |
static int |
WATERMARKPOSITION_LEFTBOTTOM |
static int |
WATERMARKPOSITION_LEFTTOP |
static int |
WATERMARKPOSITION_RIGHTBOTTOM |
static int |
WATERMARKPOSITION_RIGHTTOP |
| Constructor and Description |
|---|
FfmpegCommandBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCaptureCommand(int captureSecond,
int width,
int height) |
void |
addCommand(String command) |
void |
addFfmpegCommand() |
void |
addFfmpegCommand(String ffmpegPath) |
void |
addFormatCommand(String format) |
void |
addInputFileCommand(String filePath) |
void |
addOutputFileCommand(String filePath) |
void |
addOverwriteCommand() |
void |
addSimpleAudioCommand() |
void |
addVideoBitRateCommand(long bitrate) |
void |
addVideoConvertCommand(String videoResolution) |
void |
addWatermarkCommand(String imageName,
FfmpegCommandBuilder.VideoWatermarkPosition position) |
List<String> |
getCommandList() |
String |
toString() |
public static final String RESOLUTION_SUPERDEFINITION
public static final String RESOLUTION_HIGHDEFINITION
public static final String RESOLUTION_SIMPLEDEFINITION
public static final String RESOLUTION_DEFAULT
public static final int WATERMARKPOSITION_LEFTTOP
public static final int WATERMARKPOSITION_RIGHTTOP
public static final int WATERMARKPOSITION_LEFTBOTTOM
public static final int WATERMARKPOSITION_RIGHTBOTTOM
public void addFfmpegCommand()
public void addFfmpegCommand(String ffmpegPath)
public void addCommand(String command)
public void addInputFileCommand(String filePath)
public void addFormatCommand(String format)
public void addOutputFileCommand(String filePath)
public void addOverwriteCommand()
public void addSimpleAudioCommand()
public void addVideoBitRateCommand(long bitrate)
public void addVideoConvertCommand(String videoResolution)
public void addWatermarkCommand(String imageName, FfmpegCommandBuilder.VideoWatermarkPosition position)
public void addCaptureCommand(int captureSecond,
int width,
int height)
Copyright © 2016. All Rights Reserved.