Closed michaelgorman closed 8 years ago
I've tried everything I can think of, but I can't get around this issue. Using the pre-compiled DLL of AForge.Video.FFMPEG.dll from the bin of the installed applications I can get around this issue, but then I immediately get an exception that my application has attempted to write to protected memory.
could be the diff between 32bit & 64bit or incompat dlls. I moved away from aforge and just use the ffmpeg.exe directly since aforge is no longer maintained
On Tue, Nov 3, 2015 at 12:18 AM, Caelan Sayler notifications@github.com wrote:
I've tried everything I can think of, but I can't get around this issue. Using the pre-compiled DLL of AForge.Video.FFMPEG.dll from the bin of the installed applications I can get around this issue, but then I immediately get an exception that my application has attempted to write to protected memory.
— Reply to this email directly or view it on GitHub https://github.com/cesarsouza/screencast-capture/issues/22#issuecomment-153242859 .
Sorry for the long delay. This issue has finally been fixed, as it depended on first resolving a few issues with the AForge and Accord.NET merge. The AForge code is now living and being maintained by the Accord.NET project.
In "app.config" replace 'startup' with 'startup useLegacyV2RuntimeActivationPolicy="true"'
Win 7 64bit
System.IO.FileLoadException: Could not load file or assembly 'AForge.Video.FFMPEG, Version=2.12.0.0, Culture=neutral, PublicKeyToken=03563089b1be05dd' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) File name: 'AForge.Video.FFMPEG, Version=2.12.0.0, Culture=neutral, PublicKeyToken=03563089b1be05dd' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A) The Zone of the assembly that failed was: MyComputer at ScreenCapture.ViewModels.RecorderViewModel.StartRecording() at ScreenCapture.ViewModels.NotifyViewModel.Click() in D:\builds\blast\2mainline\blastsource\third_party_libs\screencast-capture-1.5\Sources\ViewModels\NotifyViewModel.cs:line 108 at ScreenCapture.Views.MainForm.iconPlayPause_Click(Object sender, EventArgs e) in D:\builds\blast\2mainline\blastsource\third_party_libs\screencast-capture-1.5\Sources\Views\MainForm.cs:line 219 at System.Windows.Forms.NotifyIcon.OnClick(EventArgs e) at System.Windows.Forms.NotifyIcon.WmMouseUp(Message& m, MouseButtons button) at System.Windows.Forms.NotifyIcon.WndProc(Message& msg) at System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
file list in bin Accord.Audio.dll Accord.Audio.Formats.dll Accord.DirectSound.dll Accord.dll Accord.Math.dll AForge.Controls.dll AForge.dll AForge.Imaging.dll AForge.Math.dll AForge.Video.DirectShow.dll AForge.Video.dll AForge.Video.FFMPEG.dll AForge.Video.FFMPEG.pdb AForge.Video.FFMPEG.xml AForge.Vision.dll avcodec-53.dll avdevice-53.dll avfilter-2.dll avformat-53.dll avutil-51.dll ffmpeg.exe Microsoft.WindowsAPICodePack.dll Microsoft.WindowsAPICodePack.Shell.dll pt readme.txt ScreenCapture.exe ScreenCapture.exe.config ScreenCapture.pdb ScreenCapture.vshost.exe ScreenCapture.XML SlimDX.dll swscale-2.dll