MathewSachin / Captura

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

start record error #419

Open iamsunxing opened 5 years ago

iamsunxing commented 5 years ago

1.I download the Captura v9.0.0-beta3.1 portable version. 2.Select a screen(total double), and choose MF encoder. 3.It occurred when I click the "start record button". By the way, I use the win10 19H1. Choosing the FFMpeg to record is same, but It' s OK when I use 8.0 version. The error is below(My system language is Chinese, so part error is showed in Chinese.):

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() at Screna.Recorder.<>c__DisplayClass14_0.b2() 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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Screna.Recorder.d14.MoveNext()

the FFmpeg log: ARGS:

-i "C:\Users\sun\AppData\Local\Temp\tmp8C30.tmp" -i "C:\Users\sun\AppData\Local\Temp\tmp8DA8.png" -lavfi paletteuse -r 10 "C:\Users\sun\Documents\Captura\2019-06-01-14-33-02.gif"

OUTPUT:

ffmpeg version N-93949-g9c35285aea Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8.3.1 (GCC) 20190414 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt libavutil 56. 28.100 / 56. 28.100 libavcodec 58. 52.102 / 58. 52.102 libavformat 58. 27.103 / 58. 27.103 libavdevice 58. 7.100 / 58. 7.100 libavfilter 7. 54.101 / 7. 54.101 libswscale 5. 4.101 / 5. 4.101 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\sun\AppData\Local\Temp\tmp8C30.tmp': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.27.103 Duration: 00:00:00.10, start: 0.000000, bitrate: 362 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1366x768, 298 kb/s, 10 fps, 10 tbr, 10240 tbn, 20 tbc (default) Metadata: handler_name : VideoHandler Input #1, png_pipe, from 'C:\Users\sun\AppData\Local\Temp\tmp8DA8.png': Duration: N/A, bitrate: N/A Stream #1:0: Video: png, rgba(pc), 16x16 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc Stream mapping: Stream #0:0 (h264) -> paletteuse:default Stream #1:0 (png) -> paletteuse:palette paletteuse -> Stream #0:0 (gif) Press [q] to stop, [?] for help Output #0, gif, to 'C:\Users\sun\Documents\Captura\2019-06-01-14-33-02.gif': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.27.103 Stream #0:0: Video: gif, pal8, 1366x768, q=2-31, 200 kb/s, 10 fps, 100 tbn, 10 tbc (default) Metadata: encoder : Lavc58.52.102 gif frame= 1 fps=0.0 q=-0.0 Lsize= 3kB time=00:00:00.01 bitrate=2772.0kbits/s speed=0.149x
video:3kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.580552%

MathewSachin commented 5 years ago

What are your CPU and GPU specifications?

iamsunxing commented 5 years ago

i5-4200u GPU 0 Intel(R) HD Graphics Family GPU 1 AMD Radeon HD 8670M

YamaJP commented 5 years ago

Good afternoon! Any tips or solutions to the situation? I have already found this situation in 3 different CPUs and GPUs.

Thanks!

MathewSachin commented 5 years ago

I've not narrowed down exactly what is causing this issue. It will be really helpful if you could provide information on which CPU+GPU the error occurred and on which it worked fine.

YamaJP commented 5 years ago

Thanks for responding so promptly! To be honest, using only Intel CPUs and Intel GPUs or NVidia I had problems. Usually this occurs when I record several times in a sequence, for example, I make six recordings OK and the situation occurs in the seventh. This is very variable, there are times when I can make ten recordings without problems.