gta5夜鲨和叛乱分子:什么叫MPEG4格式啊?

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 16:26:41
关于MTV的

MPEG-4:制定于1998年,MPEG-4是为了播放流式媒体的高质量视频而专门设计的,它可利用很窄的带度,通过帧重建技术,压缩和传输数据,以求使用最少的数据获得最佳的图像质量。目前MPEG-4最有吸引力的地方在于它能够保存接近于DVD画质的小体积视频文件。另外,这种文件格式还包含了以前MPEG压缩标准所不具备的比特率的可伸缩性、动画精灵、交互性甚至版权保护等一些特殊功能。这种视频格式的文件扩展名包括.asf、.mov和DivX AVI等。

就是MP4.

一、MPEG1、MPEG2 和MPEG2 AAC MPEG1(ISO/IEC 11172) 制 定 于1993 年, 是 针 对1.5Mbps 以 下 数 据 传 输 率 的 数 字 存 储 媒 质 运 动 图 像 及 其 伴 音 编 码 的 国 际 标 准。MPEG1 用 于 在CD —ROM 上 存 储 同 步 和 彩 色 运 动 视 频 信 号。 可 优 化 为 中 等 分 辨 率, 并 在 其 优 化 模 式 下, 采 用 所 谓 的 标 准 交 换 格 式(SIF)。MPEG1 对 色 差 分 量 采 用4 ∶1 ∶1 的 二 次 采 样 率。MPEG1 旨 在 达 到VRC 质 量, 其 视 频 压 缩 率 为26 ∶1。MPEG1 现 已 成 为 常 规 视 频 标 准 的 一 个 子 集, 该 子 集 称 为CPB 流。

1995 年 又 出 台 了MPEG2(IOS/IEC 13818), 它 追 求 的 是CCIR601 建 议 的 图 象 质 量DVB、HDTV 和DVD 等 制 定 的3Mbps ~10Mbps 的 运 动 图 象 及 其 伴 音 的 编 码 标 准。 该 标 准 最 初 的 目 的 是 在 与MPEG1 兼 容 的 基 础 上, 实 现 低 码 率 和 多 声 道 扩 展。 后 为 适 应 演 播 电 视 要 求,MPEG 于1994 开 始 致 力 于 定 义 一 个 可 以 获 得 更 高 质 量 的 多 声 道 音 频 标 准。 该 标 准 不 与MPEG1 兼 容, 定 名 为MPEG2 AAC。AAC 标 准 完 成 于1997 年, 经BBC(U.K.) 和NHK(Japan) 使 用、 测 试 表 明 已 达 到 最 优 化ITU —R601 推 荐 的 分 辨 率。AAC(Advanced Audio Coding) 对 于 低 比 特 率 的 多 声 道 编 码 能 提 供 相 当 高 的 声 音 质 量。 由 于 它 不 向 后 兼 容, 故 具 有 更 高 的 压 缩 效 果。 据 测 试 它 以320Kbps 传 送 的 音 频 信 号 比MPEG2 以640Kbps 传 送 的 音 质 还 略 好 些。AAC 标 准 的 发 展 标 志 着 标 准 化 工 作 向 着 模 块 化 方 向 演 变 的 趋 势。

MPEG3 是ISO/IEC 最 初 为HDTV 开 发 的 编 码 和 压 缩 标 准。 但 由 于MPEG2 的 高 速 发 展,MPEG3 的 功 能 已 被 淘 汰, 其 原 来 的 工 作 由MPEG2 小 组 承 担。

二、MPEG4与 前 两 者 不 同, 于1998 年11 月 公 布, 原 预 计1999 年1 月 投 入 使 用 的 国 际 标 准MPEG4 不 仅 是 针 对 一 定 比 特 率 下 的 视 频、 音 频 编 码, 更 加 注 重 多 媒 体 系 统 的 交 互 性 和 灵 活 性。MPEG4 试 图 达 到 两 个 目 标: 一 是 低 比 特 率 下 的 多 媒 体 通 信; 二 是 多 工 业 的 多 媒 体 通 信 的 综 合。 据 此 目 标,MPEG4 引 入AV 对 象(Audio/Visaul Objects), 使 得 更 多 的 交 互 操 作 成 为 可 能。 1.AV 对 象(AVO)

AV 对 象 的 基 本 单 位 是 原 始“AV 对 象”, 它 们 可 能 是 一 个 没 有 背 景 的 说 话 的 人, 也 可 能 是 这 个 人 的 语 音 或 一 段 背 景 音 乐 等。 它 具 有 高 效 编 码、 高 效 存 储 与 传 播 及 可 交 互 操 作 的 特 性。

