MathewSachin / Captura

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

System.IO.IOExeption while using ffmpeg #437

Open COOLIRON2311 opened 5 years ago

COOLIRON2311 commented 5 years ago

Describe the bug I do have official ffmpeg for Windows and I configured it under "Settings". The recording via ffmpeg crashes. However, it works fine with sharpavi.

To Reproduce Steps to reproduce the behavior:

  1. Select ffmpeg as recording codec
  2. Click on "Record"
  3. See error

Expected behavior An errorless recording obviously.

Additional context The ffmpeg log:

ffmpeg version N-94530-g8cd96e13ee Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  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. 33.100 / 56. 33.100
  libavcodec     58. 55.100 / 58. 55.100
  libavformat    58. 30.100 / 58. 30.100
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 58.100 /  7. 58.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
\\.\pipe\captura-9f1e5918-584d-465a-a12c-5c7c4102f15d: No such file or directory
hanLo commented 4 years ago

+1

liuweihdu commented 4 years ago

I got same issue, when i first install it with setup.exe, the first time to run the FFmpeg recording is good, but when i second time click the red button, the followed information came out, the FFmpeg downloaded from the GUI. config is Mp4(H264.AAC)

System.IO.IOException: The pipe is being closed.

在 System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.Pipes.NamedPipeServerStream.BeginWaitForConnection(AsyncCallback callback, Object state) 在 Captura.FFmpegService.WaitForConnection(NamedPipeServerStream ServerStream, Int32 Timeout) 在 Captura.Models.FFmpegWriter.WriteFrame(IBitmapFrame Frame) 在 Captura.Models.WithPreviewWriter.WriteFrame(IBitmapFrame Image) 在 Screna.Recorder.<>cDisplayClass14_0.gAddFrame|0(IBitmapFrame Frame) 在 Screna.Recorder.<>cDisplayClass14_0.b2() 在 System.Threading.Tasks.Task`1.InnerInvoke() 在 System.Threading.Tasks.Task.Execute() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 Screna.Recorder.d14.MoveNext()