Solved

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

Posted on 2014-07-17
3
434 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
ID: 40202746
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
ID: 40202748
0
 
LVL 1

Author Closing Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 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