include $(CLEAR_VARS)
LOCAL_MODULE := ffmpeg_VITAMIO_prebuilt
LOCAL_SRC_FILES := libffmpeg_VITAMIO.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)
LOCAL_SHARED_LIBRARIES := ffmpeg_VITAMIO_prebuilt
System.loadLibrary("ffmpeg_VITAMIO_prebuilt");
04-19 15:18:34.836: I/DEBUG(67): scr 20000012
04-19 15:18:34.906: I/DEBUG(67): #00 pc 000190d8 /system/lib/libc.so
04-19 15:18:34.906: I/DEBUG(67): #01 pc 0001938e /system/lib/libc.so
04-19 15:18:34.906: I/DEBUG(67): #02 pc 0000937a /data/data/com.example.andrvideoprocess/lib/libnative_sample.so
/data/data/com.example.andrvideoprocess/lib/libnative_sample.so
04-19 15:18:34.916: I/DEBUG(67): beb0fddc 00000017
04-19 15:18:34.916: I/DEBUG(67): beb0fde0 8056ab24
04-19 15:18:34.916: I/DEBUG(67): beb0fde4 beb112ec
04-19 15:18:34.916: I/DEBUG(67): beb0fde8 ffffffff
04-19 15:18:34.916: I/DEBUG(67): beb0fdec 8050937d /data/data/com.example.andrvideoprocess/lib/libnative_sample.so
04-19 15:18:35.116: I/BootReceiver(130): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
04-19 15:18:35.136: I/ActivityManager(130): Process com.example.andrvideoprocess (pid 30386) has died.
04-19 15:18:35.136: I/WindowManager(130): WIN DEATH: Window{40911bd8 com.example.andrvideoprocess/com.example.andrvideoprocess.MainActivity paused=false}
04-19 15:18:35.146: E/ActivityManager(130): fail to set top app changed!
arm-linux-androideabi-addr2line -C -f -e /obj/local/armeabi-v7a/libnative_sample.so 0000937a
BFD: Dwarf Error: mangled line number section.
Java_com_example_jniInterface_jniInterfaceJava_flattenVideoFile
unwind-c.c:0
#include <jni.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include </usr/src/android-ndk-r8b/platforms/android-14/arch-arm/usr/include/android/bitmap.h>
#include <iostream>
#include <sstream>
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/opt.h>
}
using namespace std;
using namespace cv;
if ((ret=av_read_frame(inVStruct.inFormatContext, & inVStruct.inPacket)) < 0)
{
LOGI("fail: av_read_frame ");
break;
}
if (inVStruct.inPacket.stream_index == inVStruct.video_stream_index) {
....
}
04-25 22:40:22.533: I/native-activity(32757): av_read_frame_count: 608
04-25 22:40:22.533: I/native-activity(32757): inVStruct.inPacket.stream_index= 4624496:
04-25 22:40:22.533: I/native-activity(32757): inVStruct.video_stream_index= 0:
04-25 22:40:22.533: I/native-activity(32757): av_read_frame_count: 609
04-25 22:40:22.533: I/native-activity(32757): inVStruct.inPacket.stream_index= 4624808:
04-25 22:40:22.533: I/native-activity(32757): inVStruct.video_stream_index= 0:
04-25 22:40:22.533: I/native-activity(32757): av_read_frame_count: 610
04-25 22:40:22.533: I/native-activity(32757): inVStruct.inPacket.stream_index= 4625112:
04-25 22:40:22.533: I/native-activity(32757): inVStruct.video_stream_index= 0:
04-25 22:40:22.533: I/native-activity(32757): av_read_frame_count: 611
04-25 22:40:22.533: I/native-activity(32757): inVStruct.inPacket.stream_index= 4627112:
04-25 22:40:22.533: I/native-activity(32757): inVStruct.video_stream_index= 0:
04-25 22:40:22.533: I/native-activity(32757): av_read_frame_count: 612