You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Frames are not displayed at a designed speed (For example, the original video is played at frame rate of 30FPS. But the converted ASCII art video is played at a different frame rate (maybe 32FPS). It caused a issue that the background music is not synchronized with the video.
The text was updated successfully, but these errors were encountered:
Possible Reason:
When the timer (System.Timers.Timer) is set on a very tiny interval, it would not trigger elapsed event as accurately as I set. The execution of event handler also cost time. Hence, the interval calculated by simple division is inaccurate.
Solution:
I.
I try to set another timer on the interval of 100ms to adjust the frame rate. According to the difference between the average frame rate from the last adjustment to this check and the desired frame rate, I can bring forward or delay video by several frames. It may reduce the deviation.
II.
Executing a test by refresh a frame 100 times, and calculating the average time of refreshing, then solve the correct interval for main frame control time by mathematics automatically.
Solutions seem to be working.
Ayase-252
changed the title
Frames are not displayed at a certain speed
Frames are not displayed at a desired speed
Apr 21, 2014
Description:
Frames are not displayed at a designed speed (For example, the original video is played at frame rate of 30FPS. But the converted ASCII art video is played at a different frame rate (maybe 32FPS). It caused a issue that the background music is not synchronized with the video.
The text was updated successfully, but these errors were encountered: