- Home /
The question is answered, right answer was accepted The Question is actually off-topic. Since people constantly post new answers or spam / advertisement I close this question.
Is there any converter mp3 to ogg ?
Hi, Please,if you know,tell me how to convert mp3 file to ogg in runtime. Is there any command line program or dll?
Do you want to do this, to import mp3 files at runtime? I've got a script for that. It does need pro though.
yes you can try https://www.mp3converter.net its working fine for me.
Answer by KoningStoma · Jan 22, 2013 at 12:11 PM
To import MP3 files, I use a library called MPG123.
First you need to download this and place "libmpg123-0.dll" in the Plugins folder. (if you don't have that folder, just create it inside your assets folder) You need Pro to use plugins.
Then you need this script: http://pastebin.com/WbqLVKJz And put that in the Plugins folder too.
http://pastebin.com/Cwd1CJcg This is the script that needs to be added to a GameObject.
Now that's done, it should work. You can add an Audiosource component to the GameObject if you want. If you don't the script will add one.
This doesn't convert the MP3 file to an ogg file. Instead, it takes the decoded samples and uses AudioClip.SetData to give the samples to a new AudioClip.
Is this for Windows only? I was trying to use this on $$anonymous$$ac and I'm getting:
DllNotFoundException: libmpg123-0 $$anonymous$$P3Import.StartImport () (at Assets/Plugins/$$anonymous$$P3Import.cs:44) $$anonymous$$P3Import.Start () (at Assets/Plugins/$$anonymous$$P3Import.cs:84)
I have the libmpg123-0.dll in my Plugins Folder.
Yeah, if you download the $$anonymous$$PG123 project there is an Xcode project that you can use to build a .bundle file.
Great code! Neede to replace the DLL with a 64bit build of the libmpg123-0.dll from http://www.mpg123.de/api/
Answer by Lachee1 · Jan 15, 2013 at 08:18 AM
Im not sure about doing it in runtime, but i use Audacity to convert all my audio to .ogg files. Here is the link: http://audacity.sourceforge.net/
Hope this will work for you.
Answer by uijweol · Sep 22, 2013 at 08:31 AM
I know a very good OGG Converter providing a very nice solution to convert OGG to MP3. It is a very nice tool. You can find it here: http://www.bigasoft.com/audio-converter.html
Answer by luckyhardwork · May 18, 2015 at 10:43 AM
You may also try iDealshare VideoGo to convert MP3 to OGG or convert OGG to MP3
In fact, it can convert among MP3, OGG, FLAC, WAV, AIFF, AAC, DTS, AC3, WMA, M4A, etc.
Answer by Gloriaivy · Jul 19, 2015 at 07:12 PM
Pavtube Video Converter Ultimate is a suitable choice for MP3 to OGG conversion. It is simple to use and features fast conversion speed. Plus, for space-saving consideration, you can also compress your mp3 to small size with this tool.
http://www.multipelife.com/compress-wav-mp3-windows-mac.html
PS. I have Quicktime installed on the computer but Unity says its not installed, Its very annoying.
Follow this Question
Related Questions
MP3 to OGG Converter, Plugin, Command Line to be used with Unity 1 Answer
Existing solution for load MP3 from disc ? 2 Answers
How to Import .mp3 and use it as AudioClip 1 Answer
Play MPEG from web options 0 Answers
Android play mp3 file 0 Answers