Solved

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

Posted on 2014-07-17
3
463 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 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