Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81046

macOS: Frame rates are not applied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.14
    • Multimedia
    • None
    • macOS

    Description

      QCamera::setViewfinderSettings does not expose frame rates

          QCamera c;
          c.load();
          QObject::connect(&c,&QCamera::stateChanged,[&](QCamera::State s) {
              if (s==QCamera::ActiveState)
                  qDebug() << ":="<<c.viewfinderSettings().maximumFrameRate()<<":"<<c.viewfinderSettings().minimumFrameRate();
          });
      
          QCameraViewfinderSettings sss = c.supportedViewfinderSettings()[0];
          auto ss = c.viewfinderSettings();
          qDebug() << ss.maximumFrameRate()<<":"<<ss.minimumFrameRate();
      
          c.setViewfinderSettings(sss);
          ss = c.viewfinderSettings();
          qDebug() << ss.maximumFrameRate()<<":"<<ss.minimumFrameRate();
      
          c.start();
      

      https://developer.apple.com/documentation/avfoundation/avcapturedevice?language=objc

      In macOS, a capture session can still automatically configure the capture format after you make changes. To prevent automatic changes to the capture format in macOS, follow the advice listed under the lockForConfiguration: method.

      Attachments

        Issue Links

          Activity

            People

              valentyn.doroshchuk Valentyn Doroshchuk
              valentyn.doroshchuk Valentyn Doroshchuk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: