Possible to save frames from videos with a high FPS?
See original GitHub issuefrom time import time
import mss
import mss.tools
start = time()
count = 1
while True:
with mss.mss() as sct:
# The screen part to capture
monitor = {'top': 144, 'left': 80, 'width': 1397, 'height': 782}
output = 'frames/sct-{}.png'.format(count)
count += 1
# Grab the data
sct_img = sct.grab(monitor)
# Save to the picture file
mss.tools.to_png(sct_img.rgb, sct_img.size, output)
# print(output)
now = time()
if (now - start) % 60 >= 10: break
This seems to save only around 100 frames for 10 seconds. Can this be improved?
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
4 Easy Ways to Extract Frames from Video with High Quality
Navigate to the Filters in the Advanced Preferences tree, click but don't expand it, tick the box before the option of Scene video...
Read more >5 Ways to Extract Video Frames and Save to Images
4. Go to Video > Frame rate (Ctrl+R) and select Decimate by, then enter a number to save an image every xx number...
Read more >How To Extract Frames From Video With High Quality for Free ...
While there are many screenshot tools that help you extract frames from video, most screenshot tools don't offer good quality.
Read more >How can I extract frames from a video at a certain FPS?
FFMPEG has the ability to extract all frames from a video and save them as images, it also can extract frames at a...
Read more >Everything You Need To Know About FPS in Video Editing
This frame rate is usually used for sporting events or other high-speed actions, so the video has less motion blur. It will help...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have reached 37 FPS on macOS by two changes:
Pull Request in preparation
OK, added the option in the “impvements” branch.