Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603498 - dev-qt/qtwebengine-5.7.1 - no audio output with html5 videos (Youtube, etc.)
Summary: dev-qt/qtwebengine-5.7.1 - no audio output with html5 videos (Youtube, etc.)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-22 20:35 UTC by Bob Wya
Modified: 2017-02-02 08:09 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,9.87 KB, text/plain)
2016-12-22 20:35 UTC, Bob Wya
Details
qtwebengine-5.7.1_alsa-fix.patch (qtwebengine-5.7.1_alsa-fix.patch,702 bytes, patch)
2016-12-22 20:43 UTC, Bob Wya
Details | Diff
=dev-qt/qtwebengine-5.7.1::gentoo build log (stock) (dev-qt:qtwebengine-5.7.1:20161217-005447.log.gz,307.11 KB, application/octet-stream)
2016-12-22 21:52 UTC, Bob Wya
Details
Emerge --info (emergeInfo.txt,17.99 KB, text/plain)
2016-12-31 23:24 UTC, Daniele
Details
Latest QtWebEngine build log (qtwebengineEmerge.log,15.65 KB, text/plain)
2016-12-31 23:25 UTC, Daniele
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Wya 2016-12-22 20:35:43 UTC
Created attachment 457146 [details]
emerge --info

Tested with =media-sound/pulseaudio-9.0::gentoo and =www-client/qupzilla-9999::qt.


emerge -pv qupzilla pulseaudio qtwebengine
[ebuild   R   ~] dev-qt/qtwebengine-5.7.1:5/5.7::gentoo  USE="geolocation system-ffmpeg widgets -bindist -debug -pax_kernel -system-icu {-test}" 0 KiB
[ebuild   R    ] media-sound/pulseaudio-9.0::gentoo  USE="X alsa alsa-plugin asyncns bluetooth caps dbus gdbm glib gnome ipv6 native-headset orc ssl systemd tcpd udev webrtc-aec zeroconf -doc -equalizer -gtk -jack -libressl -libsamplerate -lirc (-neon) -ofono-headset (-oss) -qt4 -realtime (-selinux) -sox (-system-wide) {-test} -xen" ABI_X86="32 (64) (-x32)" 1,502 KiB
[ebuild   R   #] www-client/qupzilla-9999::qt  USE="dbus gnome-keyring -debug -kde -libressl -nonblockdialogs" LINGUAS="-ar_SA -bg_BG -ca_ES -cs_CZ -da_DK -de_DE -el_GR -es_ES -es_MX -es_VE -eu_ES -fa_IR -fi_FI -fr_FR -gl_ES -he_IL -hr_HR -hu_HU -id_ID -it_IT -ja_JP -ka_GE -lg -lt -lv_LV -nl_NL -nqo -pl_PL -pt_BR -pt_PT -ro_RO -ru_RU -sk_SK -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv_SE -tr_TR -uk_UA -uz@Latn -zh_CN -zh_TW" 0 KiB


Qupzilla thinks that sound is playing when playing videos on Youtube. Tabs can be (un)muted, etc.

However no alsa or pulseaudio sound stream is available in pavucontrol.

This issue has also been reported on irc (#gentoo-qt) to affect:
=kde-apps/konqueror-16.12.0:5::gentoo
including a pure alsa sound setup...
Comment 1 Bob Wya 2016-12-22 20:43:33 UTC
Created attachment 457148 [details, diff]
qtwebengine-5.7.1_alsa-fix.patch

This hacky patch (by Chiitoo) appears to fix the html5 audio issues for both Konqueror and Qupzilla (qtwebengine -based).

It's been tested on Gentoo installs with both pure-ALSA and Pulseaudio sound systems. On a Pulseaudio Gentoo setup - the Qupzilla sound stream came through "perfectly"(TM) as an Alsa-plugin[Qupzilla] audio stream (volume control, etc. all work).

The patch is very useful to have (IMHO) - till a more "refined" solution arrives!
Comment 2 Bob Wya 2016-12-22 21:52:11 UTC
Created attachment 457158 [details]
=dev-qt/qtwebengine-5.7.1::gentoo build log (stock)

Stock build log for the =dev-qt/qtwebengine-5.7.1::gentoo ebuild...

Should this package really build with:
... -D use_pulseaudio=0 -D use_alsa=0 ...
??

Ref:
Project MESSAGE: Running gyp_qtwebengine "/tmp/portage/dev-qt/qtwebengine-5.7.1/work/qtwebengine-opensource-src-5.7.1/src/core" -D qt_cross_compile=0 -D qt_os="desktop_linux" -D pkg-config="pkg-config 2> /dev/null" -D use_qt=1 -D v8_use_external_startup_data=0 -D enable_basic_printing=1 -D enable_print_preview=0 -D enable_web_speech=0 -D enable_extensions=0 -D linux_use_bundled_gold=0 -D linux_use_bundled_binutils=0 -D linux_use_gold_flags=0 -D toolkit_uses_gtk=0 -D use_ash=0 -D use_aura=1 -D use_cairo=0 -D use_clipboard_aurax11=0 -D use_cups=0 -D use_gconf=0 -D use_gio=0 -D use_gnome_keyring=0 -D use_kerberos=0 -D use_pango=0 -D use_openssl=1 -D use_nss_certs=1 -D use_openssl_certs=0 -D use_system_zlib=1 -D use_system_libpng=1 -D use_system_libjpeg=1 -D use_system_harfbuzz=1 -D use_pulseaudio=0 -D use_alsa=0 -D use_system_libevent=1 -D use_system_libwebp=1 -D use_system_libsrtp=1 -D use_system_libxml=1 -D use_system_jsoncpp=1 -D use_system_opus=1 -D use_system_snappy=1 -D use_system_libvpx=1 -D use_system_protobuf=1 -D desktop_linux=1 -D enable_widevine=1 -D clang=0 -D host_clang=0 -D qtwe_process_name_debug=QtWebEngineProcess -D qtwe_process_name_release=QtWebEngineProcess -D disable_glibcxx_debug=1 -D remove_webcore_debug_symbols=1 -D remove_v8base_debug_symbols=1 -D disable_fatal_linker_warnings=1 -D sysroot="" -D target_arch=x64 -D proprietary_codecs=1 -D ffmpeg_branding=Chrome -D enable_spellcheck=0.g projects from gyp files...
Comment 3 Daniele 2016-12-31 23:24:26 UTC
I'm having the same exact issue, with both QupZilla and Qutebrowser (Git version, only with webengine backend)
I'm adding my emerge --info and qtwebengine build log in the hope to help
Comment 4 Daniele 2016-12-31 23:24:55 UTC
Created attachment 458190 [details]
Emerge --info
Comment 5 Daniele 2016-12-31 23:25:24 UTC
Created attachment 458192 [details]
Latest QtWebEngine build log
Comment 6 Daniele 2017-01-01 12:04:48 UTC
I can confirm that the proposed workaround works both in QupZilla and QuteBrowser with the WebEngine backend enabled
Comment 7 Jay Kamat 2017-01-04 07:01:20 UTC
This patch solves this issue for me too, thanks!
Comment 8 Arnaud Vallette d'Osia 2017-01-06 17:29:06 UTC
Solves it for me also : thanks !
Comment 9 Michael Palimaka (kensington) gentoo-dev 2017-02-02 08:09:23 UTC
This has been fixed in git.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e146460dfde8972861dae5099f45e9dee5da2b6b