当前位置:网站首页>走进音视频的世界——FLV视频封装格式
走进音视频的世界——FLV视频封装格式
2022-07-28 13:08:00 【徐福记456】
FLV全称为Flash Video,是一种流媒体视频格式。特点是体积小、封装简单、方便存储与传输。常见的http-flv推流直播就是使用flv格式,rtmp推流也默认支持flv格式。FLV和RTMP都是adobe公司开发的。
1、FLV整体结构
FLV是由Header和Body组成。其中Body由一系列Tag构成,包括Video、Audio、Script等。如下图所示:

2、FLV的Header结构
FLV的Header包括:签名、版本号、保留字段、音频flag、视频flag、文件头大小。其中,文件头大小默认是9字节。需要注意的是,bit与byte单位转换。如下表所示:

3、Tag的Header结构
Tag的Header包括:类型、大小、时间戳、扩展时间戳、流id,如下表所示:

4、FLV的视频Tag
FLV的视频Tag字段包括:帧类型、编码类型、视频payload数据。其中,帧类型和编码类型各占4位。如下表所示:

5、FLV的音频Tag
FLV的音频Tag字段包括: 音频格式、采样率、采样精度、声道数、音频payload数据。其中,音频格式占4位,采样率占2位,采样精度和声道数各占1位。如下表所示:

边栏推荐
- 掌握常见的几种排序-选择排序
- R语言ggplot2可视化:使用ggpubr包的ggviolin函数可视化小提琴图、设置draw_quantiles参数添加指定分位数横线(例如,50%分位数、中位数)
- DOJNOIP201708奶酪题解
- R language test sample proportion: use prop The test function performs the single sample proportion test to calculate the confidence interval of the p value of the successful sample proportion in the
- 论文研读--Masked Generative Distillation
- 了解虚拟列表背后原理,轻松实现虚拟列表
- Vite configuring path aliases in the project
- vite在项目中配置路径别名
- 正则表达式
- Several efficient APIs commonly used in inventory operation URL
猜你喜欢

30 day question brushing training (I)
![[basic course of flight control development 7] crazy shell · open source formation UAV SPI (barometer data acquisition)](/img/ad/e0bc488c238a260768f7e7faec87d0.png)
[basic course of flight control development 7] crazy shell · open source formation UAV SPI (barometer data acquisition)

RSA用私钥加密数据公钥解密数据(不是签名验证过程)

30 day question brushing plan (II)

Jmeter安装教程及登录增加token

7. Dependency injection

Security assurance is based on software life cycle -psp application

第六章 支持向量机

30天刷题计划(三)

Operator3 - design an operator
随机推荐
To build agile teams, these methods are indispensable
Tutorial on the principle and application of database system (062) -- MySQL exercise questions: operation questions 32-38 (6)
记一次COOKIE的伪造登录
strcmp、strstr、memcpy、memmove的实现
【飞控开发基础教程7】疯壳·开源编队无人机-SPI(气压计数据获取)
R语言使用lm函数构建多元回归模型(Multiple Linear Regression)、并根据模型系数写出回归方程、使用confint函数给出回归系数的95%置信区间
Machine learning (Zhou Zhihua) Chapter 6 notes on Support Vector Learning
Using fail2ban to protect web servers from DDoS Attacks
浅谈WebSocket
leetcode(442)数组中重复的数据
【Try to Hack】HFish蜜罐部署
Chapter 6 support vector machine
DOJP1520星门跳跃题解
[security] read rfc6749 and understand the authorization code mode under oauth2.0
Deploy application delivery services in kubernetes (Part 1)
【服务器数据恢复】HP StorageWorks系列服务器RAID5两块盘离线的数据恢复
word打字时后面的字会消失是什么原因?如何解决?
最强分布式锁工具:Redisson
软件测试技术之如何编写测试用例
The strongest distributed locking tool: redisson