accord-net / framework

Machine learning, computer vision, statistics and general scientific computing for .NET
http://accord-framework.net
GNU Lesser General Public License v2.1
4.49k stars 1.99k forks source link

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

Open carlosast opened 5 years ago

carlosast commented 5 years ago

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

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

Duke02 commented 5 years ago

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.

lkavale commented 5 years ago

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.

forReason commented 4 years ago

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

davidrapan commented 4 years ago

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.