<?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[QML MediaPlayer Performace]]></title><description><![CDATA[<p dir="auto">Hi comunity,<br />
I am getting an unexpected high use of CPU rate when using MediaPlayer + VideoOutput QML components.<br />
I say "unexpected" because I am playering the same video file with QtWidget (QMediaPlayer +  QVideoWidget) and I am getting a not bad response.</p>
<p dir="auto">So, I would like to know if anyone knows about QML Media Player CPU performance or someone can give a tip in order to use properly these QML component or to reduce CPU rate, or let me know if that is a QML limitation.</p>
<p dir="auto">Environment:<br />
SO: Windows<br />
QT: 5.4<br />
Kit: Desktop Qt 5.4 MSVC2013 32bit</p>
<p dir="auto">QTWidget Code:<br />
@ player = new QMediaPlayer;<br />
player-&gt;setMedia(QUrl::fromLocalFile("file.mp4"));</p>
<p dir="auto">playerWidget = new QVideoWidget;<br />
player-&gt;setVideoOutput(playerWidget);<br />
playerWidget-&gt;show();</p>
<p dir="auto">player-&gt;play();@</p>
<p dir="auto">QML Code:<br />
@MediaPlayer {<br />
id: playMusic<br />
source: "file.mp4"</p>
<pre><code>}

VideoOutput {
    anchors.fill: parent
    source: playMusic
}

Component.onCompleted: { playMusic.play() }@
</code></pre>
<p dir="auto">Many thanks.</p>
]]></description><link>https://forum.qt.io/topic/50298/qml-mediaplayer-performace</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 03:43:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/50298.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jan 2015 15:04:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML MediaPlayer Performace on Wed, 29 Apr 2015 14:33:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have the same problem like you. Did you resolve it?</p>
<p dir="auto">best regards</p>
]]></description><link>https://forum.qt.io/post/271994</link><guid isPermaLink="true">https://forum.qt.io/post/271994</guid><dc:creator><![CDATA[mastablasta]]></dc:creator><pubDate>Wed, 29 Apr 2015 14:33:18 GMT</pubDate></item></channel></rss>