13. FFmpeg
之Remuxing
重封装
官方样例:remuxing.c,官方文档:FFmpeg Formats Documentation
一、转码流程
1.1 视频封装协议
Protocol
: 协议,例如 HTTP/RTMP/FILEFormat
: 封装格式,例如 .mkv/.mp4/.mp3Codec
: 编码/解码,压缩数据,例如 h264/h265/aacPixel
: 原始数据帧,帧的像素格式(pixel format)例如,YUV420P, RGB24
1.2 流程图
参考: