Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Multimedia
  4. QVideoFrame constructor with QVideoFrameFormat fails

QVideoFrame constructor with QVideoFrameFormat fails

Scheduled Pinned Locked Moved Unsolved Qt Multimedia
3 Posts 2 Posters 341 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    felsi
    wrote on last edited by
    #1

    Hello!
    I am using QVideoFrame::QVideoFrame(const QVideoFrameFormat &format) to create a new QVideoFrame and i might have found a little bug. For demonstration:

        QVideoFrame frame_dst_1 = QVideoFrame(frame_src);
        QVideoFrame frame_dst_2 = QVideoFrame(frame_src.surfaceFormat());
        frame_dst_1.map(QVideoFrame::ReadOnly);
        frame_dst_2.map(QVideoFrame::ReadOnly);
        qDebug() << "frame_src  : mappedBytes:" << frame_src.mappedBytes(0);
        qDebug() << "frame_dst_1: mappedBytes:" << frame_dst_1.mappedBytes(0);
        qDebug() << "frame_dst_2: mappedBytes:" << frame_dst_2.mappedBytes(0);
    

    result:
    frame_src : mappedBytes: 983040
    frame_dst_1: mappedBytes: 983040
    frame_dst_2: mappedBytes: 921600

    The pixelFormat is Format_YUV420P. It happens on Debian 11 with Qt version 6.7.1, with Qt version 6.3.2 it works like expected.
    I am just guessing, but maybe it is related to switching from gstreamer to ffmpeg...

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vincent9874
      wrote on last edited by
      #2

      Report the issue to Qt’s bug tracker, mentioning the different mappedBytes values between Qt versions 6.7.1 and 6.3.2, and the potential link to the switch from gstreamer to ffmpeg.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        felsi
        wrote on last edited by
        #3

        Ok, thank you for your response.
        I created a bug report.
        https://bugreports.qt.io/browse/QTBUG-126359

        1 Reply Last reply
        0
        • Nhan NguyenN Nhan Nguyen moved this topic from General and Desktop on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved