public class CommandLineOperations extends Object
Fast Forward Moving Picture Experts Group命令行操作入口类
可执行Fast Forward Moving Picture Experts Group命令/停止/查询任务信息
该类需要配合对应系统版本的Fast Forward Moving Picture Experts Group
下载编译好的对应的系统版本:https://ffmpeg.zeranoe.com/builds/
2020-02-25 18:40
| 构造器和说明 |
|---|
CommandLineOperations() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
destroy()
销毁一些后台资源和保活线程
|
static CommandTask |
get(String taskId)
通过id查询任务信息
|
static Collection<CommandTask> |
getAll()
获取全部任务信息
|
static void |
init(ProgramConfig programConfig)
初始化配置类信息
|
static String |
start(Map<String,String> map)
发布命令行任务
|
static String |
start(String taskId,
CommandBuilder commandBuilder)
发布命令行任务
|
static String |
start(String taskId,
String command)
发布命令行任务
|
static String |
start(String taskId,
String command,
boolean hasPath)
发布命令行任务
|
static boolean |
stop(String taskId)
停止任务
|
static int |
stopAll()
停止全部任务
|
public static void init(ProgramConfig programConfig)
programConfig - 初始化配置public static String start(String taskId, String command)
taskId - 任务id、任务标识、任务名称command - 需要执行的命令public static String start(String taskId, String command, boolean hasPath)
taskId - 任务id、任务标识、任务名称command - 需要执行的命令hasPath - 命令中是否包含FFmpeg执行文件的绝对路径
如true:/usr/local/ff/ffmpegpublic static String start(String taskId, CommandBuilder commandBuilder)
taskId - 任务id、任务标识、任务名称commandBuilder - 流式命令行构建器public static boolean stop(String taskId)
taskId - 需要停止的任务idpublic static int stopAll()
public static CommandTask get(String taskId)
taskId - 任务idpublic static Collection<CommandTask> getAll()
public static void destroy()
Copyright © 2021. All rights reserved.