Solved

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

Posted on 2014-07-17
3
417 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

22 Experts available now in Live!

Get 1:1 Help Now