Android开发之《ffmpeg解码mjpeg视频流》

 MJPEG格式和码流分析,MJPEG格式的一些简介

FFmpeg解码USB摄像头MJPEG输出:http://blog.csdn.net/light_in_dark/article/details/56276799?locationNum=14&fps=1

 

问题1.所有库都已经加载进来,但编译的时候总出现链接错误(av_log_set_callback)

解决1.重新调整了include顺序,va_list可能在某些地方被定义过

 

----------------------------------------
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x9f9fb008

I/DEBUG   (  172):     #00 pc 009882b0  
lib/arm/libUsbCamera.so (I422ToARGBRow_NEON+165)
I/DEBUG   (  172):     #01 pc 0097962b  
lib/arm/libUsbCamera.so
I/DEBUG   (  172):     #02 pc 009796cf  
lib/arm/libUsbCamera.so (J422ToARGB+46)
----------------------------------------
LIBYUV_API
int J422ToABGR(const uint8* src_y,
               int src_stride_y,
               const uint8* src_u,
               int src_stride_u,
               const uint8* src_v,
               int src_stride_v,
               uint8* dst_abgr,
               int dst_stride_abgr,  // 每行长度,width * 4
               int width,
               int height);

 

 

Neon指令集,内存对齐 | (int *) (((int) buffer + 0xF) & (~0xF)) | buffer = (int *) malloc(area * 4 + 15);

----------------------------------------------
F/libc (20180): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x40 in tid 20237 (Thread-627) I/DEBUG ( 172): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 172): Build fingerprint: 'Android/rk3288_box/rk3288_box:5.1.1/LMY49F/ruanjg12011055:userdebug/test-keys' I/DEBUG ( 172): Revision: '0' I/DEBUG ( 172): ABI: 'arm' I/DEBUG ( 172): pid: 20180, tid: 20237, name: Thread-627 I/DEBUG ( 172): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40 I/DEBUG ( 172): r0 00000000 r1 b7e444b0 r2 00000000 r3 fedf9b6c I/DEBUG ( 172): r4 b6debdd4 r5 b7e444b0 r6 00000000 r7 a2771800 I/DEBUG ( 172): r8 b7de5878 r9 00000021 sl fedf9b6c fp a2771bd0 I/DEBUG ( 172): ip a0776c58 sp a2771738 lr 9fd8731c pc 9fd8620c cpsr 800f0010 I/DEBUG ( 172): I/DEBUG ( 172): backtrace: I/DEBUG ( 172): #00 pc 0046620c (avcodec_is_open)

 

posted @ 2017-04-24 12:56  老金280  阅读(1942)  评论(0编辑  收藏  举报