openframeworks / openframeworks/openFrameworks

Camera Initialisation on redistribution failing

Open
#5,441 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello oF community.

I've recently made a very simple app that basically just plays a video and activates the webcam at certain moments in the video to display an image of the viewer on the screen. I used of 0.9.7 It all works beautifully however some people I've sent the app to have experience the following 'NSInvalidArgumentException':

-[AVCaptureConnectionisVideoMaxFrameDurationSupported]: unrecognized selector sent to instance 0x7fbf9d11e2e0

I've uploaded the full error report for your perusal.

Error Report.pdf

it comes from the line in setup when I initialize my ofVideoGrabber using:

grabber.setup(1920, 1080);

I have now reduced the resolution of the camera to 1280x720 and am testing it with the same guy I sent it to before. Perhaps it's just too high a resolution for some webcams and it crashes? If that's the case is there a way to detect the maximum resolution for a webcam inside oF?

Thanks for looking in to this and I'll update it if I find anything more out.

I've also made a build of oF 0.9.8 and distributed it as well so I will keep this updated if that solves the problem, I can also do a build with the nightly build to test after I test the 0.9.8 one.

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 with the grabber.setup(1920, 1080) call and the supplied Error Report.pdf, then compare the failure with the reported 1280x720 test and the 0.9.8 build. Done means camera initialization no longer raises the reported exception, or the maximum supported webcam resolution is detected before setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos
Domain
audio-video-rtc, desktop
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.