- 博客(28)
- 资源 (6)
- 收藏
- 关注
转载 rtmp 推送h264 + aac 的数据
需要libfaac,librtmp 的支持,1、帧的划分1.1 H.264帧对于H.264而言每帧的界定符为00 00 00 01或者00 00 01。比如下面的h264文件片断这就包函三帧数据00 00 00 01 67 42 C0 28 DA 01 E0 08 9F 96 10 0000 03 00 10 00 00 03 01 48 F1 83 2A
2015-08-25 00:42:32 138
原创 FAAC转换PCM为AAC
FAAC的代码抠出来,直接加到我们的工程中去,或者抠出来编译一个静态库,需要的代码是libfaac和include两个目录下的所有文件(不包括子目录文件)。 目录文件列表如下所示:aacquant.caacquant.hbackpred.cbackpred.hbitstream.cbitstream.hchannels.cchannels.hcoder.hfaac.hf
2015-08-25 00:38:59 1998
原创 Ubuntu之常用命令
1.系统升级~#do-release-upgrade2.安装ssh~#sudo apt-get install openssh-server3.更新工具包~#apt-get update
2015-08-24 09:04:37 379
转载 python通过get方式,post方式发送http请求和接收http响应-urllib urllib2
python通过get方式,post方式发送http请求和接收http响应--import urllib模块,urllib2模块, httplib模块 测试用CGI,名字为test.py,放在apache的cgi-bin目录下:#!/usr/bin/pythonimport cgidef main(): print "Cont
2015-08-21 16:25:03 391
原创 IndentationError: unexpected indent python
IndentationError: unexpected indent python python是对格式要求很严格。 今天遇到了IndentationError: unexpected indent错误: 在windows下的tab并不等同于多个空格
2015-08-21 16:23:53 436
原创 vs2013快捷键
1.回到上一个光标位置/前进到下一个光标位置 1)回到上一个光标位置:使用组合键“Ctrl + -”; 2)前进到下一个光标位置:“Ctrl + Shift + - ”。 2.向前/向后搜索 1)使用组合键“Ctrl+I”; 2)键入待搜索文本(将光标移至搜索词输入框位置即可开始输入); 3)键入搜索文本后,可以使用组合键“Ctrl+I”及“Ctrl+Shift+I”前后定
2015-08-13 15:31:21 264
原创 python解析json文件
参考python内部的json文档:python>>> help(json)或者官方文档:http://docs.python.org/library/json.html#module-json下面给出一个使用python解析json的简单例子:#!/usr/bin/pythonimport json#Function:Analyze json
2015-08-12 21:32:01 393
原创 src/box.cpp:151: undefined reference to `operator new[](unsigned int)'
[root@demo arm]# makearm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/box.o ..//src/box.cpp -I./libs/hisiv300-hi3516a-mpp030/include/ -Dhi3516a -DHICHIP=0x3516A1
2015-08-11 15:16:19 4325
原创 hi3516a之makefile
编译文件很重要,特别是链接一些开源库,需要提前配置好,并且放到交叉编译环境下[root@demo arm]# makearm-hisiv300-linux-gcc -O2 -g -I/home/Hi3516A/demo/openssl-1.0.1p/include/ -c -o objs/box.o ..//src/box.cpp -I./libs/hisiv300-hi3516a-mpp
2015-08-11 15:09:55 1573
原创 无法定位序数 xxxx 与动态链接库 avcodec-55.dll上
vs2008 做一个基于ffmpeg的解码模块,debug下调试没有发现问题, 但是在release下运行时提示如下错误:无法定位序数 xxxx 与动态链接库 avcodec-55.dll上最终找到了问题的解决办法: release 项目属性中-----》连接器----》优化 选项中选择:保留未引用数据
2015-08-10 13:49:46 800
原创 DVR/NVR解决方案
市场上应用最多的主控芯片( 编码芯片)海思系列:HI3515 400MHZ/ {; `/ @. D" D7 k4 dHI3515A 600MHZHI3520 600MHZ( |9 X1 a4 ~1 cHI3520D 660MHZHI3520A 930MHZ0 b) k( ?& V3 s
2015-08-10 12:05:35 2970
转载 嵌入式linux usb wifi移植[s3c6410平台 转载]
http://blog.chinaunix.net/uid-8048969-id-3251135.html
2015-08-10 12:02:17 655
转载 Linux查看glibc版本信息
1 centos(以centos 6.0为例):(1) 可通过rpm -qa | grep glibc查看系统目前安装了哪些和glibc有关的包:[root@Cluster ~]# rpm -qa | grep glibcglibc-2.12-1.47.el6_2.12.i686glibc-headers-2.12-1.47.el6_2.12.x86_64
2015-08-10 09:13:24 3137
原创 Linux下用ifconfig命令设置IP、掩码、网关
设置IP和掩码: ifconfig eth0 192.168.1.168 netmask 255.255.255.0设置网关: route add default gw 192.168.1.1 (即时生效)查看网关: ip route show查看DNS: cat /etc/resolv.conf
2015-08-10 08:33:18 1134
原创 hi3516a之查看相关输入信息
Hi3516a 信号中断 ~ # cat /proc/umap/vi平台相关驱动已经加载:# lsmod 平台相关驱动已经加载:# cat /proc/mtd# printenv# cat /proc/cpuinfo
2015-08-07 11:52:33 1601
原创 安装7-Zip
在SHH或者终端下输入:[root@localhost SDK]#yum –y install p7zip(如果提示找不到资源,则要自己下载编译安装,命令如:)[root@localhost SDK]#wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_9.20.1_src_all.tar.bz2[root
2015-08-07 10:45:43 666
原创 hi3516a之交叉编译rtmpdump
[root@demo rtmpdump]# make SYS=posix CROSS_COMPILE=arm-hisiv300-linux- INC=-I/usr/includemake[1]: Entering directory `/home/Hi3516A/Demo/rtmpdump/rtmpdump/librtmp'arm-hisiv300-linux-gcc -Wall -I/
2015-08-06 10:18:38 5571
原创 hi3516a之faac
[root@demo faac-1.28]# ./configure --target=arm-linux --host=arm-hisiv300-linuxconfigure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then
2015-08-06 09:23:31 1244
原创 hi3516a之开发环境搭建
本人使用centos6.5开发1.安装centos6.5操作系统2.安装交叉编译环境[root@demo home]# cd Hi3516A/[root@demo Hi3516A]# lsDemo p7zip SDK[root@demo Hi3516A]# cd SDK/[root@demo SDK]# ls00.hardware Hi3516A/Hi3516
2015-08-05 13:57:39 2861
原创 srs之http_hooks
在我看来srs内嵌的http完全可以取代nginx。废话少说,先说如何使用:编译的时候必须开启相关选项[root@localhost trunk]# ./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode --with-http-callback --with
2015-08-05 13:36:16 5012
原创 srs之ffmpeg
编译时开启ffmpeg功能:[root@localhost trunk]# ./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode --with-dvr --with-ingest && make转码可以添加很多功能,比如添加水印(文字、图片、logo
2015-08-05 13:27:35 3163 1
原创 srs之rtmp
已经有很多文章详细介绍rtmp,此处不做赘述。srs的rtmp使用起来特别简单,只需要做简单的配置,如:listen 1935;#srs_log_level trace;vhost __defaultVhost__ { enabled on;gop_cache off;queue_length 1;}即可进行rtmp分发。
2015-08-05 13:24:46 1444 1
原创 srs之hls
srs1.0: hls { enabled on; hls_path ./objs/nginx/html; hls_fragment 3; hls_window 5; }srs2.0: hls { enabled
2015-08-05 13:23:16 1760
原创 srs之dvr
录像存储功能srs1.0: dvr {enabled on;dvr_path ./objs/nginx/html;dvr_plan segment;dvr_duration 3600;}srs2.0:dvr { enabled on; #dvr_path
2015-08-05 13:15:35 5005
原创 srs之ingest
1.使用ingest功能之前必须编译开启ingest[root@localhost trunk]# ./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode --with-dvr --with-ingest && make2.配置ingest.conf
2015-08-05 13:11:01 2407 2
原创 clistbox获取选中值,同时打开iexplore
void OnBnClickedBtnOpenUrl(){CString strIp;int nSel = m_lv_search_result.GetCurSel();if(nSel>=0){m_lv_search_result.GetText(nSel, strIp);}else{MessageBox("请选择一行",0,MB_OK);return;
2015-08-05 10:35:10 480
原创 CString作为Key使用CMap
CString作为Key使用CMapCListBox m_lv_search_result;CMap m_map_search_result;int AddMap(CString key){int iValue = -1;if (m_map_search_result.Lookup(key, iValue)){//existreturn -1;}
2015-08-05 10:09:55 497
android-studio-bundle-135.1740770-windows官网最新版
2015-03-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人