framework icon indicating copy to clipboard operation
framework copied to clipboard

Accord.Video.FFMPEG does not work in .NET Core

Open carlosast opened this issue 5 years ago • 4 comments

What would you like to submit? (put an 'x' inside the bracket that applies)

  • [ ] question
  • [x] bug report
  • [ ] feature request

Accord.Video.FFMPG makes a reference to 'CoreCompat.System.Drawing'. Error: Severity Code Description Project File Line Suppression State Error CS0012 The type 'Bitmap' is defined in an assembly that is not referenced. You must add a reference to assembly 'CoreCompat.System.Drawing, Version = 0.0.0.0, Culture = neutral, PublicKeyToken = null'

How to play:     var stream = new ScreenCaptureStream (screenArea);      stream.NewFrame + = Stream_NewFrame;

         private void Stream_NewFrame (object sender, NewFrameEventArgs and)          {              videoWriter.WriteVideoFrame (e.Frame); // ERROR e.Frame          }

Also does not recognize the VideoFileWriter class

I believe it is necessary to create a new version of the Accor.Video.FFMPG Package

Thank you

carlosast avatar Mar 29 '19 11:03 carlosast

Have you included the System.Drawing and Accord.Video.FFMPEG libraries in your project through Nuget? That may be what your issue is for both.

Duke02 avatar Jun 12 '19 17:06 Duke02

Accord.Video.FFMPG package has no target for .NET Core/Standard and I think there is good reason for that. This library is tightly coupled with third party video codecs, so probably this is the reason. You can use Accord.Video.VFW, maybe that could help you.

lkavale avatar Jun 22 '19 16:06 lkavale

okay. So Accord.Net seems to be dead. Sad.

forReason avatar Sep 14 '20 11:09 forReason

okay. So Accord.Net seems to be dead. Sad.

Hm i wouldn't be so hasty with conclusions, Lets give him little bit of time for that license "port" to MIT.

davidrapan avatar Sep 19 '20 18:09 davidrapan