File tree 2 files changed +14
-2
lines changed
app/src/main/java/github/hiteshsondhi88/sampleffmpeg 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ Supported Architecture
13
13
## Usage
14
14
15
15
### Load Binary
16
-
16
+ This method copies the ffmpeg binary to device according to device's architecture. You just need to put this once in your code,
17
+ whenever you are starting the application or using FFmpeg for the first time. This command does the following:
18
+ * Loads/Copies binary to device according to architecture
19
+ * Updates binary if it is using old FFmpeg version
20
+ * Provides callbacks through FFmpegLoadBinaryResponseHandler interface
17
21
``` java
18
22
FFmpeg ffmpeg = FFmpeg . getInstance(context);
19
23
try {
37
41
```
38
42
39
43
### Execute Binary
40
-
44
+ This method executes ffmpeg command and provides callback through FFmpegExecuteResponseHandler interface. You also need to pass command as argument
45
+ to this method.
46
+ e.g - To execute "ffmpeg -version" command you just need to pass "-version" as cmd parameter.
41
47
``` java
42
48
FFmpeg ffmpeg = FFmpeg . getInstance(context);
43
49
try {
Original file line number Diff line number Diff line change
1
+ package github .hiteshsondhi88 .sampleffmpeg ;
2
+
3
+ import android .app .Application ;
4
+
5
+ public class MainApplication extends Application {
6
+ }
You can’t perform that action at this time.
0 commit comments