| 
 | 
 
 本帖最后由 zjhsucceed_329 于 2013-1-24 10:45 编辑  
 
[root@tq2440 /]# ./ffmpeg_decode test.avi  
The framebuffer device was opened successfully. 
480x272, 16bpp 
The framebuffer device was mapped to memory successfully. 
Input #-1, avi, from 'test.avi': 
  Duration: 00:00:30.33, start: 0.000000, bitrate: 930 kb/s 
    Stream #-1:0: Video: indeo3 (IV32 / 0x32335649), yuv410p, 176x184, 15 tbr, 15 tbn, 15 tbc 
width:176       height:184 
 
下载相应的库后放到交叉编译工具链相应的目录 
ffmpeg库和头文件下载地址 
 
修正之前的一个bug将ffmpeg_decode.c文件中的 
struct SwsContext *img_convert_ctx = NULL; 
        img_convert_ctx = sws_getCachedContext(img_convert_ctx, pCodecCtx->width, 
                                        pCodecCtx->height, pCodecCtx->pix_fmt, 
                                        pCodecCtx->width, pCodecCtx->height, 
                                        AV_PIX_FMT_RGB565LE, SWS_BICUBIC, 
                                        NULL, NULL, NULL); 
                                if(!img_convert_ctx) 
                                        err_exit("Cannot initialize sws conversion context\n"); 
 
移到while循环外面,同时在最后添加sws_freeContext(img_convert_ctx); 
 |   
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册  
 
×
 
 
 
 
 |