Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All frames taken from camera.get_latest_frame() are glitchy in a weird way! #84

Open
elmoiv opened this issue Feb 11, 2024 · 1 comment

Comments

@elmoiv
Copy link

elmoiv commented Feb 11, 2024

Here is a screenshot of the output:
image

The code used:

target_fps = 18
camera = dxcam.create(output_idx=0, output_color="BGR")
camera.start(target_fps=target_fps, video_mode=True)
writer = cv2.VideoWriter(
    "video.mp4", cv2.VideoWriter_fourcc(*"mp4v"), target_fps, (1920, 1080)
)
for _ in range(target_fps * 6):
    writer.write(camera.get_latest_frame())
camera.stop()
writer.release()

The video file:

video.mp4
@elmoiv elmoiv changed the title All image taken from camera.get_latest_frame() are glitchy in a weird way! All frames taken from camera.get_latest_frame() are glitchy in a weird way! Feb 13, 2024
@lovettchris
Copy link

Try https://github.com/lovettchris/wincam. See the video.py example script which generates an mp4 using the VideoWriter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants