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

QCamera::start() takes longer time when launching the app from Qt Creator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Multimedia
    • Platform/s:
      macOS

      Description

      When camera streaming starts, it takes much longer in Qt creator
      than when the application is launched from Finder.
      And the application shows the following output.

      Failed to start viewfinder m_surface, format: QVideoSurfaceFormat(Format_UYVY, QSize(1280, 720), viewport=QRect(0,0 1280x720), pixelAspectRatio=QSize(1, 1), handleType=NoHandle, yCbCrColorSpace=YCbCr_Undefined)
      handleType = QVariant(QAbstractVideoBuffer::HandleType, )
      pixelFormat = QVariant(QVideoFrame::PixelFormat, )
      frameSize = QVariant(QSize, QSize(1280, 720))
      frameWidth = QVariant(int, 1280)
      viewport = QVariant(QRect, QRect(0,0 1280x720))
      scanLineDirection = QVariant(QVideoSurfaceFormat::Direction, )
      frameRate = QVariant(double, 0)
      pixelAspectRatio = QVariant(QSize, QSize(1, 1))
      sizeHint = QVariant(QSize, QSize(1280, 720))
      yCbCrColorSpace = QVariant(QVideoSurfaceFormat::YCbCrColorSpace, )
      mirrored = QVariant(bool, false)
      

      How to reproduce
      1. Use the attached example (Qtbug86005.zip)
      2. Click "Stream" to start camera streaming

      Expected behavior
      The viewfinder is shown instantly

      Actual behavior
      It takes more than 5 seconds

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            valentyn.doroshchuk Valentyn Doroshchuk
            Reporter:
            nagrohn Nahomi Gröhn
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes