openframeworks / openframeworks/openFrameworks

ofVideoGrabber performance issues on iOS

Open
#5,053 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

iOS section-video
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I'm using a simple ofVideoGrabber like this:

void ofApp::setup(){
    _videoGrabber.setup(1280, 720, OF_PIXELS_BGRA);
    _screenWidth = ofGetScreenWidth();
    _screenHeight = ofGetScreenHeight();
}

void ofApp::update(){
    _videoGrabber.update();
}

void ofApp::draw(){
    _videoGrabber.draw(0, 0, _screenWidth, _screenHeight);
}

On an iPhone 6 running iOS 9.1.3, the grabber starts smoothly, but the frame rate gets really bad after 5 seconds or so. Locking the phone and unlocking it restores the smooth frame rate, but it slows down again after further 5 seconds.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported ofVideoGrabber behavior on an iPhone 6 running iOS 9.1.3, using the setup, update, and draw calls shown in the issue. Measure the frame rate before and after roughly five seconds and after locking and unlocking the phone; completion would require identifying and resolving the slowdown, with the frame rate remaining stable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.