上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 输出的avs码流是.cavs格式的。 编码:ffmpeg -s 640x480 -i test.yuv -b 300k -vcodec libxavs test.cavs 解码:ffmpeg -i test.cavs test.yuv http://xavs.sourceforge.net/xavs 阅读全文
posted @ 2013-05-03 19:32 mlj318 阅读(5218) 评论(0) 推荐(0) 编辑
摘要: 最大支持的图像大小,sws_getContext 源码中: #define VOFW 2048 http://ffmpeg.org/doxygen/0.6/libswscale_2utils_8c-source.html#l00782 阅读全文
posted @ 2013-04-19 15:17 mlj318 阅读(8163) 评论(0) 推荐(0) 编辑
摘要: int _tmain(int argc, _TCHAR* argv[]){ char* teststr = "hello"; teststr[1] = 'h'; printf("%s", teststr); return 0;} 发现teststr[1] = 'h';是不可写的,定义为char te 阅读全文
posted @ 2013-03-20 15:19 mlj318 阅读(292) 评论(0) 推荐(0) 编辑
摘要: /* * Filename: * Auther: mlj *第一章 第四题 产生0-n-1 之间k个随机顺序的随机整数 * Create date: 2013/ 3/12 */ #include <stdlib.h> #include <stdio.h> #include<stdio.h>#include <time.h> #define N 10000000#define K 1000000void swap(int *pm,int *pn) /*必须用指针进行交换*/{ int temp; temp=*pm; *pm=*pn; *pn=tem 阅读全文
posted @ 2013-03-12 17:10 mlj318 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1、Motion Estimation in x264 x264's ME methods in order from best quality to worst:SATD Exhaustive (tesa)Exhaustive (esa/full)Uneven Multi-Hex (umh)Hex 阅读全文
posted @ 2013-03-05 16:40 mlj318 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 基于Direct3D 9 1、首先了解如何使用D3D 9进行基本图元的绘制,如一幅图片。 参考 http://blog.csdn.net/zhmxy555/article/details/8223965 Direct3D渲染五步曲,我们只需在正式绘制中使用 StretchRect 函数将要绘制的图像 阅读全文
posted @ 2013-02-01 19:20 mlj318 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 1从http://sourceware.org/pthreads-win32/下载pthread的win32版本 ,2 对libx264工程在项目属性的“C/C++ -> 预处理器 ->预处理器”中加入HAVE_PTHREAD。3 对libx264工程 添加项目依赖项pthreadVC2.lib,VC++目录包含目录和库目录配置好(来自下载的pthread)。会生成新的支持多线程的libx264.lib,pthreadVC2.dll 放到可执行文件目录下。参考:http://jmvc.blog.sohu.com/145356341.html640x480大小单线程结果:x264 [ 阅读全文
posted @ 2013-01-31 20:14 mlj318 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: 加入 摄像头采集和264编码,再使用live555直播1、摄像头采集和264编码 将x264改成编码一帧的接口,码流不写入文件而是直接写入内存中(int Encode_frame 函数中)。/* * Filename: encodeapp.h * Auther: mlj * Create date: 2013/ 1/20 */#ifndef _ENCODEAPP_H_#define _ENCODEAPP_H_#include "x264.h"#include <stdint.h>#define WRITEOUT_RECONSTRUCTION 1typedef i 阅读全文
posted @ 2013-01-25 19:54 mlj318 阅读(14638) 评论(4) 推荐(1) 编辑
摘要: 参看有关live5551.首先需要修改live555,定义从 内存中直接获取source而不是从文件读取source的类。自己实现的类命名为H264FramedLiveSourceH264FramedLiveSource.hh/* * Filename: H264FramedLiveSource.hh * Auther: chenbin * Create date: 2013/ 1/22 */#ifndef _H264FRAMEDLIVESOURCE_HH#define _H264FRAMEDLIVESOURCE_HH#include <FramedSource.hh>class 阅读全文
posted @ 2013-01-23 13:06 mlj318 阅读(23442) 评论(2) 推荐(3) 编辑
摘要: Source和Sink:可以把source理解为发送端的流,sink理解为接受端。MediaSink是各种类型的Sink的基类,MediaSource是各种类型Source的基类,各种类型的流媒体格式和编码的支持即是通过对这两个类的派生实现的。Source和Sink通过RTP子会话(MediaSubSession)联系在一起。 FramedSource 派生自MediaSource, 一帧码流的实现。私有unsigned char* fTo; // in 是指向发送的码流的指针。重要的函数有getNextFramevoid FramedSource::getNextFrame(unsigne. 阅读全文
posted @ 2013-01-23 12:44 mlj318 阅读(5053) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页