在MPEG4 中,AV 对 象 有 着 重 要 的 地 位。MPEG4 对AV 对 象 的 操 作 主 要 有:

1 采 用AV 对 象 来 表 示 听 觉、 视 觉 或 者 视 听 组 合 内 容。

2 允 许 组 合 已 有 的AV 对 象 来 生 成 复 合 的AV 对 象, 并 由 此 生 成AV 场 景。MPEG4 采 用SNHC 的 方 法 来 组 织 这 些AV 对 象。

3 允 许 对AV 对 象 的 数 据 灵 活 地 多 路 合 成 与 同 步, 以 便 选 择 合 适 的 网 络 来 传 输 这 些AV 对 象 数 据 。

4 允 许 接 收 端 的 用 户 在AV 场 景 中 对AV 对 象 进 行 交 互 操 作。

5MPEG4 支 持AV 对 象 知 识 产 权 与 保 护。

2.MPEG4 标 准 的 构 成

1)DMIF(The Dellivery Multimedia Integration Framework)

DMIF 即 多 媒 体 传 送 整 体 框 架, 它 主 要 解 决 交 互 网 络 中、 广 播 环 境 下 以 及 磁 盘 应 用 中 多 媒 体 应 用 的 操 作 问 题。 通 过 传 输 多 路 合 成 比 特 信 息 来 建 立 客 户 端 和 服 务 器 端 的 握 手 和 传 输。 通 过DMIF, MPEG4 可 以 建 立 起 具 有 特 殊 品 质 服 务(QoS) 的 信 道 和 面 向 每 个 基 本 流 的 带 宽。

2) 数 据 平 面

MPEG4 中 的 数 据 平 面 可 以 分 为 两 部 分: 传 输 关 系 部 分 和 媒 体 关 系 部 分。

为 了 使 基 本 流 和AV 对 象 在 同 一 场 景 中 出 现,MPEG4 引 用 了 对 象 描 述(OD) 和 流 图 桌 面(SMT) 的 概 念。OD 传 输 与 特 殊AV 对 象 相 关 的 基 本 流 的 信 息 流 图。 桌 面 把 每 一 个 流 与 一 个CAT(Channel Assosiation Tag) 相 连,CAT 可 实 现 该 流 的 顺 利 传 输。

3) 缓 冲 区 管 理 和 实 时 识 别

MPEG4 定 义 了 一 个 系 统 解 码 模 式(SDM), 该 解 码 模 式 描 述 了 一 种 理 想 的 处 理 比 特 流 句 法 语 义 的 解 码 装 置, 它 要 求 特 殊 的 缓 冲 区 和 实 时 模 式。 通 过 有 效 地 管 理, 可 以 更 好 地 利 用 有 限 的 缓 冲 区 空 间。

4) 音 频 编 码

MPEG4 的 优 越 之 处 在 于, 它 不 仅 支 持 自 然 声 音, 而 且 支 持 合 成 声 音。MPEG4 的 音 频 部 分 将 音 频 的 合 成 编 码 和 自 然 声 音 的 编 码 相 结 合, 并 支 持 音 频 的 对 象 特 征。

5) 视 频 编 码

与 音 频 编 码 类 似,MPEG4 也 支 持 对 自 然 和 合 成 的 视 觉 对 象 的 编 码。 合 成 的 视 觉 对 象 包 括2D、3D 动 画 和 人 面 部 表 情 动 画 等。

6) 场 景 描 述

MPEG4 提 供 了 一 系 列 工 具, 用 于 组 成 场 景 中 的 一 组 对 象。 一 些 必 要 的 合 成 信 息 就 组 成 了 场 景 描 述, 这 些 场 景 描 述 以 二 进 制 格 式BIFS(Binary Format for Scene description) 表 示,BIFS 与AV 对 象 一 同 传 输、 编 码。 场 景 描 述 主 要 用 于 描 述 各AV 对 象 在 一 具 体AV 场 景 坐 标 下, 如 何 组 织 与 同 步 等 问 题。 同 时 还 有AV 对 象 与AV 场 景 的 知 识 产 权 保 护 等 问 题。MPEG4 为 我 们 提 供 了 丰 富 的AV 场 景。

3. 应 用 前 景

