当前位置:网站首页>【读书会第13期】视频文件的封装格式
【读书会第13期】视频文件的封装格式
2022-06-28 20:36:00 【华为云】
视频文件的封装格式
FFmpeg 支持很多封装格式,包括MP4、FLV、MKV、TS 等视频封装格式、MP3、AAC 等音频封装格式以及RTMP、RTSP、HLS 等网络协议封装格式。
课程里重点介绍了MP4 视频封装格式。其中一个MP4文件由多个box组成,
每个box存储不同的信息,且box之间会出现嵌套。MP4的box有很多,但最重要的顶层box主要有如下三个:
ftyp:
File Type Box,描述文件遵从的MP4规范与版本,一般位于文件开始位置,其中包含了MP4 视频文件的类型、版本、兼容协议等信息。
moov:
Movie Box,媒体的metadata信息,有且仅有一个。moov 容器中包含了MP4 视频文件的媒体数据信息,内部又包含两个子容器:mvhd和trak,前者定义了文件头信息,后者定义了媒体文件中的track信息。moov 容器一般默认会生成在MP4 文件结尾,在线播放时需要加载完整个文件才能正常打开,为了能够快速打开视频,需要把moov 容器放在MP4 文件的前面。
mdat:
Media Data Box,存放实际的媒体数据,一般有多个
每个box有两部分组成:box header 和 box Data。
box header:
box的元数据,比如box type、box size。
box Data:
box的数据部分,实际存储的内容跟box类型有关,比如mdat中body部分存储的媒体数据。
当box body中嵌套其他box时,这样的box叫做container box。
整体讲解的还是比较详细,就是博主声音太小,听不清。
边栏推荐
- Explanation of memory dump triggered by software watchdog and anr
- 我也差点“跑路”
- Lecture 30 linear algebra Lecture 4 linear equations
- 如何使用 DataAnt 监控 Apache APISIX
- 1. integrate servlets
- The principle and source code analysis of Lucene index construction
- Lucene构建索引的原理及源代码分析
- 如何做好客户成功的底层设计|ToB大师课
- 员工薪资管理系统
- Stability summary
猜你喜欢

Lucene构建索引的原理及源代码分析

方 差 分 析

应用实践 | 10 亿数据秒级关联,货拉拉基于 Apache Doris 的 OLAP 体系演进(附 PPT 下载)

LeetCode每日一题——515. 在每个树行中找最大值

UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation

图神经网络也能用作CV骨干模型,华为诺亚ViG架构媲美CNN、Transformer

Bitbucket 使用 SSH 拉取仓库失败的问题

Day88. qiniu cloud: upload house source pictures and user avatars

openGauss内核分析之查询重写

APISIX 助力中东社交软件,实现本地化部署
随机推荐
穩定性總結
Relevant calculation of sphere, etc
SaaS sales upgrade under the new situation | tob Master Course
On the complexity of software development and the way to improve its efficiency
Anr problem - camera related debug
How to recover after Oracle delete accidentally deletes table data
Characters and integers
【学习笔记】因子分析
【毕业季·进击的技术er】努力只能及格,拼命才能优秀!
数据标准化处理
Pipeline | and redirection >
Can layoffs really save China's Internet?
酷学院华少:如何在SaaS赛道里做成一家头部公司
题解 The Blocks Problem(UVa101)紫书P110vector的应用
Visualization of neural network structure in different frames
odoo15 Module operations are not possible at this time, please try again later or contact your syste
[learning notes] factor analysis
03.hello_rust
Lecture 30 linear algebra Lecture 4 linear equations
Keyword long