{"id":832,"date":"2025-04-26T07:19:56","date_gmt":"2025-04-26T06:19:56","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=832"},"modified":"2025-04-26T07:19:56","modified_gmt":"2025-04-26T06:19:56","slug":"beetplayer2-and-qt6-multimedia","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=832","title":{"rendered":"BeetPlayer2 and Qt6-Multimedia"},"content":{"rendered":"\n<p>Well, recently I noticed that BeetPlayer2 would stop playing in shuffle mode. At first glance it was completely random. Sometimes it would play 5 songs, sometimes not even 1. After several hours of tedious debugging I eventually found out that it is a <a href=\"https:\/\/bugreports.qt.io\/browse\/QTBUG-135307\">bug<\/a> in Qt6-Multimedia (6.9), specifically the ffmpeg-backend. It prevents mp3-files with mjpeg-covers from playing without jumping through hoops. Since a <a href=\"https:\/\/codereview.qt-project.org\/c\/qt\/qtmultimedia\/+\/638415\">fix<\/a> is available, I tried to apply it to the official <a href=\"https:\/\/archlinux.org\/packages\/extra\/x86_64\/qt6-multimedia\/\">PKGBUILD<\/a> of Qt6-Multimedia. It was surprisingly easy&#8230;<\/p>\n\n\n\n<p>First, download the fix and add the diff to the source array in the PKGBUILD:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source=(git+https:\/\/code.qt.io\/qt\/$_pkgfn#tag=v$_pkgver <strong>58c2dbe.diff<\/strong>)<\/code><\/pre>\n\n\n\n<p>Then regenerate the checksums with <code>makepkg -g >> PKGBUILD<\/code> and remove the old checksum array. Next, add <code>prepare()<\/code> to actually apply the patch:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>prepare() {\n  cd $_pkgfn\n  patch -Np1 -i ..\/58c2dbe.diff\n}<\/code><\/pre>\n\n\n\n<p>Don&#8217;t forget to bump <code>pkgrel<\/code> before building the packages with <code>makepkg -s<\/code><\/p>\n\n\n\n<p>When done, install them with <code>pacman -U<\/code> and enjoy uninterrupted playback!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, recently I noticed that BeetPlayer2 would stop playing in shuffle mode. At first glance it was completely random. Sometimes it would play 5 songs, sometimes not even 1. After several hours of tedious debugging I eventually found out that it is a bug in Qt6-Multimedia (6.9), specifically the ffmpeg-backend. It prevents mp3-files with mjpeg-covers &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=832\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">BeetPlayer2 and Qt6-Multimedia<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[48],"class_list":["post-832","post","type-post","status-publish","format-standard","hentry","category-arch-linux","tag-ffmpeg"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=832"}],"version-history":[{"count":1,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/832\/revisions"}],"predecessor-version":[{"id":833,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/832\/revisions\/833"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}