android 视频转码

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.encodeStepCallBack(isOver, isCanceled, currentTimeLen, limitTimeLen, totalTimeLen);
		}
		
		return true;
	}

	static native long[] getVideoInfo(String sourceName);

	static native void cancelTranscode();
}

下载地址   http://download.csdn.net/detail/xiechao1986/6276969

你可能感兴趣的:(不满足)