上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 原:http://blog.csdn.net/xyyangkun/article/details/7255372/*** @note x264的编码示例.* 使用x264的版本为libx264-115* 1. 示例是个死循环,会源源不断的编码,然后将数据写文件.* 2. 示例的行为是:编码1000帧后,取空编码缓冲区,然后循环执行这两步.* @author*gcc -lx264**/#include <cassert>#include <iostream>#include <string>#include "stdint.h"#inclu 阅读全文
posted @ 2012-11-30 10:12 李伯波 阅读(609) 评论(0) 推荐(0) 编辑
摘要: error while loading shared libraries的解決方法 者 icq 21:03 | 靜態連結網址 | 迴響 (0) | 引用 (1) | 點閱次數 (270) | Programming 行程式時,如此遇到像下列這種錯誤: ./tests: error while loading shared libraries: xxx.so.0:cannot open shared ob... 阅读全文
posted @ 2012-11-30 08:45 李伯波 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: http://www.xxlinux.com/linux/article/accidence/internet/20081226/14739.html安装好了ffmpeg后,如果你使用ffmpeg工具去把某个视频文件转成h264视频编码、mp3音频编码or其他ffmpeg自身不带的xxx 编码类型,就会看到报错信息,unknown encoder 'xxx'。此刻你需要的只要去安装其他的编码器就行了,本质上其实是把其他的编码器以库的形式安装好,例如,把正确的libx264.so or libx264.a存放在/usr/lib下 or /usr/local/lib下。 举两个例子 阅读全文
posted @ 2012-11-29 19:09 李伯波 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 1../configure 2.make3.make install正常安装结束。网上查阅,普遍提示两种解决方法:一、ffmpeg是纯C的库,应用程序用C++来编译。二、路径、需要的库包含不全。红色字体以及其后的参数表示要关联的动态库。以上具体就不说了,搜索下便是。我在无数遍仔细确认上述两种可能性后,仍然报错。郁闷了一个晚上。。后来查阅ffmpeg的 pkg-config,终于找到原因,错误导致过程让我痛苦,原因却很简单。错误:gcc test.c -o test -I/GA/gabin/include/ -L/GA/gabin/lib-lavcodec -lavformat -lavdevi 阅读全文
posted @ 2012-11-29 15:42 李伯波 阅读(247) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_51396f890102dyde.html 阅读全文
posted @ 2012-11-29 11:08 李伯波 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 用了asyncUdpSocket, 服务端在接收到广播后,就会做出回应,然后就可以开始通讯了。[source language="objectc"]-(void)init{AsyncUdpSocket *socket=[[AsyncUdpSocketalloc]initWithDelegate:self];[socketlocalPort:16747];NSTimeInterval timeout=5000;NSString *request=@"quick_stat";NSData *data=[NSDatadataWithData:[request 阅读全文
posted @ 2012-11-28 20:03 李伯波 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 采集音频和摄像头视频并实时H264编码及AAC编码http://www.cnblogs.com/haibindev/archive/2011/11/10/2244442.htmlffmpeg的编译、安装及使用(for x86,for arm)http://hi.baidu.com/iminway/blog/item/bda2db4e29ced701b2de05f1.html 最新的ffmpeg可以通过svn下载,SVN辅助的软件有:SubVersion,从 http://subversion.tigris.org/ 下载,支持linux。TortoiseSVN,从 http://torto.. 阅读全文
posted @ 2012-11-28 19:45 李伯波 阅读(251) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-11-28 16:00 李伯波 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 关于图片压缩和解压缩的内容:http://www.vckbase.com/index.php/wv/14881 YUV转RGBstatic void YUV422toRGB888(int width, int height, unsigned char *src, unsigned char *dst){ int line, column; unsigned char *py, *pu, *pv; unsigned char *tmp = dst; py = src; pu = src + 1; pv = src + 3; #define CLIP(x) ( (x)>=0xFF ?0xF 阅读全文
posted @ 2012-11-28 15:24 李伯波 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: vidioc_querycap= vidioc_querycap, //查询驱动功能.vidioc_enum_fmt_vid_cap= vidioc_enum_fmt_vid_cap, //获取当前驱动支持的视频格式.vidioc_g_fmt_vid_cap= vidioc_g_fmt_vid_cap, //读取当前驱动的频捕获格式.vidioc_s_fmt_vid_cap= vidioc_s_fmt_vid_cap,//设置当前驱动的频捕获格式.vidioc_try_fmt_vid_cap= vidioc_try_fmt_vid_cap,//验证当前驱动的显示格式.vidioc_reqbuf 阅读全文
posted @ 2012-11-28 15:19 李伯波 阅读(1163) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页