原创 debug打印,後臺跑,telnet上去也能看

#include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <errno.h> #define NONE "\033[m

原创 PELCO-D與PELCO-P協議

PELCO-D與PELCO-P協議 編輯 PELCO-D: 數據格式:1位起始位、8位數據、1位停止位,無校驗位。波特率:2400B/S 命令格式: 字節1 字節2 字節3 字節4 字節5 字節

原创 分離h265/h264裸流的幀

1、此模塊分離h265/h264裸流的幀 #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <fcntl.h> #include <stdio

原创 unsigned long long 大小端互轉

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #define ntoh

原创 使用google方法

1、下載hosts //解壓密碼 whosmall.com http://download.csdn.net/detail/codeheng/9792866 //實時更新hosts鏈接 http://whosmall.com/?po

原创 onvif框架生成2

1、下載好gsoap庫和wsdl文件,建立目錄結構如圖 2、進入generate_onvif_framework建立三個文件 工程下載地址:http://download.csdn.net/detail/codeheng/957

原创 onvif框架生成

一、下載gsoap 二、進入gsoap-2.8\gsoap\bin\win32, 並把gsoap-2.8\gsoap\typemap.dat拷貝到gsoap-2.8\gsoap\bin\win32下 1)由onvif官方的wsdl文件

原创 websocket頭解析

一、幀結構圖及含義 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2

原创 RTP打包H264

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <memory.h> #include <stdio.h> #include <stdlib.h> #

原创 利用ffmpeg移植到嵌入式計算poc

利用ffmpeg移植到嵌入式計算poc 1、修改 \ffmpeg-3.2.4\libavcodec\hevc.c 下方的函數需要屏蔽一些代碼 static int decode_nal_unit(HEVCContext *s, cons

原创 H265關於RTP封包

首先來介紹下h265(HEVC)nal單元頭,與h264的nal層相比,h265的nal unit header有兩個字節構成,如下圖所示: 從圖中可以看出hHEVC的nal包結構與h264有明顯的不同,hevc加入了nal所在的時間層的

原创 分解264/265裸流的幀

也可直接分解avi文件格式的 #include <sys/types.h> #include <sys/stat.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #i

原创 ffmpeg 編譯安裝

1、下載ffmpeg,解壓 tar -jxvf ffmpeg-3.2.4.tar.bz2 cd ffmpeg-3.2.4 ./configure --enable-static --disable-yasm //生成makefile 用靜

原创 一個通用鏈表模塊(C語言)

1)把所有DBG和ERR改成printf; 2)COMMOM_Malloc改成malloc; 3)COMMON_Free改成free; 4)所有的CHECK寫一個空的宏即可(原來作爲參數合法性檢查); 5)編譯Ok; #ifnde

原创 avi 格式解析

分析工具 RiffPad http://download.csdn.net/detail/codeheng/9793505 AVI:Audio/Video Interleaved(視音頻交織),用於採集、編輯、播放的RIFF文件。由Mi