C++音视频

代码改变世界

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

2023年12月28日

摘要: 交叉编译 libaac 库,源码下载地址 https://sourceforge.net/projects/faac/ 解压 unzip faac-1.28.zip cd faac-1.28.zip 执行./bootstrap 时出现如下错误 # ./bootstrap -bash: ./boots 阅读全文
posted @ 2023-12-28 17:18 shunxiang 阅读(43) 评论(0) 推荐(0) 编辑

2022年11月7日

摘要: 官方文档 https://registry.khronos.org/OpenXR/specs/1.0/loader.html 源码地址 https://github.com/KhronosGroup/OpenXR-SDK-Source 阅读全文
posted @ 2022-11-07 10:15 shunxiang 阅读(192) 评论(0) 推荐(0) 编辑

2022年7月15日

摘要: 查看cpu信息命令 cat /proc/cpuinfo hello@hello-MBX-TGL2R100:~/Desktop$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 140 mo 阅读全文
posted @ 2022-07-15 11:08 shunxiang 阅读(138) 评论(0) 推荐(0) 编辑

2022年5月25日

摘要: ffmpeg -i input.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 output.264 阅读全文
posted @ 2022-05-25 09:28 shunxiang 阅读(856) 评论(0) 推荐(0) 编辑

2022年4月20日

摘要: ubuntu好久没有使用了,使用apt-get install 安装软件,会出现很多错误 dpkg: warning: files list file for package 'mokutil' missing; assuming package has no files currently ins 阅读全文
posted @ 2022-04-20 17:19 shunxiang 阅读(845) 评论(0) 推荐(0) 编辑

摘要: 使用ffmpeg录音的时候遇到了以下错误 [dshow @ 0000022cea37f340] Could not find audio only device with name [麦克风 (Realtek High Definition Audio)] among source devices 阅读全文
posted @ 2022-04-20 09:52 shunxiang 阅读(662) 评论(2) 推荐(0) 编辑

2022年4月19日

摘要: 命令: ffmpeg -i 5C_16K.AAC -c:a pcm_alaw -f alaw -ac 1 -ar 8000 wav.pcma 阅读全文
posted @ 2022-04-19 18:37 shunxiang 阅读(1925) 评论(0) 推荐(0) 编辑

摘要: 命令如下 ffplay -i file.pcm -f s16le -ac 1 -ar 8000 ffplay -i file.g711a -f alaw -ac 1 -ar 8000 ffplay -i file.g711u -f mulaw -ac 1 -ar 8000 说明: -f #格式 -a 阅读全文
posted @ 2022-04-19 12:04 shunxiang 阅读(1274) 评论(0) 推荐(0) 编辑

2022年4月12日

摘要: 有时候遇到一些很长的字符串,包含很多"\r\n",将"\r\n"替换成换行后将方便查看。 如下是一个webrtc的offer字符串,很长,比较难查看。 v=0\r\no=- 8703962890197433920 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=gro 阅读全文
posted @ 2022-04-12 15:51 shunxiang 阅读(515) 评论(0) 推荐(0) 编辑

2022年3月10日

摘要: 背景 接上一篇文章,这次是fetch --nohooks webrtc失败了 fetch --nohooks webrtc curl: (7) Failed to connect to chrome-infra-packages.appspot.com port 443: Connection ti 阅读全文
posted @ 2022-03-10 21:59 shunxiang 阅读(2345) 评论(0) 推荐(0) 编辑

摘要: 背景 最近打算在ubuntu上编译webrtc代码,第一条命令就失败了,如下: git clone https://chromium.googlesource.com/chromium/tools/depot_tools Cloning into 'depot_tools'... fatal: un 阅读全文
posted @ 2022-03-10 21:54 shunxiang 阅读(742) 评论(0) 推荐(0) 编辑

2022年2月23日

摘要: 抓包环境,局域网两台电脑 阅读全文
posted @ 2022-02-23 14:59 shunxiang 阅读(150) 评论(0) 推荐(0) 编辑

摘要: flv文件格式协议见上一篇文章:flv格式 flv分析工具 flvmeta:flvmeta.com,flvmeta是一个可以操作flv文件格式的命令行工具。 1. 分析文件准备 我去网上下载了一个MP4文件,这个文件有300MB,太大了,winhex打开不方便,我使用ffmpeg截取了前面的10s片 阅读全文
posted @ 2022-02-23 14:23 shunxiang 阅读(462) 评论(0) 推荐(0) 编辑

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 阅读(758) 评论(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 阅读(207) 评论(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 阅读(1003) 评论(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 阅读(1446) 评论(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 阅读(669) 评论(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 阅读(454) 评论(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 阅读(551) 评论(1) 推荐(0) 编辑