sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
408 stars 93 forks source link

Abrupt end of recording and corrupted video #261

Open ranwer-dev opened 1 year ago

ranwer-dev commented 1 year ago

This doesn't happen all the time, but in some rare cases, recording starts and then after a few seconds or minutes it abruptly ends. Which leaves behind an unplayable video. What could be the reason?

sskodje commented 1 year ago

If you enabled detailed logging and capture an error, i could take a look at it. It's impossible to answer without more to go on.

ranwer-dev commented 11 months ago

Here is a case with the log, where it took almost 4 minutes to end the recording and remained unresponsive during that time. It keeps on happening randomly. log - took lot of time to finish recording.txt

HariPrasath1107 commented 7 months ago

Hi, For me when I initiate my build the build is running successfully, and the video is getting recorded at the first instance and the video is playable as well. But when I tried for the 2nd instance build is getting succussed, but the video recorded is not playable it is getting corrupted and throwing the error while playing I have attached screenshot for it. The build is working in the same way which got ran in the previous instance, but the recording is not playable. Can anyone advice encountered this issue, could anyone advice on this?

Error message "We can't open TC299236.mp4. This may be because the file type is unsupported, the file extension is incorrect, or the file is corrupt. 0x00003604".

image (1)