<?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[Opencv play mp4 but there is no sound]]></title><description><![CDATA[<p dir="auto">Hi everyone !</p>
<p dir="auto">I use Qt5, and opencv play mp4 file, has a good picture, but I want more sound then I need to do something more</p>
<pre><code>    VideoCapture cap1("/storage/emulated/0/Download/QV5.mp4");
    while(true)
    {
    Mat ft;
    if (cap1.read(ft))
    {
    cv::resize(ft,ft, Size(300, 300),INTER_AREA);   // thay đổi kích thước
    QImage img= QImage((const unsigned char*)(ft.data),
                                        ft.cols,ft.rows,
                                        QImage::Format_BGR888);   // hiển thị
     ui-&gt;label_2-&gt;setPixmap(QPixmap::fromImage(img));  // show lên label
    }
     QCoreApplication :: processEvents ();
    }
</code></pre>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/topic/126445/opencv-play-mp4-but-there-is-no-sound</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 03:34:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126445.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 May 2021 15:01:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Opencv play mp4 but there is no sound on Fri, 07 May 2021 18:27:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Either use QtMultimedia or VLC or even ffmpeg. OpenCV is not a multimedia playback library.</p>
]]></description><link>https://forum.qt.io/post/658571</link><guid isPermaLink="true">https://forum.qt.io/post/658571</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 07 May 2021 18:27:31 GMT</pubDate></item></channel></rss>