当前位置:网站首页>h264 protocol
h264 protocol
2022-08-09 13:03:00 【Know 12】
h264 data consists of a Nalu header and bare stream
h264 protocol frame header data is often sps and pps
A complete h264 stream (excluding B-frames) consists of the following parts:
1.sps
The common value is 00 00 00 01 67, which contains the sequence parameters of this batch of images
2.pps
The common value is 00 00 00 01 68, which contains the parameters contained in a frame highlighting
3.sei
The common name is 00 00 00 06 05, which contains some supplementary information
3.I frame
Commonly it is 00 00 00 01 65, which is the key frame. When decoding, we only need to decode this frame.
4.P frame
Commonly it is 00 00 00 01 41, the difference from the previous frame is recorded here, and the previous frame can be superimposed
Only one thread is used here, ret is 1 frameThe data, x264Encoder.m_pX264Nals[i].i_payload is the payload data, Each key frame consists of 4 Nalu:
The first one is sps, which has 31 bytes
The second is pps, with 8 bytes
The third is sei, with 596 bytes
The fourth is I frame, this picture is 1085 bytes
KeyAfter the frame is the P frame: you can see that the latter P frame has 36988 bytes
Here is what the decoding tool sees:
边栏推荐
- Apexsqlrecover无法连接数据库
- 2022 Niu Ke Duo School (6) M. Z-Game on grid
- 推荐一个免费50时长的AI算力平台
- 【Adobe Premiere Pro 2020】pr2020安装和基本操作【PR安装、新建项目流程、导入及管理素材项目文件、添加标记、创建出入点剪辑视频、快速剪接及自动音乐卡点的方法
- API调用,API传参,面向对接开发,你真的会写接口文档吗?
- JS 封装节流(后期优化)
- 1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点
- Blocking, non-blocking, multiplexing, synchronous, asynchronous, BIO, NIO, AIO all in one pot
- 二重指针-char **、int **的作用
- ABAP 报表中如何以二进制方式上传本地文件试读版
猜你喜欢
随机推荐
Blocking, non-blocking, multiplexing, synchronous, asynchronous, BIO, NIO, AIO all in one pot
阻塞、非阻塞、多路复用、同步、异步、BIO、NIO、AIO 一锅端
JS封装防抖(代码持续优化)
研发需求的验收标准应该怎么写? | 敏捷实践
WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
脱光衣服待着就能减肥,当真有这好事?
#物联网征文#小熊派设备开发实战
微信一面:一致性哈希是什么,使用场景,解决了什么问题?
proto3-2 syntax
Recommend a free 50-hour AI computing platform
Scala 高阶(七):集合内容汇总(上篇)
推荐一个免费50时长的AI算力平台
GRPC整体学习
LeetCode_单调栈_中等_456.132 模式
报告:想学AI的学生数量已涨200%,老师都不够用了
十分钟教会你如何使用VitePress搭建及部署个人博客站点
西湖大学教授怎么看AI制药革命?|量子位智库圆桌实录
张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来
专业人士使用的 11 种渗透测试工具
在北极都可以穿短袖了,温度飙升至32.5℃