问题标签 [oggvorbis]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
6171 浏览

c++ - 循环流式传输 .ogg 音频 - OpenAL

我在循环流式 ogg vorbis 文件时遇到问题。

这是代码:

请注意我用 *** 标记的 2 行代码。

在所有情况下,文件都开始正常播放并在结束时倒带。然而 :

如果没有这 2 行代码,重复时文件听起来“已损坏”。如果让我们再重复一遍,听起来就更加“腐败”了。我相信这是因为 OpenAl 和 Vorbis 解码器在重复流时会“不同步”地写入/读取缓冲区。

如果我添加这 2 行代码,则文件会重复而不会损坏。但是,该文件不是无缝重复的;它在结束前倒带几厘米。我怀疑这是因为在倒带开始之前缓冲区没有播放到最后。

如果有人能伸出援助之手,我将不胜感激。

提前谢谢了,

账单

0 投票
1 回答
338 浏览

apache-flex - 使用 Adob​​e Alchemy 循环播放 OGG 文件

我正在尝试使用 Adob​​e 的 OggVorbis 库。但我似乎无法让 Sound 对象循环。我什至尝试在“com.automatastudios.audio.audiodecoder”包中的 AudioDecoder.as 中循环 _sound 对象。

您真的必须重新加载文件并一遍又一遍地流式传输吗?

0 投票
2 回答
2151 浏览

html - Minimizing latency in streaming audio with html 5

I'm trying to listen to a live audio stream on a webpage with a latency of less than 3 seconds. So far with ogg vorbis streams generated using ices & icecast, I've been unable to get latencies less than 7 seconds. All players I've used so far (html5 audio tag in Firefox, Opera, Safari; VLC as well) seem to introduce similar delays. It's unclear at this point how much latency is introduced in ices/icecast vs. the client-side player. I've tweaked ices and icecast settings, to no avail.

Has anyone achieved better latencies than this in a similar ices/icecast setup? I wouldn't expect an ogg vorbis decoder (be it html 5 in a browser, VLC, or whatever) to delay an audio stream for multiple seconds. Am I incorrect? I can't find any info on controlling buffer sizes or the decoding in browsers.

With a different architecture (html 5, firefox, WSGI server serving wav format audio), I was able to achieve latencies around 1-2 seconds. By default, the firefox began playing the wav file 5+ seconds behind, but I could advance playback by setting audio.currentTime ahead, and only be 1-2 seconds back (somewhat fragile). However, I'd much prefer to use icecast, and streaming wavs obviously doesn't scale.

Thanks in advance for any ideas.

0 投票
1 回答
3292 浏览

python - 在 Python 中将 wav 转换为 ogg vorbis

如何使用 Python 将 wav 文件转码为 ogg vorbis 格式?

我可以使用 PyMedia 1.3.7.3 转换为 mp3,但是当我将输出流类型设置为“ogg”时,我得到了错误:oggvorbis_encode_init: init_encoder failed并且脚本死了。

0 投票
2 回答
2350 浏览

java - How can I decode OGG vorbis data from a ByteBuffer?

The libraries I founded so far only have methods to decode from a file or InputStream. I have a ByteBuffer with OGG vorbis data and I need it decoded to PCM without having to write it to a file first.

0 投票
1 回答
381 浏览

flash - Flash 音频编码器

是否有任何用于 Flash 的音频编码库?我需要从 Flash 小程序录制声音,然后使用 HTTP 将其上传到服务器。

问题是原始音频文件非常大。有什么方法可以将它从 Flash 编码成 MP3/OGG​​/etc然后上传到服务器?

谢谢。

0 投票
3 回答
16679 浏览

html - HTML5 的最佳视频格式?

我有一组视频将发布在我正在开发的新网站上,使用我们新的 html5 播放器。我知道 Firefox 只支持 .ogg 格式,而其他大多数(最终包括 IE9)都支持 h264。

我希望在这里利用人群的经验:有没有人对跨浏览器的单一视频格式有任何运气?还是我注定要对所有内容进行双重编码?因为我们无法标准化我们的编解码器,所以在每个视频的两个副本上浪费空间似乎是一种耻辱。

提前致谢!

PS(Flash 播放器并不是一个真正的后备选项,部分原因是原则上,部分原因是相当大的移动用户群。)

0 投票
3 回答
14473 浏览

oggvorbis - Ogg Vorbis 标头规范

我正在寻找 ogg vorbis 标头数据包格式的规范。我在互联网上搜索了很多,但没有成功。我在哪里可以找到一个?

0 投票
1 回答
2031 浏览

c++ - 使用 libFLAC++ 将 vorbis 注释元数据(标签)写入现有 FLAC 文件

如何使用 libFLAC++ ( http://flac.sourceforge.net )将 vorbis 评论元数据,即标签(例如“TITLE”)写入现有的 FLAC 文件?

例如:

0 投票
2 回答
1264 浏览

windows-phone-7 - 适用于 Windows Phone 7 的 Vorbis 解码器

有人知道可以在 Windows Phone 7 上使用的 vorbis 解码器库吗?

缺乏本机代码互操作性使得重用任何本机代码实现变得困难(不可能?),但如果有技巧可以做到这一点,我也对此持开放态度。