File tree 2 files changed +17
-2
lines changed 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
基于[AndroidExec][AndroidExec]项目,FFmpeg命令执行
22
22
23
- ## AndroidFFmpeg使用
23
+ ## FFmpeg&FFprobe使用
24
24
25
25
```
26
26
// 初始化,默认:不限制并发线程数;指令超时10s终止
27
27
FFmpeg.init(context);
28
+ FFprobe.init(context);
28
29
29
30
// 自定义初始化参数:超时1s终止
30
31
FFmpeg.init(context, new CommanderOptions.Builder().setTimeOut(1000).build())
32
+ FFprobe.init(context, new CommanderOptions.Builder().setTimeOut(1000).build())
31
33
32
34
// 获取FFmpeg工具路径
33
35
FFmpeg.checkFFmpeg()
36
+ FFprobe.checkFFmpeg()
34
37
35
38
// 创建执行命令
36
39
推荐方式:new CommandTask.Builder().command(FFmpeg.checkFFmpeg()).command(cmd).build().deploy(IListener);
@@ -62,6 +65,7 @@ CommandTask.discard()
62
65
63
66
// 终止所有命令
64
67
FFmpeg.destroy()
68
+ FFprobe.destroy()
65
69
```
66
70
67
71
## FFmpeg命令
@@ -246,11 +250,21 @@ FFmpeg.destroy()
246
250
ffmpeg -f avfoundation -framerate 30 -i "0" -f mpeg1video -b 500k -r 20 -vf scale=640:360 output.avi
247
251
```
248
252
253
+ ## FFprobe命令
254
+
255
+ * 查看多媒体包信息
256
+
257
+ ```
258
+ ffprobe -show_packets input.mp4
259
+ ```
260
+
261
+
249
262
250
263
## 版本更新
251
264
252
265
| 版本 | 描述 |
253
266
| --- | ---- |
267
+ | [1.2.6][FFmpeg1.2.6] | 增加ffprobe脚本 **2022-6-1** |
254
268
| [1.2.5][FFmpeg1.2.5] | 增加OpenSSL **2021-8-23** |
255
269
| [1.2.4][FFmpeg1.2.4] | 每次初始化更新FFmpeg **2021-6-29** |
256
270
| [1.2.3][FFmpeg1.2.3] | 增加CPU架构 **2021-5-30** |
@@ -286,6 +300,7 @@ FFmpeg.destroy()
286
300
287
301
<!-- 版本 -->
288
302
303
+ [FFmpeg1.2.6]:https://bintray.com/veizhang/maven/ffmpeg/1.2.6
289
304
[FFmpeg1.2.5]:https://bintray.com/veizhang/maven/ffmpeg/1.2.5
290
305
[FFmpeg1.2.4]:https://bintray.com/veizhang/maven/ffmpeg/1.2.4
291
306
[FFmpeg1.2.3]:https://bintray.com/veizhang/maven/ffmpeg/1.2.3
Original file line number Diff line number Diff line change 1
1
ext {
2
2
groupId = ' com.excellence'
3
- publishVersion = ' 1.2.5 '
3
+ publishVersion = ' 1.2.6 '
4
4
desc = ' android执行FFmpeg命令'
5
5
website = ' https://github.com/VeiZhang/AndroidFFmpeg'
6
6
}
You can’t perform that action at this time.
0 commit comments