VideoGrabber Screen looking stretched vertically


#1

Hi im working with the video grabber and setting it to use full screen on an iphone but looks like the something is causing the video to stretch too much vertically making everything look taller and skinnier. Any ideas on how to fix the aspect ratio or would square mode be the only solution?

    ofSetOrientation(OF_ORIENTATION_DEFAULT);  
    cameraOrientation = 1;
    screenWidth = ofGetScreenWidth();
    screenHeight = ofGetScreenHeight();
    setupCam(screenWidth, screenHeight);
void GrabberApp::draw() {
    ofSetColor(222);
    if (cameraOrientation == 0) {
        grabber.draw(0, 0, screenWidth, screenHeight);
    } else {
        grabber.draw(screenWidth, 0, -screenWidth, screenHeight);
    }
    
    //tex.draw(ofGetWidth() / 2, 0, ofGetWidth() / 2, ofGetHeight());
}
void GrabberApp::setupCam(int width, int height) {
    
    grabber.setDesiredFrameRate(24);
    
    if ( grabber.listDevices().size() > 1 ) {
        grabber.setDeviceID(1); // front facing camera
        cameraOrientation = 1;
    }
    else {
        grabber.setDeviceID(0); // rear facing camera
        cameraOrientation = 0;
    }
    
    grabber.initGrabber(width, height);
    
    
//    if ( !camTracker.isThreadRunning() ) {
//        camTracker.startThread();
//    }
}

#2

I have the same problem. Wondering if you got to a solution.
Thanks!