Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Discussion Extracting audio from WMV

  • Monday, November 29, 2010 9:42 AM
     
     
    Hi guys i need to extract audio from a WMV file. I never try this kind of task before. So any one tell me how can i achieve this in .NET
    • Moved by eryang Tuesday, November 30, 2010 3:32 AM Move to DS forum for better support. (From:.NET Base Class Library)
    •  

All Replies

  • Tuesday, November 30, 2010 8:29 PM
     
     

    You need the WMReader or WMSyncReader object from the Windows Media Format runtime. They can only be used through COM InterOp. The open source WindowsMedia.NET library provides a .NET InterOp wrapper.

    You can also use the WMAsfReader filter (which wraps the WMReader object) in a DirectShow graph (see DirectShow.NET).

    MediaFoundation on Vista+ also provides its own ASF (aka WMV) reader, but that also requires COM InterOp.


    MVP :: DirectShow / MediaFoundation <http://www.riseoftheants.com/mmx/faq.htm>