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

video size is zoomed #495

Open g8up opened 4 years ago

g8up commented 4 years ago

Describe the bug The size of my recorded video is zoomed, and the cursor was appears chaos.

To Reproduce Steps to reproduce the behavior:

  1. select display 1
  2. Click on 'record'
  3. preview recorded video

Expected behavior the video size is fill the full player screen when I set the player 1:1 .

Screenshots

image

Desktop (please complete the following information):

MathewSachin commented 4 years ago

Can you check with v9.0.0-beta4

Here's the download link: https://github.com/MathewSachin/Captura/releases/download/v9.0.0-beta4/Captura-Portable.zip

g8up commented 4 years ago

I update to v9.0.0-beta4 ( .Net 4.7.2 installed).

First I select a screen :

22-31-10

When I start record , it comes an error:

Captura v9.0.0.0
OS: Microsoft Windows 10 专业版|C
64-bit OS
64-bit Process
8 processor(s)

Name: Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz
NumberOfCores: 4
NumberOfLogicalProcessors: 8

Name: 物理内存
Capacity: 8589934592

Name: 物理内存
Capacity: 8589934592

Name: NVIDIA GeForce GTX 960
AdapterRAM: 2147483648

Desktop: {X=-1620,Y=0,Width=5460,Height=3260}
Screen: \\.\DISPLAY1: {X=-1620,Y=380,Width=1620,Height=2880}
Screen: \\.\DISPLAY2: {X=0,Y=0,Width=3840,Height=2160}
Mic: 麦克风 (USB PnP Sound Device)
Mic: 麦克风 (Yeti Stereo Microphone)
Speaker: 扬声器 (Yeti Stereo Microphone)
Speaker: 扬声器 (USB PnP Sound Device)
Speaker: 扬声器 (Realtek High Definition Audio)
Speaker: LG HDR 4K (NVIDIA High Definition Audio)
Speaker: LG IPS FULLHD (NVIDIA High Definition Audio)
Speaker: Realtek Digital Output(Optical) (Realtek High Definition Audio)
Speaker: Realtek Digital Output (Realtek High Definition Audio)

SharpDX.SharpDXException: HRESULT: [0x8899000C], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_RECREATE_TARGET/RecreateTarget], Message: 存在可以恢复的演示错误。调用方需要重新创建、重新渲染整个帧,并重新尝试显示。

   at SharpDX.Result.CheckError()
   at DesktopDuplication.Direct2DEditorSession.EndDraw()
   at DesktopDuplication.Direct2DEditor.GenerateFrame(TimeSpan Timestamp)
   at Screna.Recorder.FrameWriter(TimeSpan Timestamp)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Screna.Recorder.<Dispose>d__25.MoveNext()
MathewSachin commented 4 years ago

Ok. I think I understand the problem now. One of your screens is rotated and both are at different DPI scaling. I'll try working with a similar setup and see what can be done.