When I try to capture a video screenshot of my screen in a region suddenly the .avi output file becomes a 7kb. The is no error, so I do not know how to fix this The output video is fine before selecting the region. how can i fix this problem?
# create the video write object img = pyautogui.screenshot(region=(350, 800, 500, 150)) # --->saves 7kb .avi file img = pyautogui.screenshot() # --->works fine