Skip to content

Conversation

@ofTheo
Copy link
Member

@ofTheo ofTheo commented Apr 19, 2025

See forum thread here:

https://forum.openframeworks.cc/t/issue-with-videograbber-performance-at-1080p-30fps-in-ofdirectshowgrabber/43948/7

usage:

#include "ofDirectShowGrabber.h"

ofDirectShowGrabber::setPreferredFormat((int)VI_MEDIASUBTYPE_MJPG);
//ofDirectShowGrabber::setPreferredFormat(-1); //clear the preferred type

//then your initGrabber code 

@ofTheo ofTheo merged commit 4885e43 into openframeworks:master May 1, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant