Reputation: 99
Is anyone trying to write their encoder code for the conversion of avi to wmv format using C#. I have tried most of the conversion like WMVEncoder or ffmpeg but I didn't get any success on the Silverlight project.
The silverlight project I am developing is an In-Browser application.The application consist of camera access which the recording is done & saved in raw format. I am able to convert the raw data format to *.AVI. Also I have the problem of accessing the "My Videos" folder in silverlight 4.0 for saving the converted *.AVI videos but in silverlight 5.0 beta I have solved that problem using below link:
Silverlight 5 Trusted applications
So I am using silverlight 5.0 beta for now onwards.
The WMVEncoder/ffmpeg cannot run on the C# silverlight application because it gives an
interoperability exception (method access error)
though we have trusted application settings.Also we were not able to compile the ffmpeg libraries in C#.
So the idea behind writing is to develop our own encoder which can be able to run in the In-browser application using C# silverlight 5.0.
If anyone knows how to write there own encoders for *.AVI to *.WMV conversion.
Please help me out
Thanks
Upvotes: 1
Views: 636
Reputation: 160852
Transcoding of media files should be done server side. Expression Encoder has a complete .NET accessible SDK you can use in C# that includes batch transcoding and it supports transcoding from AVI to WMV.
Upvotes: 2