You can use Windows Media Encoder SDK or Expression 4 SDK to create your own app using C#, both works fine, and Microsoft recommends Expression SDK over the other one. Read more here and see the code samples.
http://msdn.microsoft.com/en-us/library/ff724699(v=expression.40).aspx