File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2020
2121基于[AndroidExec][AndroidExec]项目,FFmpeg命令执行
2222
23- ## AndroidFFmpeg使用
23+ ## FFmpeg&FFprobe使用
2424
2525```
2626// 初始化,默认:不限制并发线程数;指令超时10s终止
2727FFmpeg.init(context);
28+ FFprobe.init(context);
2829
2930// 自定义初始化参数:超时1s终止
3031FFmpeg.init(context, new CommanderOptions.Builder().setTimeOut(1000).build())
32+ FFprobe.init(context, new CommanderOptions.Builder().setTimeOut(1000).build())
3133
3234// 获取FFmpeg工具路径
3335FFmpeg.checkFFmpeg()
36+ FFprobe.checkFFmpeg()
3437
3538// 创建执行命令
3639推荐方式:new CommandTask.Builder().command(FFmpeg.checkFFmpeg()).command(cmd).build().deploy(IListener);
@@ -62,6 +65,7 @@ CommandTask.discard()
6265
6366// 终止所有命令
6467FFmpeg.destroy()
68+ FFprobe.destroy()
6569```
6670
6771## FFmpeg命令
@@ -246,11 +250,21 @@ FFmpeg.destroy()
246250 ffmpeg -f avfoundation -framerate 30 -i "0" -f mpeg1video -b 500k -r 20 -vf scale=640:360 output.avi
247251 ```
248252
253+ ## FFprobe命令
254+
255+ * 查看多媒体包信息
256+
257+ ```
258+ ffprobe -show_packets input.mp4
259+ ```
260+
261+
249262
250263## 版本更新
251264
252265| 版本 | 描述 |
253266| --- | ---- |
267+ | [1.2.6][FFmpeg1.2.6] | 增加ffprobe脚本 **2022-6-1** |
254268| [1.2.5][FFmpeg1.2.5] | 增加OpenSSL **2021-8-23** |
255269| [1.2.4][FFmpeg1.2.4] | 每次初始化更新FFmpeg **2021-6-29** |
256270| [1.2.3][FFmpeg1.2.3] | 增加CPU架构 **2021-5-30** |
@@ -286,6 +300,7 @@ FFmpeg.destroy()
286300
287301<!-- 版本 -->
288302
303+ [FFmpeg1.2.6]:https://bintray.com/veizhang/maven/ffmpeg/1.2.6
289304[FFmpeg1.2.5]:https://bintray.com/veizhang/maven/ffmpeg/1.2.5
290305[FFmpeg1.2.4]:https://bintray.com/veizhang/maven/ffmpeg/1.2.4
291306[FFmpeg1.2.3]:https://bintray.com/veizhang/maven/ffmpeg/1.2.3
Original file line number Diff line number Diff line change 11ext {
22 groupId = ' com.excellence'
3- publishVersion = ' 1.2.5 '
3+ publishVersion = ' 1.2.6 '
44 desc = ' android执行FFmpeg命令'
55 website = ' https://github.com/VeiZhang/AndroidFFmpeg'
66}
You can’t perform that action at this time.
0 commit comments