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
The screenshot that's used in the Video Capture Card Config page after a fresh startup (i.e.launching ADAM without an existing config.ini) eems to be incomplete most of the time (i.e. a portion shows normal screen, the rest shows solid green because frame probably has not loaded completely).
To replicate:
delete config.ini from ADAM's Actual folder
ensure capcard is plugged in with video input
run ADAM's main.py
The text was updated successfully, but these errors were encountered:
From testing, when the frame is incomplete, the subsequent frames will be duplicate frames of the incomplete frame. This continues till a "No signal detected" black frame is captured, which may be due to imageio finally being ready to capture frames proper.
Hence, the incomplete frame probably happens because imageio needs time to "start up", since
the frames are incomplete/frozen at the beginning and frames only get captured/updated normally after the "No signal detected" black frame.
Skipping a specific number of frames and adding a sleep timer were unreliable workarounds in testing.
Having said that, I am not 100% sure if this problem lies with imageio, ffmpeg, or in the capture card specs.
Solution:
The reliable workaround was to let imageio iterate through frames for a few seconds (2.5s delay was usable. Below that led to unreliability), then start capturing frames and handling the new frames properly after the delay.
I've uploaded a test_screencap.py in the Testing folder that includes the solution, which should be adapted into screen_capturer.py and other relevant scripts.
@ivanaitzliddat in screen_capturer.py capture_screenshots(), you may need to modify generator = next(iio.imiter(f"<video{i}>")) for frame capture in order to make use of the imageio prep time solution in Testing\test_screencap.py
The screenshot that's used in the Video Capture Card Config page after a fresh startup (i.e.launching ADAM without an existing config.ini) eems to be incomplete most of the time (i.e. a portion shows normal screen, the rest shows solid green because frame probably has not loaded completely).
To replicate:
The text was updated successfully, but these errors were encountered: