package mozat.mchatcore.videotranslate;
import android.util.Log;
public class VideoTranslateJniInterface {
private static final String TAG = VideoTranslateJniInterface.class.getSimpleName();
static {
Log.d(TAG, "before load videotranslate library");
System.loadLibrary("x264");
System.loadLibrary("ffmpeg");
System.loadLibrary("videotranslate");
Log.i(TAG, "after load videotranslate library");
setDebugSetting(1);
}
static native void setDebugSetting(int isShowLibvideotranslateLog);
static native void startTranslate(String sourceVideoFile, String targetVideoFile, long timeLenLimit);
static native void startCutVideo(String sourceVideoFile, String targetVideoFile, long timeLenLimit);
static boolean encodeStepCallBack(boolean isOver, boolean isCanceled, long currentTimeLen, long limitTimeLen, long totalTimeLen) {
if (VideoTranslateTool.mOnTranslateListener != null) {
VideoTranslateTool.mOnTranslateListener.encodeStepCallB
android 视频转码
最新推荐文章于 2025-06-12 13:24:03 发布