<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QVideoFrame constructor with QVideoFrameFormat fails]]></title><description><![CDATA[<p dir="auto">Hello!<br />
I am using QVideoFrame::QVideoFrame(const QVideoFrameFormat &amp;format) to create a new QVideoFrame and i might have found a little bug. For demonstration:</p>
<pre><code>    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() &lt;&lt; "frame_src  : mappedBytes:" &lt;&lt; frame_src.mappedBytes(0);
    qDebug() &lt;&lt; "frame_dst_1: mappedBytes:" &lt;&lt; frame_dst_1.mappedBytes(0);
    qDebug() &lt;&lt; "frame_dst_2: mappedBytes:" &lt;&lt; frame_dst_2.mappedBytes(0);
</code></pre>
<p dir="auto">result:<br />
frame_src  : mappedBytes: 983040<br />
frame_dst_1: mappedBytes: 983040<br />
frame_dst_2: mappedBytes: 921600</p>
<p dir="auto">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.<br />
I am just guessing, but maybe it is related to switching from gstreamer to ffmpeg...</p>
]]></description><link>https://forum.qt.io/topic/157214/qvideoframe-constructor-with-qvideoframeformat-fails</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 09:21:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/157214.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Jun 2024 05:57:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QVideoFrame constructor with QVideoFrameFormat fails on Fri, 14 Jun 2024 09:21:30 GMT]]></title><description><![CDATA[<p dir="auto">Ok, thank you for your response.<br />
I created a bug report.<br />
<a href="https://bugreports.qt.io/browse/QTBUG-126359" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-126359</a></p>
]]></description><link>https://forum.qt.io/post/802620</link><guid isPermaLink="true">https://forum.qt.io/post/802620</guid><dc:creator><![CDATA[felsi]]></dc:creator><pubDate>Fri, 14 Jun 2024 09:21:30 GMT</pubDate></item><item><title><![CDATA[Reply to QVideoFrame constructor with QVideoFrameFormat fails on Wed, 12 Jun 2024 08:37:51 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/post/802458</link><guid isPermaLink="true">https://forum.qt.io/post/802458</guid><dc:creator><![CDATA[vincent9874]]></dc:creator><pubDate>Wed, 12 Jun 2024 08:37:51 GMT</pubDate></item></channel></rss>