wulkano / Kap

An open-source screen recorder built with web technology
https://getkap.co
MIT License
17.75k stars 816 forks source link

Kap crashes when ending recording #1172

Closed faxotherapy closed 1 year ago

faxotherapy commented 1 year ago

macOS version: 12.6.3 Kap version: 3.6.0

Steps to reproduce

Record app window during more than 2 hours. In my case, recording and talking during more than 2 hours lost. Also, before recording my presentation, I lowered screen resolution, because I noticed lagging during previous recordings at native (higher) resolution. I notice Kap is very slow, even after rebooting. Kap is always slow to respond.

Current behaviour

When ending the recording, the error message appears:

Recording error
Error: Command was killed with SIGKILL (Forced termination): /Users/Nathalie/Applications/Kap.app/Contents/Resources/app.asar.unpacked/node_modules/aperture/aperture record --process-id w3y2np9zlf {"destination":"file:///private/var/folders/s7/rl4zknvj02v5472h2qqgcnqw0000gp/T/4be9cd349b42663fc58fca243b077d81.mp4","framesPerSecond":30,"showCursor":true,"highlightClicks":false,"screenId":2077750393,"audioDeviceId":"AppleHDAEngineInput:1B,0,1,0:1","cropRect":[[0,0],[1440,875]],"videoCodec":"avc1"}
    at makeError (~/Applications/Kap.app/Contents/Resources/app.asar/node_modules/aperture/node_modules/execa/lib/error.js:60:11)
    at handlePromise (~/Applications/Kap.app/Contents/Resources/app.asar/node_modules/aperture/node_modules/execa/index.js:118:26)

Expected behaviour

To not crash and allow me to export the recording

Workaround

No workaround found.

faxotherapy commented 1 year ago

I managed to recover the video from /private/var/folders. The video appears to be corrupted as well: after about half of the video runtime, unable to play the video at specific timestamps. I used FFmpeg in the hope it would fix the timestamp issue while doing a classic video conversion, and it did work well.

$ ffmpeg -i video.mp4 -c:v libx264 -crf 21 -ab 64k video-.mp4