2016年1月21日

linux 查找依赖库命令

摘要: ldconfigvim /etc/ld.so.confldd /opt/ffmpeg/lib//libavcodec.so //查找依赖库find / -name *jpeg* 阅读全文

posted @ 2016-01-21 19:13 wetung 阅读(1337) 评论(0) 推荐(0) 编辑

linux 安装ffmpeg库

摘要: 添加变量export FFMPEG_HOME=/opt/ffmpeg Yasm:wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz tar -zxvf yasm-1.3.0.tar.gz./configure -... 阅读全文

posted @ 2016-01-21 19:09 wetung 阅读(559) 评论(0) 推荐(0) 编辑

2016年1月20日

ffmpeg基本命令(转)

摘要: 1.分离视频音频流ffmpeg -i input_file -vcodec copy -an output_file_video //分离视频流ffmpeg -i input_file -acodec copy -vn output_file_audio //分离音频流2.视频解复用ffmpeg... 阅读全文

posted @ 2016-01-20 18:06 wetung 阅读(2847) 评论(0) 推荐(0) 编辑

2016年1月14日

冒泡排序python

摘要: 冒泡排序:从第一个数开始,依次比较后面的数,比较大小,然后交换位置,循环第一个数++,知道全部比较晚。效率:O(n2)如下:def bubble_sort(lists): count = len(lists) for i in range(0, count): for j ... 阅读全文

posted @ 2016-01-14 15:46 wetung 阅读(190) 评论(0) 推荐(0) 编辑

2016年1月10日

C++ STL 教程

摘要: C++ STL(标准模板库)是一套功能强大的 C++ 模板类,提供了通用的模板类和函数,这些模板类和函数可以实现多种流行和常用的算法和数据结构,如向量、链表、队列、栈。C++ 标准模板库的核心包括以下三个组件:组件描述容器(Containers)容器是用来管理某一类对象的集合。C++ 提供了各种不同... 阅读全文

posted @ 2016-01-10 19:22 wetung 阅读(692) 评论(0) 推荐(0) 编辑

2015年12月30日

librtmp rtmpdump nginx-rtmp-moldue

摘要: 未完待续 阅读全文

posted @ 2015-12-30 17:41 wetung 阅读(199) 评论(0) 推荐(0) 编辑

linux 安装opencv2.4.9

摘要: 一、安装1 安装cmake及一些依赖库sudo apt-get install cmakesudo apt-get install build-essential libgtk2.0-dev libavcodec-devlibavformat-dev libjpeg.dev libtiff4.dev... 阅读全文

posted @ 2015-12-30 15:51 wetung 阅读(2249) 评论(0) 推荐(0) 编辑

2015年12月29日

linux 查看磁盘空间命令

摘要: (1)查看文件大小查看当前文件夹下所有文件大小(包括子文件夹)du-sh#du-h15M./package16K./.fontconfig4.0K./.cache5.1M./.rpmdb20M.查看指定文件夹下所有文件大小(包括子文件夹)#du-hftp3.8Gftp/sanya/doc3.8Gft... 阅读全文

posted @ 2015-12-29 13:45 wetung 阅读(1499) 评论(0) 推荐(0) 编辑

2015年12月28日

Python调用C/C++动态链接库的方法

摘要: 本文以实例讲解了Python调用C/C++ DLL动态链接库的方法,具体示例如下:示例一:首先,在创建一个DLL工程(本例创建环境为VS 2005),头文件://hello.h#ifdef EXPORT_HELLO_DLL#define HELLO_API __declspec(dllexport)... 阅读全文

posted @ 2015-12-28 16:19 wetung 阅读(427) 评论(0) 推荐(0) 编辑

2015年12月27日

C++ 深拷贝与浅拷贝

摘要: 最近看了一篇腾讯c++校招面试题,忽然勾起我当初学c++的痛苦与快乐,决定再研究一下,题目如下: 以下代码是否完全正确,执行可能得到的结果是____。C++class A{ int i;};class B{ A *p;public: B(){p=new A;} ~B(){delet... 阅读全文

posted @ 2015-12-27 21:05 wetung 阅读(308) 评论(0) 推荐(0) 编辑

导航