FLV 支持哪些音频类型?

发布于 2024-10-12 07:34:33 字数 1051 浏览 6 评论 0原文

我在使用 Actionscript 3.0(NetStream 类)播放一些快速文件时遇到问题。

我无法控制快速文件的生成方式,但到目前为止,带有未压缩音频的文件在 Flash Player 中根本无法播放音频。

我正在尝试在 Flash Player 中使用视频(mov/flv/等)编译音频格式列表,但我对资源感到困惑。

我浏览了 FLV 格式规范pdf 链接 )在 devnet 上,列出的媒体类型有:

MP3 .mp3 媒体类型 (0x2E6D7033) 表示该曲目包含 MP3 音频数据。点字符,十六进制 0x2E,包含在内以构成完整的 四字符代码。

AAC 一种媒体类型 mp4a (0x6D703461) 表示 该曲目使用 AAC 音频进行编码。 Flash Player 支持以下内容 AAC 配置文件,由其对象表示 类型: - 1 = 主要配置文件 - 2 = 低复杂度,又名 LC
- 5 = 高效率/尺度带复制,又名 HE/SBR 当 音频编解码器是 AAC,出现 esds 框 在示例表的 std 框中。 该框包含初始化数据 AAC 解码器需要解码 溪流。请参阅 ISO/IEC 14496-3 有关结构的更多信息 这个盒子。

维基百科条目上,提到了未压缩的音频:

FLV 文件也支持未压缩 音频或 ADPCM 格式音频。

但该声明没有任何参考。

是否有一个页面列出了 Flash Player 中播放视频所支持的所有音频格式?

I'm having issues with playing back some quick time files using actionscript 3.0 (NetStream class).

I have no control on how the quick time files are produced, but it seems so far that the files with uncompressed audio do not play audio at all in Flash Player.

I'm trying to compile a list of audio formats using video(mov/flv/etc.) in Flash Player, but I'm confused by the resources.

I've look through the FLV Format Specs(pdf link) on devnet and the media types listed there are:

MP3 A media type of .mp3 (0x2E6D7033)
indicates that the track contains MP3
audio data. The dot character, hex
0x2E, is included to make a complete
four-character code.

AAC A media type
of mp4a (0x6D703461) indicates that
the track is encoded with AAC audio.
Flash Player supports the following
AAC profiles, denoted by their object
types:
- 1 = main profile
- 2 = low complexity, a.k.a. LC
- 5 = high efficiency/scale band replication, a.k.a. HE/SBR When the
audio codec is AAC, an esds box occurs
inside the stsd box of a sample table.
This box contains initialization data
that an AAC decoder requires to decode
the stream. See ISO/IEC 14496-3 for
more information about the structure
of this box.

On the wikipedia entry, there is a mention on uncompressed audio:

FLV files also support uncompressed
audio or ADPCM format audio.

but there is no reference for that statement.

Is there a page that lists all the supported audio formats for playing back video in Flash Player ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世态炎凉 2024-10-19 07:34:33

请注意不要混淆 F4V 和 FLV 容器格式。

您提到的官方规范描述了这两种格式。

您的报价特指F4V格式,该格式在flash播放器中仅支持MP3和AAC。

FLV 容器支持的音频编解码器列表显示在同一文件的第 70 页上:

SoundFormat
(See notes following 
table, for special 
encodings)
UB [4] Format of SoundData. The following values are defined:
0 = Linear PCM, platform endian
1 = ADPCM
2 = MP3
3 = Linear PCM, little endian
4 = Nellymoser 16 kHz mono
5 = Nellymoser 8 kHz mono
6 = Nellymoser
7 = G.711 A-law logarithmic PCM
8 = G.711 mu-law logarithmic PCM
9 = reserved
10 = AAC
11 = Speex
14 = MP3 8 kHz
15 = Device-specific sound
Formats 7, 8, 14, and 15 are reserved.
AAC is supported in Flash Player 9,0,115,0 and higher.
Speex is supported in Flash Player 10 and higher.

Be careful not to confuse the F4V and FLV container formats.

The official specification you mentioned describes both of these formats.

Your quote specifically refers to the F4V format which only supports MP3 and AAC in the flash player.

The list of audio codecs supported by the FLV container is shown on page 70 in the same file:

SoundFormat
(See notes following 
table, for special 
encodings)
UB [4] Format of SoundData. The following values are defined:
0 = Linear PCM, platform endian
1 = ADPCM
2 = MP3
3 = Linear PCM, little endian
4 = Nellymoser 16 kHz mono
5 = Nellymoser 8 kHz mono
6 = Nellymoser
7 = G.711 A-law logarithmic PCM
8 = G.711 mu-law logarithmic PCM
9 = reserved
10 = AAC
11 = Speex
14 = MP3 8 kHz
15 = Device-specific sound
Formats 7, 8, 14, and 15 are reserved.
AAC is supported in Flash Player 9,0,115,0 and higher.
Speex is supported in Flash Player 10 and higher.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文