[string global_cpnav_top]
设为首页收藏本站[string global_cpnav_extra1]
[string global_cpnav_extra2]切换到宽版
[ad headerbanner/wp a_h]

 找回密码
 立即注册
[string global_login_extra]

QQ登录

只需一步,快速开始

[ad subnavbanner/a_mu]
搜索
[string global_header]
[string viewthread_top] [ad text/wp a_t]
视频经验总索引TVMW5/小日本5 索引【视频转换】小日本4/TE4XP 索引【视频转换】TAW4 / TDA3 索引【DVD打包软件】
Nero 索引DVD-LAB 索引【DVD打包软件】编解码器 索引【必读】固顶帖011号!
123下一页
返回列表 发新帖[string viewthread_postbutton_top]
[string viewthread_beginline]
查看: 31415|回复: 28

[教程] [原创] 视频的“分离”与“合成”、“编码”与“解码”浅析【兼谈合成器、容器、分离器】

 荐  火 [复制链接] [string viewthread_title_extra]
[string viewthread_title_row]
[array viewthread_avatartop/0]
[array viewthread_avatar/0]
  • 打卡等级:本地老炮
[array viewthread_sidetop/0]

9337

威望

7452

金钱

1万

贡献

管理员

自由的灵魂

积分
107438
主题
5631
回帖
26662
注册时间
2003-4-10
最后登录
2026-10-2
[array viewthread_sidebottom/0]
发表于 2009-2-13 00:37:32 | 显示全部楼层 |阅读模式 [array viewthread_postheader/0]
[ad thread/a_pt/2/0]
[array viewthread_posttop/0]
[ad thread/a_pr/3/0]

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册 [string global_login_text]

×
【扫盲帖,或许不专业,请高手斧正】

对媒体流的处理分为两种:“编码(encoding)”和“解码(decoding)”。编码指的是通过一定协议或规则把一段声音或图像转化成计算机数字文件的过程。而解码恰恰是编码的反面——把编码过的媒体文件重新转化成声音或图像。

用来执行编码工作的软件叫“编码器”(Coder 或 Encoder);
用来执行解码工作的软件叫“解码器”(Decoder)
“编码器”与“解码器”合称“编解码器”(“Codec”)。

声音与图像是两种不同的媒体,它们分别对应人的两种不同感官。作为不同的媒体,我们只能用专门针对声音的软件或是专门针对视频的软件去分别分析处理音频流(Audio Stream)与视频流(Video Stream)。

用来编码音频流的软件叫作“音频编码器”(Audio Encoder)
用来编码视频流的软件叫作“视频编码器”(Video Encoder)

用来解码音频流的软件叫作“音频解码器”(Audio Decoder)
用来解码视频流的软件叫作“视频解码器”(Video Decoder)

音频流与视频流的处理必须分别进行,即:
“音频编码器”编码出单个音频文件,
“视频编码器”编码出单个视频文件,
“音频解码器”单独对音频文件进行解码还原,
“视频解码器”单独对视频文件进行解码还原。

既然音频处理和视频处理必须单独运行,那为什么我们平时看的MPG、MP4、MKV、RMVB、AVI格式的电影都是既包含声音又包含图像的单个文件呢?那是因为我们在通过摄像机获得单独的音频流和视频流后不仅对它们进行了“编码”,还对它们进行了“合成”(Synthesis)。通过合成,音频与视频就打包到一起,生成一个单独的文件。可以说,所有既有声音又有图像的视频文件,100%都是通过某种合成器(Synthesizer)合成过的。(注意:“合成”与“合并”不同,见最后的参考帖子。)

然而必须知道的是:尽管通过合成器可以把音频流和视频流打包成一个文件,但是正如人的眼睛不可能听、人的耳朵不可能看,音频流和视频流是不可能完全地混杂到一起的,是注定“分离”的。因此,所谓“合成”,只是把音频流和视频流用一个容器文件(Container)封装起来,其实里面还是各自独立的。我们在播放视频文件的时候总是先调用分离器(Splitter),将封装合成的视频“分离”成独立的音频和视频码流,然后才调用解码器对这些独立的音频流和视频流进行解码输出。

举个例子应该比较好懂一些:

比如我们有一个音频文件 Sample.mp2 和一个视频文件 Sample.m1v,用编码软件如小日本4通过 MPEG-1 编码方式合成为一个独立文件 Sample.mpg,然后把这个.mpg文件拿到媒体播放器里面播放,直接就可以听到声音看到画面。表面上看播放器只是简单地“播放”了这个文件,实际上这个“播放”包含了更多我们看不到的步骤。这个步骤是这样的:

  • 播放器打开视频源文件
  • 播放器调用分离器将视频文件分解为单独的音频流和视频流
  • 播放器调用音频解码器对音频流进行解码,同时调用视频解码器对视频流进行解码
  • 播放器依据同样的时间线将解码后的音频流和视频流输出到播放窗口并使之保持同步。

