container codec到底什么关系

来源:百度知道 编辑:UC知道 时间:2024/06/04 20:02:48
视频中的容器和编码到底什么区别?
能解释一下为什么要分为容器和编码吗?还没没搞明白

视频中的Codec,container format的含义 Codec是什么?在数字视频领域,用的名称叫“多媒体数字信号编码解码器”. 它指的是以一种视频传输中的标准的编码解码方法.如我们所熟知 的:MPEG-1, MPEG-2,MPEG-4....
而container format,是一种承载视频的格式,如名字所理解的,它可能像一种容器格式. 比如,像我们所使用的avi,mpg,mov等等.而其视频是用什么方式进行编码解码的,则与上面所述的Codec相关了.

以下是VideoLAN.org中对它们的解释:

What is a codec ?
To fully understand the VideoLAN solution, you must understand the difference between a codec and a container format

A codec is a compression algorithm, used to reduce the size of a stream. There are audio codecs and video codecs. MPEG-1, MPEG-2, MPEG-4, Vorbis, DivX, ... are codecs

What is a container format ?
To start off, think of a container format as a standard shipping box. You get a box in the mail and you think, "Cool! What's inside." You don't really care about the box itself, you care about what's in that box. The problem? You can't see into the box. So what do you do? You get a knife and cut it open.

A