提交 4a752013 编写于 作者: E eguid 提交者: GitHub

Create readme

上级 75b337cb
演示示例:
FFmpegManager manager=new FFmpegManagerImpl(10);
//当然也可以这样:FFmpegManager manager=new FFmpegManagerImpl();//这样会从配置文件中读取size的值作为初始化参数
//组装命令
Map map = new HashMap();
map.put("appName", "test123");
......@@ -25,7 +26,9 @@ System.out.println(infoList);
//停止id对应的任务
manager.stop(id);
//执行原生ffmpeg命令
manager.start("test1", "这里放原生的ffmpeg命令");
//执行原生ffmpeg命令(不包含ffmpeg的执行路径,该路径会从配置文件中自动读取)
manager.start("test1", "ffmpeg -i input_file -vcodec copy -an output_file_video");
//包含完整ffmpeg执行路径的命令
manager.start("test2,","d:/ffmpeg/ffmpeg -i input_file -vcodec copy -an output_file_video",true);
//停止全部任务
manager.stopAll();
\ No newline at end of file
manager.stopAll();
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册