Solved

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

Posted on 2014-07-17
3
421 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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to recover a android "temp_video" that did not get processed before the phone rebooted 3 67
Greetings C# program 17 107
Video Player 11 23
tableview is not updating 1 9
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

777 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