| 程序包 | 说明 |
|---|---|
| com.gdxsoft.ffmpegUtils | |
| com.gdxsoft.ffmpegUtils.job |
| 限定符和类型 | 方法和说明 |
|---|---|
static VideoScale |
VideoScale.get1080P()
1920 x 1080
|
static VideoScale |
VideoScale.get480P()
720 x 480
|
static VideoScale |
VideoScale.get4K()
3840 x 2160
|
static VideoScale |
VideoScale.get720P()
1280 x 720
|
static VideoScale |
VideoScale.get8K()
7680 x 4320
|
VideoScale |
Watermark.getLogoScale()
获取水印分辨率
|
VideoScale |
Watermark.getVideoScale()
获取视频分辨率
|
| 限定符和类型 | 方法和说明 |
|---|---|
ConvertResult |
VideoConvert.convertTo(File sourceVideoFile,
File outputVideoFile,
long bitRate,
VideoScale outVideoScale)
转换视频
|
ConvertResult |
VideoConvert.convertTo(String sourceVideo,
String outputVideo,
long bitRate,
VideoScale outVideoScale)
转换视频
|
static Command |
Commands.createConvert2Mp4(File sourceFile,
File outFile,
String codec,
long videoBitRate,
VideoScale outVideoScale,
Watermark waterMark)
转换成mp4文件
|
static Command |
Commands.createConvert2Mp4(String sourceFile,
String outFile,
String codec,
long videoBitRate,
VideoScale outVideoScale,
Watermark waterMark)
转换成mp4文件
|
void |
Watermark.initLeftBottom(String logoFile,
int left,
int bottom,
VideoScale logoScale)
左下角 "overlay=" + left + ":main_h-overlay_h-" + bottom
|
void |
Watermark.initLeftTop(String logoFile,
int top,
int left,
VideoScale logoScale)
左上角 "overlay=" + left + ":" + top
|
void |
Watermark.initRightBottom(String logoFile,
int right,
int bottom,
VideoScale logoScale)
右下角 "overlay=main_w-overlay_w-" + right + ":main_h-overlay_h-" + bottom
|
void |
Watermark.initRightTop(String logoFile,
int right,
int top,
VideoScale logoScale)
右上角 "overlay=main_w-overlay_w-" + right + ":" + top
|
void |
Watermark.setLogoScale(VideoScale logoScale)
设置水印分辨率
|
void |
Watermark.setVideoScale(VideoScale videoScale)
设置视频分辨率
|
| 限定符和类型 | 方法和说明 |
|---|---|
VideoScale |
TaskBasic.getOutVideoScale() |
VideoScale |
ITaskInfo.getOutVideoScale()
输出视频分辨率
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TaskBasic.setOutVideoScale(VideoScale outVideoScale) |
void |
ITaskInfo.setOutVideoScale(VideoScale outVideoScale)
输出视频分辨率
|
Copyright © 2021. All rights reserved.