为什么 FLAC Streaming over HTTP 使用 Ogg 封装而不是本机完成? [英] Why is FLAC Streaming over HTTP done with Ogg encapsulation instead of natively?

查看:27
本文介绍了为什么 FLAC Streaming over HTTP 使用 Ogg 封装而不是本机完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前所有的 FLAC 流媒体实现(例如 Edcast 和 Icecast)似乎都使用 Ogg 作为 FLAC 流媒体的容器.

All of the current FLAC streaming implementations (such as Edcast with Icecast) seem to use Ogg as a container for FLAC while streaming.

  1. 这是什么原因?
  2. 使用 Ogg 而是流式传输原生"FLAC 流有哪些缺点?
  1. What is the reason for this?
  2. What are the drawbacks of not using Ogg, and streaming the "native" FLAC stream instead?

我已经完成了一些通过 HTTP 流式传输 FLAC 的测试,它似乎在 VLC 中工作得很好.FLAC 似乎是以帧可以独立站立的方式构建,使其对流损坏具有健壮性和/或丢帧.鉴于此,我不太明白为什么需要在 Ogg 中包装 FLAC.

I've done some tests streaming FLAC over HTTP, and it seems to work just fine in VLC. FLAC seems to be built in such a way that frames can stand independently, making it robust against stream corruption and/or dropped frames. Given this, I don't quite understand why wrapping FLAC in Ogg is necessary.

推荐答案

FLAC-to-Ogg 映射页面 对为什么在许多情况下需要使用 Ogg 封装而不是流式传输原生 FLAC 有相当详尽的解释:

The FLAC-to-Ogg mapping page has a fairly thorough explanation of why it's desirable to use Ogg encapsulation in many cases instead of streaming native FLAC:

原始 FLAC 格式包括一个非常精简的传输系统 ...称为原生 FLAC"....它非常轻量级并且不支持更复杂的传输机制,例如多个逻辑流,...

The original FLAC format includes a very thin transport system ... known as 'native FLAC'. ... It is very lightweight and does not support more elaborate transport mechanisms such as multiple logical streams, ...

原生 FLAC 传输不是传输层";以标准编解码器设计的方式,因为它不能与有效载荷完全分离....

The native FLAC transport is not a transport "layer" in the way of standard codec design because it cannot be entirely separated from the payload. ...

在尝试将 FLAC 封装在其他真正的传输层时会出现问题 ...

替代方法是将原生 FLAC 帧视为 Ogg 数据包并接受传输冗余.事实证明,这不算什么惩罚.... 冗余量仅占百分之几.

The alternative is to treat native FLAC frames as Ogg packets and accept the transport redundancy. It turns out that this is not much of a penalty; ... The redundancy amounts to a fraction of a percent.

[强调]

有关更多信息,请参阅完整页面,但结果是,虽然可用于流式传输,但原生 FLAC 不太适合更复杂的设置,并且 Ogg 封装的成本非常低.如果原生 FLAC 可以很好地满足您的特定需求,您可以继续使用它,但 Ogg 最终会为您提供更大的灵活性.

See the complete page for more information, but the upshot is that while usable for streaming, native FLAC isn't well-suited to more complex setups and the cost of Ogg encapsulation is quite low. If native FLAC works fine for your specific needs, you can go ahead and use it, but Ogg will ultimately give you more flexibility.

这篇关于为什么 FLAC Streaming over HTTP 使用 Ogg 封装而不是本机完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