Skip to content

Commit

Permalink
新增对hevc支持,修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjie10930 committed Mar 2, 2018
1 parent c85991f commit 052e5f5
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 5 deletions.
Binary file modified joevideolib/libs/arm64-v8a/libavcodec.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libavdevice.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libavfilter.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libavformat.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libavutil.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libffmpeg.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libpostproc.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libswresample.so
Binary file not shown.
Binary file modified joevideolib/libs/arm64-v8a/libswscale.so
Binary file not shown.
12 changes: 7 additions & 5 deletions joevideolib/src/main/java/VideoHandle/EpEditor.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package VideoHandle;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.media.MediaExtractor;
import android.media.MediaFormat;
Expand Down Expand Up @@ -323,7 +321,8 @@ public static void music(String videoin, String audioin, String output, float vi
}
cmd.append(output);
mediaExtractor.release();
execCmd(cmd, 0, onEditorListener);
long d = VideoUitls.getDuration(videoin);
execCmd(cmd, d, onEditorListener);
}

/**
Expand All @@ -346,7 +345,8 @@ public static void demuxer(String videoin, String out, Format format, OnEditorLi
break;
}
cmd.append(out);
execCmd(cmd, 0, onEditorListener);
long d = VideoUitls.getDuration(videoin);
execCmd(cmd, d, onEditorListener);
}

/**
Expand Down Expand Up @@ -565,9 +565,11 @@ public void onProgress(final float progress) {
*/
private static void execCmd(CmdList cmd, long duration, final OnEditorListener onEditorListener) {
String[] cmds = cmd.toArray(new String[cmd.size()]);
String cmdLog = "";
for (String ss : cmds) {
Log.v("EpMediaF", "cmd:" + ss);
cmdLog += cmds;
}
Log.v("EpMediaF", "cmd:" + cmdLog);
FFmpegCmd.exec(cmds, duration, new OnEditorListener() {
@Override
public void onSuccess() {
Expand Down

0 comments on commit 052e5f5

Please sign in to comment.