我们经常听到滤镜(Filter)的名称,实际上就是指的各种分离器或解码器。

参考帖子:
[生词] 什么是滤镜?
[生词] [原创]什么是“分离”与“合成”、“分割”与“合并”
[array viewthread_postbottom/0]
不懂就搜!点此搜点拨论坛。如果本坛没有,请尝试点此问AI,或跟帖提问。
发帖前注意看置顶帖。
不定期借助AI对点拨论坛陈年老帖进行挖坟回复,打扰勿怪!
[array viewthread_postsightmlafter/0][ad thread/a_pb/1/0]
你的问题有多精彩,我的答复就有多精彩!
回复 [array viewthread_postfooter/0]

使用道具 举报 [array viewthread_postaction/0]

[ad interthread/a_p/0]
[array viewthread_endline/0]
[array viewthread_avatartop/1]
[array viewthread_avatar/1]
[array viewthread_sidetop/1]

0

威望

249

金钱

10

贡献

初级会员

积分
283
主题
4
回帖
29
注册时间
2008-6-18
最后登录
2014-4-20
[array viewthread_sidebottom/1]
发表于 2009-2-25 15:22:49 | 显示全部楼层 [array viewthread_postheader/1]
[ad thread/a_pt/2/1]
[array viewthread_posttop/1]
[ad thread/a_pr/3/1]谢谢分享,进来学习一下啦。
[array viewthread_postbottom/1]
[array viewthread_postsightmlafter/1][ad thread/a_pb/1/1]
回复 顶 踩 [array viewthread_postfooter/1]

使用道具 举报 [array viewthread_postaction/1]

[ad interthread/a_p/1]
[array viewthread_endline/1]
[array viewthread_avatartop/2]
[array viewthread_avatar/2]
[array viewthread_sidetop/2]

0

威望

107

金钱

5

贡献

新手上路

积分
124
主题
8
回帖
19
注册时间
2009-5-30
最后登录
2018-11-20
[array viewthread_sidebottom/2]
发表于 2009-6-1 23:22:58 | 显示全部楼层 [array viewthread_postheader/2]
[ad thread/a_pt/2/2]
[array viewthread_posttop/2]
[ad thread/a_pr/3/2]绝对的学习!!!谢谢版主
[array viewthread_postbottom/2]
[array viewthread_postsightmlafter/2][ad thread/a_pb/1/2]
自己麻烦些,让帮你的人轻松些
回复 顶 踩 [array viewthread_postfooter/2]

使用道具 举报 [array viewthread_postaction/2]

[ad interthread/a_p/2]
[array viewthread_endline/2]
[array viewthread_avatartop/3]
[array viewthread_avatar/3]
[array viewthread_sidetop/3]

0

威望

331

金钱

0

贡献

初级会员

积分
339
主题
8
回帖
32
注册时间
2009-4-25
最后登录
2015-10-27
[array viewthread_sidebottom/3]
发表于 2009-7-4 20:58:05 | 显示全部楼层 [array viewthread_postheader/3]
[ad thread/a_pt/2/3]
[array viewthread_posttop/3]
[ad thread/a_pr/3/3]说得很详细而易懂,学习了,老师辛苦啦.
[array viewthread_postbottom/3]
[array viewthread_postsightmlafter/3][ad thread/a_pb/1/3]
帖中出现了你所不知道的生词怎么办?——先在点拨论坛搜索
回复 顶 踩 [array viewthread_postfooter/3]

使用道具 举报 [array viewthread_postaction/3]

[ad interthread/a_p/3]
[array viewthread_endline/3]
[array viewthread_avatartop/4]
[array viewthread_avatar/4]
  • 打卡等级:无名新人
[array viewthread_sidetop/4]

0

威望

487

金钱

3

贡献

初级会员

积分
526
主题
4
回帖
142
注册时间
2009-1-17
最后登录
2026-7-1
[array viewthread_sidebottom/4]
发表于 2009-7-22 13:31:16 | 显示全部楼层 [array viewthread_postheader/4]
[ad thread/a_pt/2/4]
[array viewthread_posttop/4]
[ad thread/a_pr/3/4]老师辛苦了
[array viewthread_postbottom/4]
[array viewthread_postsightmlafter/4][ad thread/a_pb/1/4]
有任何论坛使用问题,请看论坛帮助
回复 顶 踩 [array viewthread_postfooter/4]

使用道具 举报 [array viewthread_postaction/4]

[ad interthread/a_p/4]
[array viewthread_endline/4]
[array viewthread_avatartop/5]
[array viewthread_avatar/5]
[array viewthread_sidetop/5]

0

威望

37

金钱

0

贡献

新手上路

