Solved

How can I programatically convert .ogg to .mp3?  And should I?

Posted on 2014-07-17
3
409 Views
Last Modified: 2014-07-17
A few years ago, I ripped my entire CD collection to my hard drive.  A friend who I considered very savvy in the computer-music world told me to rip to .ogg, because .ogg had better sound quality and it was the "wave of the future".  He believed that .ogg would eventually be the industry standard.

Well, now I have a smidge over 10,000 songs in .ogg format, and most players don't like the format.  I created an application that I will be using to create playlists and play them, using the Windows Media Player.  The application works fine except that it won't play .oggs.

So I am considering my options.  I know there are bulk converters out there and I can convert my entire collection to .mp3, but I understand that there will be sound quality loss.  I also don't want to lose the original .oggs in case I find an alternative that uses oggs.  But I don't really want to have to store my entire music collection twice.

So what I would like to do is insert a bit of converter code so that I can convert just that song (or list of songs) which the WMP is about to play.  What would be the simplest way to do this?  I'm looking for a freeware (or cheapware) library or a executable that I can call via Process().

Also, is there a way to catch the event on the WMP that occurs when the current song or playlist is finished playing?  That way I could keep track of where I am in a list of mixed oggs and mp3s, and play them one by one, converting only if necessary.

One other alternative, if it's available, would be a library as easy to use in code as the WML, but which will play .oggs.  Anything like that out there?
0
Comment
Question by:FrancineTaylor
  • 2
3 Comments
 
LVL 1

Expert Comment

by:KFallsSchools
Comment Utility
As far as I know, there is no application you can get that will actively convert files as they pop up in your playlist. That would require some sort of code injection into WMP to capture those songs before they are played.

Now I bet there is an encoder you can get to make WMP play .ogg songs. That would be easier.
0
 
LVL 1

Accepted Solution

by:
KFallsSchools earned 500 total points
Comment Utility
0
 
LVL 1

Author Closing Comment

by:FrancineTaylor
Comment Utility
Awesome!  This is exactly what I needed!  My WMP app is now playing oggs...
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now