Questions tagged [frame-rate]

Frame rate (also known as frame frequency) is the frequency (rate) at which an imaging device produces unique consecutive images called frames. The term applies equally well to computer graphics, video cameras, film cameras, and motion capture systems. Frame rate is most often expressed in frames per second (FPS)

Frame rate (also known as frame frequency) is the frequency (rate) at which an imaging device produces unique consecutive images called frames. The term applies equally well to computer graphics, video cameras, film cameras, and motion capture systems. Frame rate is most often expressed in frames per second (FPS)

More information at http://en.wikipedia.org/wiki/Frame_rate

1702 questions
111
votes
5 answers

How to know total number of Frame in a file with cv2 in python

How to know total number of Frame in a file ( .avi) through Python using open cv module. If possible what all the information (resolution, fps,duration,etc) we can get of a video file through this.
Niraj
  • 1,151
  • 2
  • 8
  • 9
41
votes
5 answers

Getting timestamp of each frame in a video

I have recorded several videos from the front cam of my tablet with an Android 5.2 application I have written. I have stored the start timestamp in milliseconds (Unix time) for each video. Unfortunately each video has a different framerate (ranging…
machinery
  • 5,972
  • 12
  • 67
  • 118
34
votes
1 answer

Linux: Screen desktop video capture over network, and VNC framerate

Sorry for the wall of text - TL;DR: What is the framerate of VNC connection (in frames/sec) - or rather, who determines it: client or server? Any other suggestions for desktop screen capture - but "correctly timecoded"/ with unjittered framerate…
sdaau
  • 36,975
  • 46
  • 198
  • 278
31
votes
6 answers

change frame rate in opencv 3.4.2

I want to reduce the number of frames acquired per second in a webcam, this is the code that I'm using #!/usr/bin/env python import cv2 cap = cv2.VideoCapture(0) cap.set(cv2.CAP_PROP_FPS, 10) fps = int(cap.get(5)) print("fps:",…
Mr. C
  • 423
  • 1
  • 4
  • 7
22
votes
3 answers

Android game: Canvas or OpenGL?

I am to write a game for Android, and I have to choose between Canvas or OpenGL for drawing. I have read that Canvas doesn´t have a good frame rate, but what is good? Imagine you were going to write an Angry Birds type game, would Canvas frame rate…
seipey
  • 549
  • 2
  • 6
  • 14
22
votes
1 answer

how to get frame rate of video in android os?

I want to get frame rate of video, but i don't want to use FFMPEG,JAVACV lib. is that possible to get frame rate of video in android? I read KEY_FRAME_RATE it's says that,"Specifically, MediaExtractor provides an integer value corresponding to the…
prakash ubhadiya
  • 1,242
  • 1
  • 12
  • 24
22
votes
5 answers

Get current frame of video in javascript / jquery

I am playing video using the html video tag. While playing video I want the current frame of the video not "currentTime" using jquery or javascript. I am able to get the current frame by doing the calculation of the fps of video and currentTime,…
siraj pathan
  • 1,455
  • 1
  • 14
  • 31
22
votes
4 answers

pygame clock.tick() vs framerate in game main loop

Every pygame has a game loop that looks like this: while running: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False pygame.display.flip() print("tick " +…
ERJAN
  • 23,696
  • 23
  • 72
  • 146
21
votes
4 answers

Chrome fps meter no longer shows frame rate

I'm trying to view my animation's frame rate in chrome using dev tools. The old FPS meter would actually show "Frame Rate", but it looks like the FPS meter has changed since then and no longer shows Frame Rate (I'm using Chrome 85). How do I get…
Abhi Sundu
  • 231
  • 2
  • 5
21
votes
2 answers

Python OpenCV video.get(cv2.CAP_PROP_FPS) returns 0.0 FPS

This is my video This is the script to find fps: import cv2 if __name__ == '__main__' : video = cv2.VideoCapture("test.mp4"); # Find OpenCV version (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.') if…
Tasos
  • 1,575
  • 5
  • 18
  • 44
21
votes
2 answers

How to fix Slow Rendering (Android vitals)

I have an app that is listed as in the bottom 25% in the new Google Play Console - Android vitals section for Slow Rendering. I am concerned of this because of such articles that seem to say Google Play may penalize your app in the Play Store…
Steve M
  • 9,296
  • 11
  • 49
  • 98
21
votes
5 answers

fps - how to divide count by time function to determine fps

I have a counter working that counts every frame. what I want to do is divide this by time to determine the FPS of my program. But I'm not sure how to perform operations on timing functions within python. I've tried initializing time as fps_time =…
S price
  • 231
  • 1
  • 3
  • 9
20
votes
3 answers

AVCapture capturing and getting framebuffer at 60 fps in iOS 7

I'm developping an app which requires capturing framebuffer at as much fps as possible. I've already figured out how to force iphone to capture at 60 fps but - (void)captureOutput:(AVCaptureOutput *)captureOutput…
19
votes
5 answers

Calculating number of messages per second in a rolling window?

I have messages coming into my program with millisecond resolution (anywhere from zero to a couple hundred messages a millisecond). I'd like to do some analysis. Specifically, I want to maintain multiple rolling windows of the message counts,…
Rudiger
  • 6,634
  • 9
  • 40
  • 57
18
votes
4 answers

How to set camera FPS in OpenCV? CV_CAP_PROP_FPS is a fake

How to set Camera FPS? May be cvSetCaptureProperty(cameraCapture, CV_CAP_PROP_FPS, 30); ? But it's return HIGHGUI ERROR: V4L2: Unable to get property (5) - Invalid argument Because there is no implementation in highgui/cap_v4l.cpp static int…
victor1234
  • 871
  • 3
  • 12
  • 28
1
2 3
99 100