-1

I need to convert wmv to webm in my project. Maybe before upload maybe after upload i have no idea. Do you know any library or example code to doing that. I think it is not enough to change extension wmv to webm ?

Er.Er
  • 135
  • 2
  • 14

2 Answers2

2

In general you can use ffmpeg for this job. A C#-Wrapper can by found on github by tomaszzmuda.

The simplest approach to get the job done, would be:

Xabe.FFmpeg.ConversionHelper.ToWebM(@"C:\Input.wmv", @"C:\output.webm");
Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
Link
  • 1,307
  • 1
  • 11
  • 23
  • When i try to install xabe.ffmpeg at nuget give me error "Severity Code Description Project File Line Suppression State Error Could not install package 'Xabe.FFmpeg 2.2.3'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0" What should i do – Er.Er Nov 04 '17 at 07:29
  • @Er.Er As you can see on the [nuget site of xabe.ffmpeg](https://www.nuget.org/packages/Xabe.FFMpeg/) under dependencies: It requires .NET Standard 2.0. On the [.NET Standard](https://learn.microsoft.com/en-us/dotnet/standard/net-standard) is a listing which .NET-Framework version fullfills the requirement. You need at least .NET-Framework 4.6.1 – Link Nov 04 '17 at 11:04
0

I used Nreco.videoconverter to convert which one i want to convert. It is useful but not providing support and examples for free version.

Er.Er
  • 135
  • 2
  • 14