Convert a wma to wav programatically with Windows Media Encoder - audio

Has anyone converted a WMA to a WAV using Windows Media Encoder? If so, do you have a short code snippet of how you did it? All samples I've seen have been for WAV to WMA, not the other way around.

The reason that all of the samples you've seen have been for WAV to WMA is that you're looking at Windows Media Encoder. You want to decode WMA to WAV. Look at the Windows Media Format SDK instead.

Related

Getting mp3 from Azure Media Services

I'm using Azure Media Services and I need to encode input audio files to mp3 output files. I've used Standart Encoder for encoding video files, but it seems Standart Encoder can't produce mp3 (I understand that it can encode audio with AAC and produce mp4 file with the audio but unfortunately I need exactly mp3).
So I'm trying to use Media Encoder Premium Workflow. In the documentation, I see that I need to use Workflow Designer tool but can't understand where I can get it. Could you please point me out where I can find it? Or maybe you can suggest other solution for getting mp3 after processing audio using Azure Media Services?
I see that you have considered Azure Functions. Since that does not appear to address your needs, please contact us via mepd#microsoft.com
We'll provide you the instructions on how to download the Workflow Designer, and use it.

wav to mp3 using media foundation NAudio 1.7

........
using (var reader = new MediaFoundationReader("\\track.wav"))
{
MediaFoundationEncoder.EncodeToMp3(reader, "\\outputfile.mp3", 192000);
}
...........
Here, in this code when I am trying to convert wav file to mp3 it is throwing exception like,- 'No suitable MP3 encoders available'. I have tested it by passing different bit rates but no use. I have Fraunhofer mp3 codecs and lame installed on my pc with windows 7 os. But converting wav to wma and mp4 is working fine.Please correct me where I am going wrong.
By using Acm and lame I am able to convert wav to mp3 on my pc but i dont know why it is not possible with media foundation. And also is there any possibility to pass stream object to media foundation reader function ?
ACM and Media Foundation Transforms are two completely different things. You can have a codec as ACM but not MFT and the other way around. So just because you have an ACM MP3 encoder, doesn't mean you can encode MP3 with Media Foundation.
You can use the NAudioWpfDemo application that comes with the NAudio source to explore what Media Foundation Transforms are installed on your computer.
And no, there currently isn't support for creating a MediaFoundationReader from a stream.

Media supported by Chromecast

It seems as if Chromecast is an implementation of Google Cast. As any implementation it can support more media than minimally required. I was able to play the following media that is not mentioned in the Google Cast SDK:
WAV file
Ogg Vorbis file
x264 movie in a Matroska container
Are there other containers and media format that Chromecast supports that are not mentioned in the Google Cast SDK?
I'm successfully playing back H264 Video / AAC Audio that is in a Matroska container.
I've also successfully tested a WAV file (http://www.nch.com.au/acm/11k16bitpcm.wav), and an Ogg Vorbis audio file (http://upload.wikimedia.org/wikipedia/en/4/45/ACDC_-_Back_In_Black-sample.ogg)

Open ASF with J2ME

I'm on a project right now and I'd like to know how to play an ASF file on a cellphone. What do I need to do to get it done?
Thanks!
I dont think it is supported on phones, usually, mp3, aac, etc are suported. However if you can convert from ASF to say mp3, then almost all phones support that format.

creating video file

How would I create an class that records the users interactions with the desktop. and it should convert it to a video format such as wmv file?
Cam Studio is open source and written in VC++. The source is not too bad either.
http://camstudio.org/
Windows Media Encoder has this ability (CodeProject article 4.66 rating)

Resources