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
8
votes
1 answer

Android: Is there any way of speeding up canvas.drawBitmap?

Simple question, not sure sure there's a simple answer though!! Is there anything at all that I can do to speed up my surfaceview drawing? I'm using something like this: c.drawBitmap(scaledSprite, X, Y, redPaint); The method that I'm using has to…
Zippy
  • 3,826
  • 5
  • 43
  • 96
8
votes
3 answers

iOS get video frame rate

I want to get the frame rate for a specific video. I tried to look at APIs in the AVFoundation and AssetsLibrary like AVURLAsset or AVAssetReader. None of them are really helpful. Does anybody know a method in the Apple's frameworks/library to get…
vodkhang
  • 18,639
  • 11
  • 76
  • 110
7
votes
1 answer

Not able to change frame-rate for input video using cv2.VideoCapture(video_path).set(cv2.CAP_PROP_FPS, new_frame_rate)

I am reading a .mp4 video file using opencv-python (3.4.3.18) and python (3.6.6) vid = cv2.VideoCapture(video_path) The original video has around 59 FPS and I want to reduce it to 10 FPS. So, I set the cv2.CAP_PROP_FPS property using the…
himanshurawlani
  • 353
  • 1
  • 3
  • 9
7
votes
2 answers

python opencv videoWriter fps rounding

I am trying to measure some event in an input video file: "test.mp4". This is done by processing the video in several steps, where each step performs some operations on the video data and writes the intermediate results to a new video file. The fps…
smerlung
  • 1,459
  • 1
  • 13
  • 32
7
votes
4 answers

C++: Calculating Moving FPS

I would like to calculate the FPS of the last 2-4 seconds of a game. What would be the best way to do this? Thanks. Edit: To be more specific, I only have access to a timer with one second increments.
user542687
7
votes
2 answers

How can I change a video frame rate with FFmpeg, lossless and keeping the same total number of frames?

I've been searching for an answer here on Stack Overflow and googling everywhere... even though it seems like it should be a very simple command line to me, I just can't find an answer anywhere. I would like to change the frame rate of a video from…
Nuno
  • 73
  • 1
  • 4
7
votes
2 answers

What are the general strategies for the server of an FPS multiplayer game to update its clients?

A friend and I were having a discussion about how a FPS server updates the clients connected to it. We watched a video of a guy cheating in Battlefield: Bad Company 2 and saw how it highlighted the position of enemies on the screen and it got us…
Hooray Im Helping
  • 5,194
  • 4
  • 30
  • 43
7
votes
3 answers

FPS how calculate this?

In my OpenGL book, it says this: "What often happens on such a system is that the frame is too complicated to draw in 1/60 second, so each frame is displayed more than once. If, for example, it takes 1/45 second to draw a frame, you get 30 fps,…
drigoSkalWalker
  • 2,742
  • 9
  • 32
  • 45
7
votes
1 answer

Framerate limit for WPF apps?

I wonder if there is a way to limit the WPF framerate within a process? i.e. I do not want to limit a single animation's framerate, but the global framerate for my whole application. I think I've seen something like this before but I can't find it…
Joachim Kerschbaumer
  • 9,695
  • 7
  • 49
  • 84
7
votes
3 answers

Monitoring the FPS of a Direct X Application

I am looking to create an external application that monitors the 'FPS' of a DirectX application (like FRAPS without the recording). I have read several Microsoft articles on performance measuring tools - but I am looking to get the feedback (and…
JHarley1
  • 167
  • 1
  • 3
  • 9
7
votes
3 answers

C++ Linux: Get the refresh rate of a monitor

In Windows, winapi provides a function that reports information about a monitor: DEVMODE dm; dm.dmSize = sizeof(DEVMODE); EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dm); int FPS = dm.dmDisplayFrequency; What is the equivalent of this on…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
7
votes
2 answers

How to make a render loop in WPF?

How can I create a loop that will be continuously executed whenever the message loop is idle in WPF? The goal here is to perform some long running graphical update, such as refreshing a PicktureBox, that is capable of consuming whatever free…
Pedro77
  • 5,176
  • 7
  • 61
  • 91
7
votes
1 answer

Canvas rendering performance

I am modifying the HTML5 port of the game Jump'n'Bump to run on Apple and Android-based mobile devices. I use a cheap 1 GHz Cortex-A8 Android 4.0.3 tablet for testing. I have encountered strange behaviour in the system's Browser. I normally get a…
7
votes
1 answer

Android: OpenGL rendering pauses when heavy background task running

I am rendering objects via OpenGL, and got a nice smooth framerate of 60fps in most situations. UNTIL I do something heavy in a background thread, like fetching stuff from a REST API, processing it, and adding objects to the graph (low-priority…
manmal
  • 3,900
  • 2
  • 30
  • 42
7
votes
7 answers

IOS AVPlayer get fps

Im trying to figure out how to retrieve a videos frame rate via AVPlayer. AVPlayerItem has a rate variable but it only returns a value between 0 and 2 (usually 1 when playing). Anybody have an idea how to get the video frame rate? Cheers
user346443
  • 4,672
  • 15
  • 57
  • 80