-
Notifications
You must be signed in to change notification settings - Fork 41
Write video to file #154
Comments
With respect tot the above issue I would request you to refer tot the below example code: import sys frame_queue = queue.Queue() writer = None def print_preamble(): def print_usage(): def abort(reason: str, return_code: int = 1, usage: bool = False):
def parse_args() -> Optional[str]:
def get_camera(camera_id: Optional[str]) -> Camera:
def setup_camera(cam: Camera):
def frame_handler(cam: Camera, frame: Frame):
def write_to_file():
def main():
if name == 'main': |
Hi, |
Hello!
I am trying to write frames to a file, but it does not work. There are no error messages, but the file I write the frames to does not work. We are using the USB camera (1800 U-240c).
I used the Asynchronous Grab with OpenCV Example to start with, and modified it to write the file with open cv. When I run the script, it does show the current frames (although it is slow) but when I click on the file that was made (open with standard windows media player or similar), the media player gives an error message.
I am just a beginner with open cv and vimba, so I hope someone here knows more.
The text was updated successfully, but these errors were encountered: