ogg

Packing Speex with Ogg on iOS

老子叫甜甜 提交于 2019-12-04 15:46:06
问题 I'm using libogg and libogg, I've succeeded to add those libraries to my iPhone xCode project and encode my voice with Speex. The problem is that I cannot figure out how to pack those audio packet with ogg. Does someone know how a packet of that kind should look like or have a reference code I can use. I know in Java it's pretty simple (you have a dedicated function for that) but not on iOS. Please help. 回答1: UPD 10.09.2013: Please, see the demo project, which basically takes pcm audiodata

Working with Ogg Vorbis

流过昼夜 提交于 2019-12-04 13:53:53
问题 I have an ogg vorbis file and I have to do two operations with it: cutting a part of a file from one position to another merging another file with existing one How can I realize these two operations in C#? 回答1: I'd look into the c documentation for libogg, and figure out how to do this with c. And then write almost the same code in C# using a wrapper over libogg. I've created a low level wrapper over libogg and libvorbis using the interop assistant: https://github.com/CodesInChaos/Xiph/blob

What Options Are There for Cross-Browser Compatible Audio?

若如初见. 提交于 2019-12-04 12:13:36
问题 I'm using this function: function playSound(file) { MyAudio = new Audio(file); MyAudio.play(); } Unfortunately, I'm struggling to find a file type which will work in all browsers. Mp3 works in Chrome, Safari, IE but not FF and Opera, while .ogg files only seem to work in FF. Any suggestions as to a way around this? I presume there is no way of programmatically detecting which browser is being used and then playing the appropriate file type? Any advise/ideas appreciated. Thanks. 回答1:

Stream as html5 audio or convert .amr to .ogg

别等时光非礼了梦想. 提交于 2019-12-04 11:04:10
I want to stream .amr audio files on my server. After spending a couple hours of research, it's clear to me that this is not feasible under the current state of html5 audio. Following this disappointing finding, I spent several additional hours looking for a simple way to convert .amr files to .ogg, with similarly disappointing results. I'm shocked that after well over 10 years of use, there is no simple way to play/convert files encoded under this standard, but can someone please help me to find a usable solution? The closest viable options seem to be sox and ffmpeg . I'm ideally looking for

Using Ogg Vorbis in Flash/Flex applications

给你一囗甜甜゛ 提交于 2019-12-04 09:38:48
问题 I am looking to use ogg vorbis, instead of mp3s to stream audio. It seems that Flash player does not natively support ogg. Is there a codec engine that can be embedded with the app itself that can play .ogg instead of .mp3? In general, what would be a better format than mp3 for streaming audio and that is supported by Flash? 回答1: One of the first demonstrations of Adobe Alchemy technology was OggVorbis library for Flash. See this page for source and the lib itself. 回答2: At the recent Google

ffmpeg settings for converting to mp4 and ogg for HTML5 video [closed]

若如初见. 提交于 2019-12-04 07:25:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Despite all the hype, in reality the HTML5 video tag has a bit of a problem. In order to use it and for it to be cross browser compatible, you have to include more than one format of the video. To target all supported browsers these formats are mp4 and ogg. I was searching around for optimum settings for each

How do you do true streaming with the video tag (i.e. not progressive download)? (html5)

徘徊边缘 提交于 2019-12-04 04:58:50
I have I have cheap Apache PHP hosting. I have mp4 and or Ogg video file. I want to dynamically stream this video to users. And let that users see it through html 5 video player. How do you do true streaming (beeng able to scroll to any part of wideo with out previous download of full video) with the video tag (i.e. not progressive download) and Apache PHP? There appears to be a slight mix-up between "true" streaming and "pseudo" streaming here. I believe true streaming is when video is streamed from a specialist media server over a streaming protocol such as rtsp, rtmp or mms whereby the

Recommended Android music format - mp3, ogg or other? [closed]

余生颓废 提交于 2019-12-03 22:08:25
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 10 months ago . I've been asked which format I need the music for my project in and, looking through the documentation, it seems that the Android platform offers a good choice. Audio is certainly not my forte so I'm wondering if there's a specific format that is best suited for Android playback? The main factors that come to mind are size and CPU overhead for decompression and

Java detecting an audio file (mp3)

心不动则不痛 提交于 2019-12-03 20:46:17
I have this code that reads an mp3 file import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.UnsupportedAudioFileException; public class Sound { public static void main(String[] args) { File sampleFile = new File("test.mp3"); try { AudioSystem.getAudioFileFormat(sampleFile); } catch (UnsupportedAudioFileException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } The problem here is that it is returning file not supported exception,

converting .wav file to .ogg in javascript

大城市里の小女人 提交于 2019-12-03 10:40:57
问题 I'm trying to capture user's audio input from the browser. I have done it with WAV but the files are really big. A friend of mine told me that OGG files are much smaller. Does anyone knows how to convert WAV to OGG? I also have the raw data buffer, I don't really need to convert. But I just need the OGG encoder. Here's the WAV encoder from Matt Diamond's RecorderJS: function encodeWAV(samples){ var buffer = new ArrayBuffer(44 + samples.length * 2); var view = new DataView(buffer); /* RIFF