Leehm

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

2022年5月11日

摘要: 最近遇到一问题: 使用std::unique_ptr报错:memory:error invalid application of 'sizeof' to incomplete type '***' 排查后,不使用std::unique_ptr就ok。 使用的std::unique_ptr包装的类型是 阅读全文
posted @ 2022-05-11 10:03 Leehm 阅读(1597) 评论(0) 推荐(0) 编辑

2021年10月9日

摘要: 遇到webrtc只能播放264 baseline 的profile的情况,high profile播放不出来,暂时留作记录,继续研究 FFmpeg基础知识之————H264编码profile & level控制 https://www.cnblogs.com/lidabo/p/7419393.htm 阅读全文
posted @ 2021-10-09 19:54 Leehm 阅读(459) 评论(0) 推荐(0) 编辑

2021年10月8日

摘要: PTS、DTS 如果视频里各帧的编码是按输入顺序(也就是显示顺序)依次进行的,那么解码和显示时间应该是一致的。可事实上,在大多数编解码标准(如H.264或HEVC,当出现B帧的时候)中,编码顺序和输入顺序并不一致。 对于I帧和P帧,其解码顺序和显示顺序是相同的,但B帧不是,如果视频流中存在B帧,那么 阅读全文
posted @ 2021-10-08 16:10 Leehm 阅读(319) 评论(0) 推荐(0) 编辑

摘要: 1. go env查看环境变量 设置某个项的值:如 go env -w GO111MODULE=on 2. helloworld.go package main import "fmt" func main() { fmt.Println("Hello, World!")} 编译:go build 阅读全文
posted @ 2021-10-08 13:54 Leehm 阅读(1300) 评论(0) 推荐(0) 编辑

2021年7月23日

摘要: 何为breakpad: 如果你的程序是C++程序,crash的时候无所适从,那么你可以考虑使用一下看看 https://blog.csdn.net/fengyulinde/article/details/81707346 1 准备: 库,代码,编译好 ./configure && make make 阅读全文
posted @ 2021-07-23 13:39 Leehm 阅读(1524) 评论(1) 推荐(0) 编辑

2021年6月30日

摘要: 可执行程序间接依赖libfdk-aac.so.1 背景: 1. 编译ffmpeg动态库,加载第三方so动态库libfdk-aac.so.1(都是开源的,提前按照文档已编译好,机器1上) 2. cmake编译可执行程序test,使用ffmpeg so库(机器2上面,系统与1版本一样,so库全部copy 阅读全文
posted @ 2021-06-30 12:09 Leehm 阅读(1390) 评论(0) 推荐(0) 编辑

2021年6月22日

摘要: https://github.com/ZLMediaKit/ZLMediaKit 快速开始:https://github.com/ZLMediaKit/ZLMediaKit/wiki/%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B 1. 请不要使用github下载zip包的 阅读全文
posted @ 2021-06-22 14:35 Leehm 阅读(2164) 评论(0) 推荐(0) 编辑

2021年1月24日

摘要: 1. 请写出 BOOL flag 与“零值”比较的 if 语句 if ( flag ) if ( !flag ) 请写出 char *p 与“零值”比较的 if 语句 if (p == NULL) if (p != NULL) 2. 请写出 float x 与“零值”比较的 if 语句 const 阅读全文
posted @ 2021-01-24 19:29 Leehm 阅读(184) 评论(0) 推荐(0) 编辑

2020年9月22日

摘要: 以前都很顺利,突然报错,看似是认证没通过,也配置也用户密码,还是不行,折腾好久,记录一下: 配置过程: 安装 sudo apt-get install samba sudo apt-get install cifs-utils 改配置 sudo vim /etc/samba/smb.conf 最后添 阅读全文
posted @ 2020-09-22 15:04 Leehm 阅读(4344) 评论(1) 推荐(1) 编辑

2020年8月10日

摘要: 什么是h264 1. H.264是一种高性能的视频编解码技术 目前国际上制定视频编解码技术的组织有两个:ITU和ISO/IEC。 ITU: International Telecommunication Union “国际电信联盟”, ISO: 就是“国际标准化组织”,ISO9001质量认证那个, 阅读全文
posted @ 2020-08-10 10:05 Leehm 阅读(1095) 评论(0) 推荐(0) 编辑