| 程序包 | 说明 |
|---|---|
| com.gdxsoft.ffmpegUtils |
| 限定符和类型 | 方法和说明 |
|---|---|
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文件
|
static Command |
Commands.createCovert2TsCommand(File sourceFile,
File tsFile)
转换为ts文件
|
static Command |
Commands.createCovert2TsCommand(String sourceFileName,
String tsFileName)
转换为ts文件
|
static Command |
Commands.createGetCoverCommand(File sourceFile,
File coverImagePath)
创建 获取视频的一张封面图(关键帧)命令
|
static Command |
Commands.createGetCoverCommand(String sourceFile,
String coverImagePath)
创建 获取视频的一张封面图(关键帧)命令
|
static Command |
Commands.createM3u8Command(String sourceFile,
String m3u8IndexName,
String segmentPrefix)
创建 转码m3u8 视频格式文件,按照每5秒分割一个
|
static Command |
Commands.createM3u8Command(String sourceFile,
String m3u8IndexName,
String segmentPrefix,
int segmentTime)
创建 转码m3u8 视频格式文件
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
VideoConvert.exec(Command cmd,
net.bramp.ffmpeg.progress.ProgressListener listener)
执行 Ffmpeg命令
|
Copyright © 2021. All rights reserved.