【发布时间】:2014-02-28 07:59:25
【问题描述】:
我的应用程序由ffmpeg、javacv-android-arm、opencv-2.4.8-android-arm(.so 文件)和javacpp、javacv jars 组成。它工作得很好。
之后,我将 Vitamio library 应用程序添加到我的应用程序中。Vitamio 包含一些罐子,例如 ffmpeg 等。添加后,我收到“找不到类异常”之类的错误。
我的错误信息是: link
我在这段代码中遇到错误:
private void initRecorder() {
Log.w(LOG_TAG,"init recorder");
if (yuvIplimage == null) {
yuvIplimage = IplImage.create(imageWidth, imageHeight, IPL_DEPTH_8U, 2); //error here.
// Log.i(LOG_TAG, "create yuvIplimage");
}
Log.i(LOG_TAG, "ffmpeg_url: " + ffmpeg_link);
recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth, imageHeight, 1);
recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264) ;
recorder.setFormat("flv");
recorder.setSampleRate(sampleAudioRateInHz);
// Set in the surface changed method
// myPreference.getString("rtmp_url", "sample1");
recorder.setFrameRate(frameRate);
Log.i(LOG_TAG, "recorder initialize success");
audioRecordRunnable = new AudioRecordRunnable();
audioThread = new Thread(audioRecordRunnable);
}
请帮帮我
【问题讨论】:
-
@MD,错误消息的链接消失了。请重新编辑并放上链接。
-
在您的日志中:说 libopencv_core.so 文件丢失。检查您的 Android.mk 文件
标签: android ffmpeg http-live-streaming vitamio