update gif
pull/166/head
xufulong 4 years ago
parent 262e472f0e
commit 89e34ccc33
  1. 3
      app/src/main/java/com/frank/ffmpeg/FFmpegCmd.java
  2. 4
      app/src/main/java/com/frank/ffmpeg/activity/VideoHandleActivity.java
  3. BIN
      gif/preview.gif

@ -156,6 +156,9 @@ public class FFmpegCmd {
public static void onProgressCallback(int position, int duration, @FFmpegState int state) {
Log.e("FFmpegCmd", "onProgress position=" + position
+ "--duration=" + duration + "--state=" + state);
if (position > duration && duration > 0) {
return;
}
if (mProgressListener != null) {
if (position > 0 && duration > 0) {
int progress = position * 100 / duration;

@ -222,8 +222,8 @@ public class VideoHandleActivity extends BaseActivity {
break;
case R.id.btn_generate_gif://convert video into gif
String Video2Gif = PATH + File.separator + "Video2Gif.gif";
int gifStart = 30;
int gifDuration = 10;
int gifStart = 10;
int gifDuration = 6;
int width = 320;
int frameRate = 10;
String palettePath = PATH + "/palette.png";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Loading…
Cancel
Save