basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
558 stars 207 forks source link

faster playback speed when recording video #438

Open kimdonggyun opened 2 years ago

kimdonggyun commented 2 years ago

I've been using GigE camera for recording video using pypylon package. The problem occurred when I play the video. The length of the video is much shorter than real recording time (e,g, 1 min of recording yield 20sec of video length) and it plays much faster than real speed.

I set detail parameters for the camera, such as exposure (5000) time, fps (10), interpacketdely (20000) by inserting these values on the camera instance.

But I saw the video writer imageio's "get_writer" also has FPS value. And I'm suspecting the fps value on cam instance and video writer might be the reason of shorter video length (possibly conflicting each other?). *get_writer" FPS default value is 10. Otherwise, lack of computational power dropped framed in between by leading shorter video length.

How can I solve this issue?

thiesmoeller commented 2 years ago

But I saw the video writer imageio's "get_writer" also has FPS value.

pypylon has no video writer support. What library you are referring to?

An example to record video exists in issue https://github.com/basler/pypylon/issues/113#issuecomment-543774545