C++音视频

代码改变世界

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2022年2月22日

摘要: 0. 前言 FLV 是 flash video 的缩写,是 Adobe Flash payler 支持的一种流媒体播放格式。flv文件格式的官方文档 Adobe Flash Video File Format Specification Version 10.1 的附录E里。 flv文件格式由flv 阅读全文
posted @ 2022-02-22 22:09 shunxiang 阅读(885) 评论(0) 推荐(0)

摘要: 说明:这是RTMP协议官方文档 rtmp_specification_1.0.pdf 的一个翻译,其中肯定有很多错误。官方文档地址:https://wwwimages2.adobe.com/content/dam/acom/en/devnet/rtmp/pdf/rtmp_specification_ 阅读全文
posted @ 2022-02-22 16:42 shunxiang 阅读(286) 评论(0) 推荐(0)

摘要: 对大华和海康的设备使用VLC播放抓包,分析如下 ##大华IPC的RTSP抓包 使用vlc(V3.0.4)播放抓包 #<<<<<< client发起OPTIONS请求 OPTIONS rtsp://192.168.35.52:554/stream/live?channel=1&type=0 RTSP/ 阅读全文
posted @ 2022-02-22 10:35 shunxiang 阅读(1288) 评论(0) 推荐(0)

2022年2月14日

摘要: 最近需要研究一下zlmediakit+wvp-gb28181实现gb28121的流媒体协议,上周五,在编译(执行npm install命令)wvp-gb28181静态页面的时候,出现了 npm does not support Node.js v16.14.0警告,进而出现了编译错误。 我按照百度出 阅读全文
posted @ 2022-02-14 10:24 shunxiang 阅读(1532) 评论(0) 推荐(0)

2022年1月30日

摘要: 方案采用apache+cgi+python+mysql+wordpress(可选的) 安装apache2 apache原指http server程序,后来成为了该程序的组织名,所以把原程序名定成了httpd,在2.0版后又叫apache2。目前在windows上还叫 httpd,在debian/ub 阅读全文
posted @ 2022-01-30 11:13 shunxiang 阅读(757) 评论(0) 推荐(0)

2022年1月21日

摘要: 编译mysqlClient需要cmake,确定Linux主机安装了cmake,如果没有安装,可以使用sudo apt-get install cmake 下载后解压之 在CMakeLists.txt中添加交叉工具链 SET(CMAKE_CXX_COMPILER "arm-himix200-linux 阅读全文
posted @ 2022-01-21 17:46 shunxiang 阅读(681) 评论(0) 推荐(0)

2021年3月10日

摘要: 在做Onvif设备发现时,UDP使用setsockopt加入多播组时失败, ret_val = setsockopt(socket_fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *)&stru_merq, sizeof(stru_merq)); 失败信息,errn 阅读全文
posted @ 2021-03-10 16:25 shunxiang 阅读(672) 评论(1) 推荐(0)

2020年6月24日

摘要: 目录简介RTCP协议格式 简介 RTCP(RTP Control Protocol)实时传输控制协议,与 RTP 一起定义在 RFC1889(1996) 中, RTC1889 已废弃,最新标准是 RFC3550(2003)。RTCP 同 RTP一样,都是基于 TCP 或者 UDP 的应用层协议,RT 阅读全文
posted @ 2020-06-24 10:15 shunxiang 阅读(547) 评论(0) 推荐(0)

2019年7月6日

摘要: 最近的项目需要用vlc来做二次开发,于是需要编译vlc源码。在windows下开发,当然用VS(宇宙第一IDE,VS2017的安装包近20G)比较方便。用VS编译vlc挺费劲的,编译加上调试约一周时间,这个过程也很考验耐心的。需要感谢一下sunqueen(https://github.com/sun 阅读全文
posted @ 2019-07-06 02:02 shunxiang 阅读(2111) 评论(9) 推荐(0)

2019年6月16日

摘要: 1.YUV420P(YU12和YV12)格式 YUV420P又叫plane平面模式, YUV分别在不同平面,也就是有三个平面,它是YUV标准格式4:2:0,主要分为:YU12和YV12,YV12格式与YU12基本相同,首先是所有Y值,然后是所有V值,最后是所有U值,它们的方式如下: YU12(I42 阅读全文
posted @ 2019-06-16 12:11 shunxiang 阅读(1857) 评论(0) 推荐(0)

2019年3月17日

摘要: 新装的ubuntu系统安装软件: 1.ifconfig #sudo apt-get install net-tools 2.vim #sudo apt-get install vim 3.telnet 安装openbsd-inetd: sudo apt-get install openbsd-ine 阅读全文
posted @ 2019-03-17 13:00 shunxiang 阅读(158) 评论(0) 推荐(0)

2018年12月25日

摘要: http常用的认证方式 1、Basic认证2、Digest认证3、SSL Client认证4、表单认证 阅读全文
posted @ 2018-12-25 16:16 shunxiang 阅读(221) 评论(0) 推荐(0)

2018年10月24日

摘要: RTP协议定义在 RFC3550 https://tools.ietf.org/html/rfc3550。 RTP协议格式 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 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+- 阅读全文
posted @ 2018-10-24 16:56 shunxiang 阅读(872) 评论(0) 推荐(0)

2018年10月2日

摘要: 下载 源代码官网下载路路径:https://w1.fi/releases/ 下载到的文件是 wpa_supplicant-2.6.tar.gz ,解压,进入到wpa_supplicant文件夹中 #cp defconfig .config #vim .config 修改.config文件 CC=ar 阅读全文
posted @ 2018-10-02 15:35 shunxiang 阅读(1673) 评论(0) 推荐(0)

2018年10月1日

摘要: 编译live555的时候遇到了这个问题,前面的编译没有问题,是在链接的时候出现的,在网上搜索说是缺少 libstdc++ 库。于是,安装之 #sudo apt-get install libstdc++-dev 选择一个安装 #sudo apt-get install libstdc++-8-dev 阅读全文
posted @ 2018-10-01 00:03 shunxiang 阅读(14100) 评论(0) 推荐(0)

2018年9月26日

摘要: 出处: ISOIEC 13818-1 PS流: PS流由PSGOP组成,每个PSGOP是由I帧起始的多帧集合,每个GOP之间没有相互依赖信息,可以剪切拼接。 | PSGOP0 | PSGOP1 | PSGOP2 | PSGOP3 | PSGOP4 | ...... | PSGOP: PSGOP由一个 阅读全文
posted @ 2018-09-26 09:28 shunxiang 阅读(1344) 评论(0) 推荐(0)

2018年9月15日

摘要: #include <sys/time.h> #include <unistd.h> void print_time(void) { time_t curr_time; time(&curr_time); struct tm *ptm = localtime(&curr_time); struct t 阅读全文
posted @ 2018-09-15 16:42 shunxiang 阅读(264) 评论(0) 推荐(0)

2018年9月8日

摘要: 一,编译ncurses 编译mysql需要依赖ncurses,先编译ncurses 1.下载ncurses 下载路径是ftp://ftp.gnu.org/gnu/ncurses,选择下载的是ncurses-5.9.tar.gz。 2.解压,配置,编译,安装 配置参数如下: 编译安装,编译完成后,供编 阅读全文
posted @ 2018-09-08 11:13 shunxiang 阅读(713) 评论(0) 推荐(0)

2018年6月23日

摘要: Error: No available formula with the name "pygame" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is sha 阅读全文
posted @ 2018-06-23 23:46 shunxiang 阅读(2616) 评论(1) 推荐(0)

摘要: 安装服务 sudo apt-get install portmap sudo apt-get install nfs-kernel-server 配置: sudo nano /etc/exports 添加 , /home/pi/nfs 192.168.1.*(rw,sync,no_subtree_c 阅读全文
posted @ 2018-06-23 20:21 shunxiang 阅读(348) 评论(0) 推荐(0)