ProgrammingHero1 / secret_capture

32 stars 39 forks source link

video speed issue #3

Open rocknitin92 opened 3 years ago

rocknitin92 commented 3 years ago

the program successfully run but recorded video speed is 2x of normal video. how can i fix it?

ghost commented 3 years ago

Import time And in while loop place While True: Time.sleep(2) or 1

jindalpriyanshu101 commented 2 years ago

Import time And in while loop place While True: Time.sleep(2) or 1

instead lower the fps from 20.0 to 10.0 (or lower, just play with the fps values to find the best output for you)

By using time.sleep() you just get video getting more faster + missing recording of given seconds in the while loop.