MathewSachin / Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
https://mathewsachin.github.io/Captura/
MIT License
9.51k stars 1.79k forks source link

After recording, it shows 'Saving Videos', and the video isn't available #524

Open ltxman opened 4 years ago

ltxman commented 4 years ago

After recording, it shows 'Saving Videos', and the video isn't available why?

I found SharpAvi can be used normally, but this happens when switching to MF.

Captura v9.0.0.0 OS: Microsoft Windows 10 家庭中文版|C 64-bit OS 64-bit Process 8 processor(s)

Name: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
NumberOfCores: 4 NumberOfLogicalProcessors: 8

Name: 物理内存 Capacity: 4294967296

Name: 物理内存 Capacity: 4294967296

Name: AMD Radeon(TM) Vega 8 Graphics AdapterRAM: 1073741824

Desktop: {X=0,Y=0,Width=1920,Height=1080} Screen: \.\DISPLAY1: {X=0,Y=0,Width=1920,Height=1080} Mic: 麦克风阵列 (Realtek(R) Audio) Speaker: 扬声器 (Realtek(R) Audio) Webcam: hm1091_techfront

SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: 参数错误。

在 SharpDX.Result.CheckError() 在 SharpDX.DXGI.Output1.DuplicateOutput(IUnknown deviceRef) 在 DesktopDuplication.DuplCapture.Init() 在 DesktopDuplication.DuplCapture..ctor(Output1 Output) 在 DesktopDuplication.FullScreenDesktopDuplicator.<>c__DisplayClass2_0.<.ctor>b__2(Output M) 在 System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() 在 System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) 在 DesktopDuplication.FullScreenDesktopDuplicator..ctor(Boolean IncludeCursor, IPreviewWindow PreviewWindow, IPlatformServices PlatformServices) 在 Captura.WindowsPlatformServices.GetAllScreensProvider(Boolean IncludeCursor, Boolean StepsMode) 在 Captura.ViewModels.RecordingModel.GetImageProviderWithOverlays(RecordingModelParams RecordingParams, IMouseKeyHook MouseKeyHook) 在 Captura.ViewModels.RecordingModel.GetImageProviderSafe(Func1 Getter, RecordingModelParams RecordingParams, IImageProvider& ImageProvider)

批注 2020-04-09 234630

System.NullReferenceException: 未将对象引用设置到对象的实例。 在 Captura.WebcamPage.b__9_0(Object S, DependencyPropertyChangedEventArgs E) 在 System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args) 在 System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e) 在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) 在 System.Windows.UIElement.UpdateIsVisibleCache() 在 System.Windows.UIElement.OnVisualParentChanged(DependencyObject oldParent) 在 System.Windows.Controls.Page.OnVisualParentChanged(DependencyObject oldParent) 在 System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent) 在 System.Windows.Media.Visual.AddVisualChild(Visual child) 在 System.Windows.FrameworkElement.set_TemplateChild(UIElement value) 在 System.Windows.Controls.ContentPresenter.UseContentTemplate.BuildVisualTree(FrameworkElement container) 在 System.Windows.StyleHelper.ApplyTemplateContent(UncommonField1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate) 在 System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField1 templateDataField, FrameworkElement container) 在 System.Windows.FrameworkElement.ApplyTemplate() 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.Controls.Border.MeasureOverride(Size constraint) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.Controls.Control.MeasureOverride(Size constraint) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.Controls.DockPanel.MeasureOverride(Size constraint) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 在 System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.Controls.Border.MeasureOverride(Size constraint) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.Window.MeasureOverrideHelper(Size constraint) 在 System.Windows.Window.MeasureOverride(Size availableSize) 在 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 在 System.Windows.UIElement.Measure(Size availableSize) 在 System.Windows.ContextLayoutManager.UpdateLayout() 在 System.Windows.Interop.HwndSource.SetLayoutSize() 在 System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) 在 System.Windows.Window.SetRootVisual() 在 System.Windows.Window.SetRootVisualAndUpdateSTC() 在 System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) 在 System.Windows.Window.CreateSourceWindow(Boolean duringShow) 在 System.Windows.Window.ShowHelper(Object booleanBox) 在 System.Windows.Window.ShowDialog() 在 Captura.App.App_OnDispatcherUnhandledException(Object Sender, DispatcherUnhandledExceptionEventArgs Args) 在 System.Windows.Threading.Dispatcher.CatchException(Exception e) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Application.RunDispatcher(Object ignore) 在 System.Windows.Application.RunInternal(Window window) 在 Captura.App.Main()