积分
40
主题
2
回帖
9
注册时间
2009-8-13
最后登录
2013-12-22
[array viewthread_sidebottom/5]
发表于 2009-8-13 22:23:54 | 显示全部楼层 [array viewthread_postheader/5]
[ad thread/a_pt/2/5]
[array viewthread_posttop/5]
[ad thread/a_pr/3/5]收到,学习了,管理员辛苦了
[array viewthread_postbottom/5]
[array viewthread_postsightmlafter/5][ad thread/a_pb/1/5]
您的问题越精确,我的回答越准确!
回复 顶 踩 [array viewthread_postfooter/5]

使用道具 举报 [array viewthread_postaction/5]

[ad interthread/a_p/5]
[array viewthread_endline/5]
[array viewthread_avatartop/6]
[array viewthread_avatar/6]
[array viewthread_sidetop/6]

0

威望

103

金钱

2

贡献

新手上路

积分
111
主题
2
回帖
34
注册时间
2009-12-8
最后登录
2013-6-27
[array viewthread_sidebottom/6]
发表于 2009-12-12 16:48:35 | 显示全部楼层 [array viewthread_postheader/6]
[ad thread/a_pt/2/6]
[array viewthread_posttop/6]
[ad thread/a_pr/3/6]学习了,好。对我扫盲了。
[array viewthread_postbottom/6]
[array viewthread_postsightmlafter/6][ad thread/a_pb/1/6]
有任何论坛使用问题,请看论坛帮助
回复 顶 踩 [array viewthread_postfooter/6]

使用道具 举报 [array viewthread_postaction/6]

[ad interthread/a_p/6]
[array viewthread_endline/6]
[array viewthread_avatartop/7]
[array viewthread_avatar/7]
[array viewthread_sidetop/7]

0

威望

18

金钱

0

贡献

新手上路

积分
24
主题
0
回帖
17
注册时间
2009-12-12
最后登录
2010-1-25
[array viewthread_sidebottom/7]
发表于 2009-12-12 18:34:14 | 显示全部楼层 [array viewthread_postheader/7]
[ad thread/a_pt/2/7]
[array viewthread_posttop/7]
[ad thread/a_pr/3/7]太强大了。我学习了
[array viewthread_postbottom/7]
[array viewthread_postsightmlafter/7][ad thread/a_pb/1/7]
回复 顶 踩 [array viewthread_postfooter/7]

使用道具 举报 [array viewthread_postaction/7]

[ad interthread/a_p/7]
[array viewthread_endline/7]
[array viewthread_avatartop/8]
[array viewthread_avatar/8]
[array viewthread_sidetop/8]

0

威望

22

金钱

0

贡献

新手上路

积分
23
主题
0
回帖
3
注册时间
2010-1-3
最后登录
2018-11-20
[array viewthread_sidebottom/8]
发表于 2010-1-5 16:30:38 | 显示全部楼层 [array viewthread_postheader/8]
[ad thread/a_pt/2/8]
[array viewthread_posttop/8]
[ad thread/a_pr/3/8]高,现在才了解。
[array viewthread_postbottom/8]
[array viewthread_postsightmlafter/8][ad thread/a_pb/1/8]
在帮助别人的过程中丰富自己
回复 顶 踩 [array viewthread_postfooter/8]

使用道具 举报 [array viewthread_postaction/8]

[ad interthread/a_p/8]
[array viewthread_endline/8]
[array viewthread_avatartop/9]
[array viewthread_avatar/9]
[array viewthread_sidetop/9]

0

威望

433

金钱

2

贡献

初级会员

积分
471
主题
7
回帖
175
注册时间
2010-2-12
最后登录
2020-1-18
[array viewthread_sidebottom/9]
发表于 2010-2-13 14:46:32 | 显示全部楼层 [array viewthread_postheader/9]
[ad thread/a_pt/2/9]
[array viewthread_posttop/9]
[ad thread/a_pr/3/9]学习了,谢谢诶
[array viewthread_postbottom/9]
[array viewthread_postsightmlafter/9][ad thread/a_pb/1/9]
发现掉链,请直接回帖报告。
回复 顶 踩 [array viewthread_postfooter/9]

使用道具 举报 [array viewthread_postaction/9]

[ad interthread/a_p/9]
[array viewthread_endline/9]
[string viewthread_middle]
[string viewthread_fastpost_side] [string viewthread_fastpost_content]
[string viewthread_fastpost_func_extra]高级模式 [string viewthread_fastpost_ctrl_extra]
您需要登录后才可以回帖 登录 | 立即注册 [string global_login_text]

本版积分规则 [string viewthread_fastpost_btn_extra]

[string viewthread_bottom]
[ad footerbanner/wp a_f/1][ad footerbanner/wp a_f/2][ad footerbanner/wp a_f/3][ad float/a_fl/1][ad float/a_fr/2][ad couplebanner/a_fl a_cb/1][ad couplebanner/a_fr a_cb/2][ad cornerbanner/a_cn][string global_footer]

QQ|手机版|小黑屋|点拨论坛 [string global_footerlink]|网站地图

GMT+8, 2026-10-2 14:19 , Processed in 0.581196 second(s), 17 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表