MPEG4 的 应 用 前 景 将 是 非 常 广 阔 的。 它 的 出 现 将 对 以 下 各 方 面 产 生 较 大 的 推 动 作 用: 数 字 电 视; 动 态 图 象; 万 维 网(WWW); 实 时 多 媒 体 监 控; 低 比 特 率 下 的 移 动 多 媒 体 通 信; 于 内 容 存 储 和 检 索 多 媒 系 统;Internet/Intranet 上 的 视 频 流 与 可 视 游 戏; 基 于 面 部 表 情 模 拟 的 虚 拟 会 议;DVD 上 的 交 互 多 媒 体 应 用; 基 于 计 算 机 网 络 的 可 视 化 合 作 实 验 室 场 景 应 用; 演 播 电 视 等。

三、MPEG7 — 多 媒 体 内 容 描 述 接 口继MPEG4 之 后, 要 解 决 的 矛 盾 就 是 对 日 渐 庞 大 的 图 像、 声 音 信 息 的 管 理 和 迅 速 搜 索。 针 对 这 个 矛 盾,MPEG 提 出 了 解 决 方 案MPEG7 。MPEG7 力 求 能 够 快 速 且 有 效 地 搜 索 出 用 户 所 需 的 不 同 类 型 的 多 媒 体 料。 该 工 作 提 议 于1998 年10 月 提 出, 预 计 于2001 年 初 最 终 完 成 并 公 布。MPEG7 将 对 各 种 不 同 类 型 的 多 媒 体 信 息 进 行 标 准 化 的 描 述, 并 将 该 描 述 与 所 描 述 的 内 容 相 联 系, 以 实 现 快 速 有 效 的 搜 索。 该 标 准 不 包 括 对 描 述 特 征 的 自 动 提 取, 它 也 没 有 规 定 利 用 描 述 进 行 搜 索 的 工 具 或 任 何 程 序。 其 正 式 的 称 谓 是“ 多 媒 体 内 容 描 述 接 口”。 MPEG7 可 独 立 于 其 它MPEG 标 准 使 用, 但MPEG4 中 所 定 义 的 对 音、 视 频 对 象 的 描 述 适 用 于MPEG7, 这 种 描 述 是 分 类 的 基 础。 另 外 我 们 可 以 利 用MPEG7 的 描 述 来 增 强 其 它MPEG 标 准 的 功 能。 MPEG7 的 应 用 范 围 很 广 泛, 既 可 应 用 于 存 储( 在 线 或 离 线), 也 可 用 于 流 式 应 用( 如 广 播、 将 模 型 加 入Internet 等)。 它 可 以 在 实 时 或 非 实 时 环 境 下 应 用。 如: 数 字 图 书 馆( 图 象 目 录, 音 乐 字 典 等); 多 媒 体 名 录 服 务( 如 黄 页); 广 播 媒 体 选 择( 无 线 电 信 道,TV 信 道 等); 多 媒 体 编 辑( 个 人 电 子 新 闻 业 务, 媒 体 写 作) 等。 另 外,MPEG7 在 教 育、 新 闻、 导 游 信 息、 娱 乐、 研 究 业 务、 地 理 信 息 系 统、 医 学、 购 物、 建 筑 等 各 方 面 均 有 较 深 的 应 用 潜 力。 四、 结 束 语与 同 样 是 音 频 压 缩 标 准 的 杜 比 公 司 的AC 系 列 标 准 相 比,MPEG 标 准 系 列 由 于 存 在 专 利 权 的 问 题, 所 以 更 适 合 于 我 国 国 情。MPEG1 使 得VCD 取 代 了 传 统 的 录 象 带, 而MPEG2 将 使 数 字 电 视 最 终 完 全 取 代 现 有 的 模 拟 电 视, 而 高 画 质 和 音 质 的DVD 也 将 取 代 现 有 的VCD。 随 着MPEG4 和MPEG7 新 标 准 的 不 断 推 出, 数 据 压 缩 和 传 输 的 技 术 必 将 趋 向 更 加 规 范 化。

First: THERE'S NO IDEAL BITRATE AND OR RESOLUTION!!!!! These settings depend on what you're driving for - high resolution - good image quality, size, etc.

You can use the bitrate calculator that's on my page in the software section to give you a rough idea about how to set the bitrate. Keep in mind that DivX is kind of VBR (variable bitrate) so if you set the exact value you calculated don't be surprised when the actual size of the movie is quite different. Especially FlaskMpeg has the nasty habit of creating larger files then expected. Therefore ALWAYS set a lower bitrate than calculated. Between 50 and 100kbit/s should do the job. Mpeg2avi is much better at filesizes, the final files are usually as large as they're supposed to be.

You should also consider that the final size depends on the output resolution you chose, despite all logics. Somehow DivX makes better use of the bitrate at a lower resolution. Below you can see the bitrate calculator

