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

Qt 6.2.2 QVideoFrame.toImage unsupported format or has no image.. just white color

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.4
    • 6.2.2
    • Multimedia
    • Android version 11 on Galaxy Tab A7 model SM-T500

    Description

      using camera example.

      If you connect

      connect( ui->viewfinder->videoSink(), SIGNAL( videoFrameChanged( const QVideoFrame& ) ), &m_VidGrabber, SLOT( slotVideoFrameChanged( const QVideoFrame& ) ) );

      then in slotVideoFrameChanged call frame.toImage you get error

      W libcamera_arm64-v8a.so: QImage QVideoFrame::toImage() const : unsupported pixel format "Format_""SamplerExternalOES"

      if instead you set your own video sink with

      m_captureSession.setVideoSink(&m_VidGrabber);

      then frame.toImage() seems to work but is always just full of white color and no image

      II am trying to capture frames the video chat module in my application. everything seems to work fine in windows by setting my derived QVideoSink with m_captureSession.setVideoSink

       

       

      Attachments

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            nolimitconnect-developer Brett Joned
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: