stevenhoving / camstudio

CamStudio fork
Other
95 stars 37 forks source link

Pause of video gives unexpected behavior (paused time part of end result) #41

Open rrampen opened 4 years ago

rrampen commented 4 years ago

Pausing while capturing gives a strange end-result. When playing back the video the actual time paused is also shown in the video. The video just shows the last image before pausing. When the actual pause time expired it continues playing the video from there on. Example: Created video and paused after 47 seconds for 16 seconds. Result at 0:47 is show the last image recorded and after 16 seconds at 1:03 it continues playback.

Expected behavior: When pausing the capture it should also skip the pause in the resulting video

stevenhoving commented 4 years ago

Thanks for the bug report. Root cause of this bug is that the video frames after being paused has 'technically' the correct PTS. The problem is that it will cause the same pause time during playback. So to fix this we need to make the video skip this paused time. One of the options to fix this is to change the PTS supplied to the video encoder.