views:

269

answers:

3

I am developing an application in which I need to extract the audio from a video. The audio needs to be extracted in .wav format but I do not have a problem with the video format. Any format will do, as long as I can extract the audio in a wav file.

Currently I am using Windows Media Player COM control in a windows form to play the videos, but any other embedded player will do as well.

Any suggestions on how to do this? Thanks

+2  A: 

Probably easiest to use ffmpeg for this kinda thing...

Chris
Thanks! I was thinking something more in a .dll form, but an executable will do the trick if I don't find anything more suitable.
Nikos Steiakakis
There's no shame in shelling out to an exe! ;) Yes, i know where you're coming from. Depends how professional you want it to be.
Chris
+2  A: 

Here is a link on how to extract audio using GraphEdit, GraphEdit is an front end UI for the DirectShow API so everything it can do you can do with API.
You can use the DirectShow.NET liberty which wraps the DirectShow API for the managed world.

Shay Erlichmen
In this case should I provide the users with the DirectX libraries as well in the installer?
Nikos Steiakakis
DirectShow comes built in with XP and up.
Shay Erlichmen
+1  A: 

You can use AviReader http://alvas.net/doc/alvas.audio/index.htm#AviReader_typeId for this purpose

alex
I worked it out about the time I asked the question, but thanks anyway! +1
Nikos Steiakakis