随笔分类 - 视频应用开发
摘要:肤色检测、磨皮、锐化、美白算法都比较成熟了,只要选对方案,针对平台作进一步优化即可。 一、磨皮篇 此处感谢imageshop,更多的内容可以参考他的的博文。 尝试过双边滤波,利用空间位置关系和像素值的双边关系,对其进行低通高斯滤波处理,opencv里面有内置的功能,而且针对CPU等进行了优化,无奈速
阅读全文
摘要:今年音频没事干了,根据业务需求,调研音视频p2p通信,减小服务器压力,一切从0开始。 需要信令服务器,打洞服务器,帮助链接打通双方,实现p2p音视频通信。 服务器和客服端交互等都需要实现。 谷歌webrtc里面有个安卓的demo apprtc: WebRTCDemo可以直接做成P2P的效果,AppR
阅读全文
摘要:#pragma once#include #include class CLogger{public: static CRITICAL_SECTION m_cs;//保证所有的对象都能访问到它public: CLogger(); ~CLogger(); static int logger_t...
阅读全文
摘要:MP4Mix *mix = NULL; mix = new MP4Mix(); bool mix_ret = true; const char* h264_file ="temp/temp.h264"; const char* aac_file ="temp/temp.AAC"; co...
阅读全文
摘要:// faad2.cpp : 定义控制台应用程序的入口点。#include "stdafx.h"#include #include #pragma comment(lib, "libfaad2.lib")#include #include #include //#ifdef UNICODE//t...
阅读全文
摘要:// faacode.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include typedef unsigned long ULONG;typedef unsigned int UINT;typedef unsigned char...
阅读全文
摘要:// PlayVideo.cpp : Defines the entry point for the console application.//extern "C"{#include #include #include #include #include #include #include };#...
阅读全文
摘要:extern "C"{#include #include #include #include #include #include #include };#include #include #include #include #pragma comment(lib, "libmingwex.lib")...
阅读全文
摘要:#ifdef _INTERFACE_H#error _INTERFACE_H has be exsisted#else#define _INTERFACE_H#include "stdafx.h"//类型定义在这个文件中#include "stdlib.h"#include "windo...
阅读全文
摘要://初始化、注册编解码器avcodec_init();av_register_all();avformat_network_init();//选取测试文件char* FileName = "test.rmvb";AVFormatContext *pFormatCtx;if(av_open_input...
阅读全文
摘要://初始化、注册编解码器avcodec_init();av_register_all();avformat_network_init();//选取测试文件char* FileName="test.mp4";string strFileName(FileName);WavMaker test(Audi...
阅读全文