First of all, generally, you need more powerful source of codec-supporting software. You want to use relatively exotic codec, and LAME is something totally unsuitable to it. See also my comment to the question. The answer may depends on what exactly profile you are trying to use (
RTP audio video profile — Wikipedia, the free encyclopedia[
^]).
One software package which helped me the most in most tricky situation is the library libav or FFMpeg based on it, both products also include near-identical ready to use utilities:
http://en.wikipedia.org/wiki/Ffmpeg[
^],
http://ffmpeg.org/[
^],
http://en.wikipedia.org/wiki/Libavcodec[
^],
http://libav.org/[
^].
In both cases, you can get free open-source utilities which can make nearly everything.
Now, how to use it programmatically in a .NET application? First, you can use the available utility by running it using
System.Diagnostics.Process.Start
:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[
^].
If this is not good enough, you can wrap the library in a .NET assembly by yourself or find appropriate wrapper. Please see:
http://www.ffmpeg-csharp.com/[
^],
http://sourceforge.net/projects/sharpffmpeg/[
^],
http://vbffmpegwrapper.codeplex.com/[
^].
After all, try to find some more:
http://bit.ly/VpboUJ[
^].
If you wish to work at such wrapper by yourself but don't know how, ask a question, I'll give you the basic ideas (using P/Invoke or C++/CLI "mixed-mode" project).
Now, based on that, I ran the FFMpeg utility with the parameter
ffmpeg -codecs
and obtained the following lines:
DEA.L. gsm GSM (decoders: gsm libgsm ) (encoders: libgsm )
DEA.L. gsm_ms GSM Microsoft variant (decoders: gsm_ms libgsm_ms ) (encoders: libgsm_ms )
Therefore, you have some change that your kind of media file can be decoded. The applicabiliy indicator "DEA.L." means:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...I.. = Intra frame-only codec
....L. = Lossy compression
.....S = Lossless compression
That is, you can decode, encode, the lossy compression is supported; this is audio codec; only two items are unsupported/unapplicable; there is no lossles compression.
Good luck,
—SA