Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
Could anyone suggest me the good quality .net SDK encoder to encode and generate MP4 format..
Posted

1 solution

First of all, let me not that MP4 is not a format, but a method of compression. Those media files are not as simple as you might think. They are organized as containers which can combine different compression method for video, audio and other data, such as subtitles, and more. The term "format" refers to containers, not compression algorithms. Usually, compression is handled separately by codecs installed in the system. If these two levels (containers and compression standards) did not exist, the combination would not be possible.

Please see:
http://en.wikipedia.org/wiki/Container_format_%28digital%29[^],
http://en.wikipedia.org/wiki/MPEG-4[^],
http://en.wikipedia.org/wiki/Codec[^].

The best open-source product I ever used is not based on codecs installed in the system but uses the big set of the codecs embedded in the library. This is FFmpeg or related libavcodec:
http://en.wikipedia.org/wiki/FFmpeg[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://ffmpeg.org/[^],
http://libav.org/[^].

Unfortunately, these products are not for .NET, they are written in C. Anyway, you could use them with .NET.

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).

Good luck,
—SA
 
Share this answer
 
Comments
Member 8169176 29-Apr-13 2:13am    
Hi,
I dont want to create my own encoder, I want to use some encoder like Windows Media Encoder, I am using Windows Media Encoder to Encode WMV output Format But now i need to Generate MP4 output...
Sergey Alexandrovich Kryukov 29-Apr-13 2:18am    
Did you really read my answer? Who told you about development of "some encoder"?!
I answered your question in full, suggested some really working approaches. Please, read it carefully and ask your follow-up questions if you have any.
—SA
ScottUSA1 21-May-18 8:22am    
My company is looking for someone to develop exactly what the first person is looking for -- something to replace Windows Media Encoder that will let us record .MP4. If someone could help us out, please email me at neohscott@yahoo.com.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900