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
I've been trying to record a video using mss. As it claims, you can record a video at about more than 30, even 60 fps in some cases. However, i am finding it difficult to implement in practical.
I am using one of your examples from the documentation. I've extended it a bit to write a video on disk instead of showing it in a window using imshow method. Hope it explains the issue with mss.
It does record the video. But as a matter of fact, this video won't be playable. It's a corrupted file. Now, apparently i need to run this line: cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) to actually record the video. So, the code would become:
This time it works, but the max frames per second would be like 4 or at max it would be 5. So, we are back to the orignal issue. So, my question in simple is, how to use mss for recording a video?
OS name: Windows
OS version: 10
OS architecture: x64
Python version: 3.9
MSS version: 6.1.0
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
hash3liZer
changed the title
MSS is gives 4-5fps for video recording to be stored on disk
MSS gives 4-5fps for video recording to be stored on disk
Aug 24, 2021
I've been trying to record a video using mss. As it claims, you can record a video at about more than 30, even 60 fps in some cases. However, i am finding it difficult to implement in practical.
I am using one of your examples from the documentation. I've extended it a bit to write a video on disk instead of showing it in a window using
imshow
method. Hope it explains the issue with mss.So, this is my code:
It does record the video. But as a matter of fact, this video won't be playable. It's a corrupted file. Now, apparently i need to run this line:
cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
to actually record the video. So, the code would become:This time it works, but the max frames per second would be like 4 or at max it would be 5. So, we are back to the orignal issue. So, my question in simple is, how to use mss for recording a video?
Upvote & Fund
The text was updated successfully, but these errors were encountered: