ffmpeg基本杂谈_20171116
AVFrame用于存储原始音视频数据、也包含字幕数据。 原始数据是指:解码后数据、或是编码前的数据。 音频:一段原始WAV(或未压缩的PCM)音频数据。 视频:一帧图像、一个图片。 字幕:一个时间段内的一句或是几句话。 AVPacket用于存储字节流数据,包含音视频、字幕、附件信息等等。 字节流数据是指:编码后数据、或是解码前数据、或是要封装的数据、或是封装解析后的数据。 数据:字节流数据包。 ## FFmpeg KS [编解码] pict_type帧类型(I,P,B,S,SI,SP) 音频:字节流 -> 编码 -> 数据帧 AVPacket 准备封装/协议处理的数据流: int64 pts 显示时间 int64 dts 编解码时间/解码顺序 duration 持续时间 pos 容器中的位置 ## FFmpeg KS [AVPacket] uint8_t *data; //字节流数据 int size; //数据大小 int64_t 11, 0.10, 0.9, 0.8, 0.7, 0.6 and 0.5 branches is also available. ## 小结 ## FFmpeg KS : AVFrame、AVPacket、AVCodec、AVCodecContext、AVInputFormat、AVOutputFormat、AVFormatContext、AVStream、SwrContext、SwsCont0 码力 | 55 页 | 20.91 MB | 2 年前3
共 1 条
- 1













