- 博客(14)
- 收藏
- 关注
原创 windows下编译64位ffmpeg的问题。以64位 zlib为例
x264,265。。。等等10几个库都很顺利的编译过去了,zlib的64位库在vs2015下下编译通过了。放到ffmpeg环境里。死活找不到。卡了我整整两天。怎么折腾,始终提升error: zlib requested, but not found.开始各种捣鼓。安装libz-devel.自己编译,改各种pc文件,lib文件名。不得法。百度也没说这个的,后来翻qiang google搜到一篇文章,...
2020-03-17 20:40:54
2458
原创 一个不匹配的宏定义引起的堆栈破坏,Critical error detected c0000374,调用librtmp库时候。
申请内存多处失败。调试报Critical error detected c0000374错误,发现只要屏蔽到RtmpRoad.h就没问题。百思不得其解。后来发现是这个.h文件有一个不匹配的边界对齐,导致的。#pragma pack(1) #define MAX_FRM_LEN (1024*2048)#define MAX_SPSPPS_LEN 8192#define PUSH_ASY...
2018-12-06 11:10:50
1793
原创 Hisi海思交叉编译iperf3,提示undefined reference to `__ctype_tolower' __ctype_b
配置方法: ./configure --host=arm-hisiv200-linux CFLAGS=-static --enable-static LDFLAGS=-static --disable-shared出现提示后,在main.c中定义static int run(struct iperf_test *test);#include __const unsigned s
2017-11-29 16:26:32
4132
原创 g++中使用std map根据value查找find_if
error: no matching function for call to 'ptr_fun()'#include #include 这两个是必须的bool equal(std::pair data,char* ip0){ if(strcmp(data.second->ip,ip0) == 0) { return true; }el
2017-11-15 13:45:15
543
原创 gsoap,openssl,onvif makefile编译,undefined reference to `soap_ssl_init',errno错误号500,401等
SOAP_NMAC struct Namespace namespaces[] = { {"SOAP-ENV", "http://www.w3.org/2003/05/soap-envelope", "http://schemas.xmlsoap.org/soap/envelope/", NULL}, {"SOAP-ENC", "http://www.w3.or
2017-11-15 10:38:09
5211
6
原创 编译openssl报错 No rule to make target `../include/openssl/bio.h', needed by `cryptlib.o'. Stop
making all in crypto...make[1]: *** No ruleto make target `../include/openssl/bio.h', needed by `cryptlib.o'. Stop.make: *** [build_crypto] Error 1仔细一看,其实在./config时候就有警告了。ln: failed t
2017-11-02 14:36:25
12608
3
原创 从ttf原始文件解析出字体名称时遇到的字节序的问题是big endian
网上搜到的代码转换不过来,因为读出来的信息是big endian的unicode类型。高低字节是颠倒的,必须首先转换过来。LPCSTR GetFontNameFromFile(LPSTR lpszFilePath, LPSTR chinesename, LPSTR englishname){ USES_CONVERSION; FILE* f; static char csRet
2017-09-01 14:25:48
504
原创 开发虚拟演播室,或者需要读出渲染后数据的应用上SDL_RenderSetLogicalSize是个很有用的函数
在做虚拟演播室时候,我需要读出来渲染以后的yuv数据,进行H.264编码。假如我预设的h.264编码大小是1920*1080,为了用硬件渲染。我必须创建一个同等大小的render和窗口。再加上还需要一个预览窗口,这样。两个窗口显然是在屏幕上没有办法排列开来的。变通的方法,你当然可以用setwindowpos把这个大窗体移动到一个负数的看不到的窗口位置,虽然问题解决了,但是你还是需要维持
2017-08-15 09:47:31
994
原创 SDL_UpdateTexture,SDL_UpdateYUVTexture截屏效率比较,sdl_savebmp黑屏
SDL_UpdateTexture,SDL_UpdateYUVTexture截屏效率比较
2017-08-14 13:14:21
3756
原创 sdl从sdl_renderer读出数据,然后构造一个sdl_surface
//Uint32 rmask, gmask, bmask, amask; //char pixels[1920 * 4 * 720]; //int pitch; //int bpp; //SDL_Rect real_rect; //Uint32 format; //real_rect.x = 0; //real_rect.y = 0;
2017-08-14 10:40:40
1033
原创 sdl renderer window texture surface更新关系
方式1:先创建窗口SDL_CreateWindow,从窗口得到表面SDL_GetWindowSurface,对surface操作,blitscale,blitsurface,loadimage等操作,然后调用SDL_UpdateWindowSurface(window);把对surface的操作反应到窗口这里面没有render和texture方式2:创建窗口,渲染器rend
2017-08-13 15:55:14
2995
原创 FFMPEG 用H264编码封装mp4 有声音无图像。或者解码错误
那是因为解码时用到的sps,pps信息缺失。 out_stream = avformat_new_stream(ptrBoxObj->ofmt_ctx, NULL); if (!out_stream) { av_log(NULL, AV_LOG_ERROR, "Failedallocating output stream\n"); return AVERROR_UNKNO
2017-04-01 10:48:22
4926
1
原创 含有中文字符的json对象通过jquery提交到mongoose web的乱码问题
这个函数是把html的表单对象转换为Json对象(function($){ $.fn.serializeJson=function(){ var serializeObj={}; $(this.serializeArray()).each(function(){ serializeObj[this.name]=this.value; }); return seriali
2016-06-27 08:45:52
1233
转载 boost 解决中文乱码问题
用ptree即可,不用wptree,需要修改一串代码 G:\第三方源码\boost_1_57_0\boost\property_tree\detail\json_parser_write.hpp namespace boost { namespace property_tree { namespace json_parser{ // Create necessar
2015-04-17 15:29:07
2704
ubuntu上,java用的JNI AAC编码库
2023-03-10
vc2019编译的所有libssh2的静态库和动态库,包含所有debug版和release的win32和x64版本
2023-03-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人