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
414 stars 94 forks source link

audio video glitch #245

Closed Praveen-Jeffri closed 1 year ago

Praveen-Jeffri commented 1 year ago

My use case is want to screen record for 2 mins but want to record in a way of chunk files like (10,10,10,etcs seconds) , after completing i will merge that chunk files , after merging in the the 2 min full video i can see the glitch (like if a spell the word "Performance" the the time range of 10 to 11 seconds i can only hear "Perance" , the letters "form" is missing)

sskodje commented 1 year ago

It would be because of lost data between you stop one recording, and you start the next. You could probably minimize it by using two recorders, where you pause one until you stop the other, then resume it. But it would still cause a little glitch as they don't sync up completely.

May I ask what your use case is?

Praveen-Jeffri commented 1 year ago

Thank you for you fast reply , My use case is want to record the whole video into chunk files and all these chunk files got merged using any tool like ffmpeg as a whole video