Since I'm doing almost only full-res movies I chose a really high bitrate, around 2000kbit/s usually. I noticed that a bitrate below 1700kbit will get you a lot of blockyness in fast moving scenes. The situation is quite different at lower resolutions. Since you might want to put a movie on 1 or 2 CDs you should consider lowering the resolution.

Another issue to keep in mind are the black bars above and below the movie - this applies only to widescreen movies, of course. In most cases it's smart to get rid of them since they only take up a lot of space.

You can try to select one of the profiles included in the mpeg2avi GUI and see what you get. I also suggest you use the preview my Avi button in the mepg2avi GUI, you'll be able to see what the current settings will do to your video.

Here's some settings you might use in mpeg2avi - just enter them in the GUI at the corresponding places - Output cropping X*Y and Downsizer Y:

1:2.35 movies: 720x304, 384 / 640x272, 352 / 560x240, 304 / 480x208, 256 / 400x176, 224 / 320x144, 176

1:1.85 movies: 720x384, 384 / 640x352, 352 / 560x304, 304 / 480x256, 256 / 400x224, 224 / 320x176, 176

Those of you who are a adept in math will see that I simply used a calculator, tried to have the same aspect ratios while respecting the rule that width and height have to be a multiple of 16, and calculated the values. You can take any values lower than these above or in between if you respect the multiple of 16 rule.

If you want to make a 1CD movie, you should select a resolution as low as 320x1XY, and set the audio bitrate to 96kbit/s if using mp3 or 64kbit/s when using DivX - enter those values along with the length of the movie in the calculator and you'll get the bitrate. Keep in mind that this resolution is rather small - you can get way better quality if you reduce the resolution just slightly - say 640xYYY - and go for 2CDs. Dig this example: 8mm NTSC at 640x288, 23.976fps in mpeg2avi resulted in a 960mb file. I can add the full ac3 soundtrack to this and put it on 2 files and when I reduce my resolution to 640x480 when playing back it's fullscreen without stretching and the sound is awesome.. :)

Resolution in FlaskMpeg
For FlaskMpeg there's an easier way since it has the Output pad - select Options, then Global Project Options, then click on the Output pad button in the lower left corner. Click Reset settings. Here's a sample of what you'll get:

Now it's time to decide how we're going to reduce the image size. There's 2 ways: Just reduce the overall size, or reduce the size and crop the black borders away. Generally cropping is a good idea since we're going to watch the movie on a computer so we don't have to worry about having the right image size for a TV - most TV output cards can add the black bars all DivX players will add if you play them at full screen.

If you want to keep the black bars for some reason - keep in mind that it's a waste of space, they take quite a lot of the bitrate for nothing - then all you have to do is to reduce the output size using the Width and Height buttons in the Output size section in the Output Pad. FlaskMpeg will automatically respect the resolutions needed for the DivX codec - width and height must be a multiple of 16. To keep the aspect ratio simply reduce the horizontal resolution by the same amount as the vertical resolution. For instance press both the Width and Height button 5 times to reduce the resolution from 720x480 to 640x400.

Another issue to consider is this: Both DVD players and DVD Software players display NTSC and PAL movies at the same vertical size - although the vertical resolution of NTSC is 480 while for PAL it's 576. If you want to keep this behavior, increase the Height to 576 using the buttons in the Output size section before you reduce the size.

Cropping

You don't need to change the starting resolution to 576 if you're cropping... Reduce the Output size to the desired format using the Width and Height buttons in the Output size section. Keep in mind that we're not going to change the "real" aspect ratio - the part of the picture containing the actual movie - right now. You're screen will look like this after this operation:

Note that the picture looks kind of messed up. Clearly we have to stretch the picture again to look normal. So next we're going to click on Crop. From now on, everything that we'll do is going on within the selected boundaries for the screen size. Therefore DON'T touch the Height and Width buttons in the crop section. If you press the Width and Height buttons in the Output size section, you're going to stretch the movie - don't worry that's how it has to be done. Increase the Top offset and the Height in the Output size section till the movie fits the selected screen-size. In the end you'll get something like this:

So.. you don't believe me that you have to stretch the picture? Then check out this page - beware, the pictures are huge - it contains a screenshot taken from the FlaskMpeg player, after having reset all setting in the output pad, and the same scene taken from PowerDVD. You can clearly see that the picture in Flask is squeezed when you don't change any of the settings.

If you're not cropping, you can just change the output size in the FlaskMpeg output options. Keep in mind that in case of an NTSC movie you still have to stretch the movie.