摘要: 最近遇到好几个人在问ffmpeg如何处理网络流,刚好前段时间也在做这方面,抽空整理了下,把主要代码发出来,希望对大家有用。为简单处理,我这里只简单介绍UDP接收TS流,其实只要是socket接收的都可以类似处理。#include "utils.h"#include <pthread.h>#include <libavcodec/avcodec.h>#include <libavformat/avformat.h>UdpQueue recvqueue;UdpParam udpParam;//注册av_read_frame的回调函数,这里只是 阅读全文
posted @ 2012-11-30 19:48 李伯波 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: 原: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) 编辑