ogg

Java - Convert ogg to mp3

故事扮演 提交于 2019-12-20 06:00:59
问题 I'm writing a Java program and I'd like to convert a ogg file into mp3 file. I've spend a lot of time trying to find a good library to do that, but without success for the moment. I think I'll need a ogg decoder (jorbis ?) and a mp3 encoder (lameOnJ ?). Moreover, once the conversion is done, I need to set some tags in the file (artist/track tag, etc). This is a windows and OS X app. Could you give me any hint about how to process, with examples if possible. Thanks 回答1: You have lots of

iOS online radio streaming questions

旧巷老猫 提交于 2019-12-18 11:13:28
问题 I have to create app that provides online radio streaming (icecast), preferably .ogg format. So I have next questions: How can I play .ogg format audio stream? Are there any supported classes? Because I can't find any, so I think that it is impossible without many bitwise operations using CFNetwork , CoreAudio , AudioToolbox etc. (I don't look at cocos2d, because it's ridiculous) Am i wrong? I'm playing mp3 stream for now (no possibility for .ogg for me). I tried to use AVPlayer ,

Convert PCM to MP3/OGG

一个人想着一个人 提交于 2019-12-12 09:12:23
问题 I need to convert a continuous stream of PCM, or encoded audio (ADPCM, uLaw, Opus), into MP3/OGG format so that it can be streamed to a browser (using html's audio tag). I have the "stream-mp3/ogg-using-audio-tag" part working, now I need to develop the conversion layer. I have two questions: How can I convert PCM into MP3/OGG using NAudio and/or some other C# library/framework? I assume there is a code snippet or two in the NAudio demo app that may be doing this, but I haven't been able to

Server does not read ogg file

时间秒杀一切 提交于 2019-12-12 02:57:59
问题 I am trying to play audio with HTML5 audio tag; reading different articles made me aware that Firefox does not play mp3, but plays ogg file so I linked two files to make it compatible with Firefox: Here's y code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Audio Player</title> </head> <body> <audio id="Mp3Me" autoplay autobuffer controls> <source src="audio/audio.mp3"> <source src="audio/audio.ogg"> </audio> </body> </html> I have two separate servers, the first one can read

Python Batch convert of FLAC files

纵饮孤独 提交于 2019-12-11 18:16:01
问题 I want to convert all FLAC files to OGG in the working directory: This is what I ALREADY have. for root, dirs, files in os.walk(args): flacs = [f for f in files if f.endswith('.flac')] oggs = [o for o in files if o.endswith('.ogg')] for flacfiles in flacs: id3 = ('id3v2', '-C', flacfiles) cmd = ('oggenc', '-q7', flacfiles) try: subprocess.check_call(id3, cwd=root) subprocess.check_call(cmd, cwd=root) except subprocess.CalledProcessError: print "subprocess.CalledProcessError: Command %s

Directly viewing WebM or OGG file works in Firefox but not in Chrome

爷,独闯天下 提交于 2019-12-11 14:50:59
问题 I'm having an issue with getting local videos working for the HTML5 Video element. If I try and view a local OGG or WebM file directly, in Firefox 16.0.2 it works, but in chrome 22 it does not work! However, if I view an OGG file on another webserver, it works correctly. For example this file http://www.quackit.com/video/pass-countdown.ogg Works correctly for me, but if I save it onto my own server as http://test.jammaloo.com/pass.ogg Then it works in Firefox, but Chrome will not play it. I

Using .NET to detect .ogg file properties? Number of channels, bits per channel, sample rate? [closed]

痴心易碎 提交于 2019-12-11 12:03:25
问题 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 5 years ago . Does anyone know how to detect various .ogg file properties such as the number of channels, bits per channel, and the sample rate? I would like to do this without using DirectX, can anyone recommend a library that could do it. Can anyone recommend an open-source library that could do it, which could be called

Importing Android NDK projects (to decode OGG)

試著忘記壹切 提交于 2019-12-11 11:58:27
问题 I am trying to decode OGG files in Android using an NDK project (I've tried a few). No matter which one I try, I always get an error similar to this when I build: Caused by: java.lang.UnsatisfiedLinkError: Couldn't load videokit: findLibrary returned null I'm very new to the NDK (obviously) so I'm not sure what I'm doing wrong. All I want to do is to be able to set the playback rate of an OGG file. 回答1: The java part of the code links to a shared library object (.so file), which is obtained

jplayer play between certain percents of time in jquery

こ雲淡風輕ζ 提交于 2019-12-11 09:27:51
问题 I know I can start jPlayer at a given point in time or by percent by doing: $("#jquery_jplayer").jPlayer("playHead", 30); This is when issuing the play command (works fine), but how can I constrain the play time between two fixed points, either by absolute time or percent is fine? Ie I want it to start at 30% and end at 50%, etc. Basically just a good snippet of a song. Any ideas or pointers? http://www.happyworm.com/jquery/jplayer/latest/developer-guide.htm#jPlayer-playHead 回答1: Well in

Ogg to Riff/Wave encoding with acm

好久不见. 提交于 2019-12-11 09:22:49
问题 My task is to record wave file, convert it to ogg and pack it to the riff container. First two parts were done, but I have problems with the third part. I've found a source code which can solve my problem, but it doesn't work correctly. #include <windows.h> #include <windowsx.h> #include <mmsystem.h> #include <memory.h> #include <stdlib.h> #include <mmreg.h> #include <msacm.h> #include <assert.h> #include <math.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #define INPUT