Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] no audio on qupzilla (qtwebengine-5.7.1)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Thu Mar 30, 2017 1:08 pm    Post subject: [SOLVED] no audio on qupzilla (qtwebengine-5.7.1) Reply with quote

Hello, I'm trying to debug why qupzilla won't have play any audio (video seems fine).

I have installed
Code:

$ emerge -pv qupzilla qtwebengine ffmpeg
[ebuild   R    ] media-video/ffmpeg-3.2.4:0/55.57.57::gentoo  USE="X alsa bzip2 encode gpl hardcoded-tables iconv libass mp3 network openssl opus postproc sdl theora threads vorbis webp x264 x265 xvid zlib (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -bluray -bs2b -cdio -celt -chromaprint -cpudetection -debug -doc -ebur128 -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libcaca -libilbc -librtmp -libsoxr -libv4l -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug (-neon) -nvenc -openal -opengl -openh264 -oss -pic -pulseaudio -rubberband -samba -schroedinger -snappy -speex -ssh -static-libs {-test} -truetype -twolame -v4l -vaapi -vdpau -vpx -wavpack -xcb -zimg -zvbi" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB
[ebuild   R   ~] dev-qt/qtwebengine-5.7.1:5/5.7::gentoo  USE="bindist geolocation system-ffmpeg system-icu widgets -debug -pax_kernel {-test}" 0 KiB
[ebuild   R   ~] www-client/qupzilla-2.1.1::gentoo  USE="-dbus -debug -gnome-keyring -kwallet -libressl -nonblockdialogs" LINGUAS="pt_BR -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 -is -it_IT -ja_JP -ka_GE -lg -lt -lv_LV -nl_NL -nqo -pl_PL -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_HK -zh_TW" 0 KiB

And ffmpeg shows (I'm including some video codecs as well)
Code:
$ffmpeg -codecs
...
DEA.L. aac                  AAC (Advanced Audio Coding) (decoders: aac aac_fixed )
DEA.L. mp3                  MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame )
DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (encoders: libx264 libx264rgb )
DEV.L. hevc                 H.265 / HEVC (High Efficiency Video Coding) (encoders: libx265 )
....

And I can play local files from all those formats. However, https://html5test.com/ reports that my browser does not support either of these codecs. Similarly youtube.com/html5 reports that my browser does not support h264.

qupzilla has ditched qtwebkit and therefore gstreamer since version 2, however just in case someone asks I have installed gstreamer with enough codecs to play aac mp3 without trouble on my box.


Last edited by potuz on Fri Mar 31, 2017 12:05 am; edited 1 time in total
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Thu Mar 30, 2017 8:22 pm    Post subject: Hopeful idea Reply with quote

Just an idea, but have you tried installing the correct plugins for gstreamer, specifically?

The qtwebkit problem is at east according to the github page, an issue with that browser software...other browsers have built in rather than plugin that would bypass the need for other software, maybe there is an add-on or something that you could try that might allow better access for the html5 stream source :?
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Thu Mar 30, 2017 8:27 pm    Post subject: Re: Hopeful idea Reply with quote

LIsLinuxIsSogood wrote:
Just an idea, but have you tried installing the correct plugins for gstreamer, specifically?

yes, as stated in my post. But anyway it is my understanding that this version of qupzilla does not rely in gstreamer.
Quote:

The qtwebkit problem is at east according to the github page, an issue with that browser software...other browsers have built in rather than plugin that would bypass the need for other software, maybe there is an add-on or something that you could try that might allow better access for the html5 stream source :?

This sentence I did not understand, but in any case it is my understanding that qupzilla ditched qtwebkit in favor of qtwebengine.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Thu Mar 30, 2017 8:54 pm    Post subject: Reply with quote

My bad potuz. I think I clicked to post to soon. What i was suggesting is either the right setting or optional add-on that could get installed providing the easiest solution - like some browser addons for embedded video - bypassing the native video player. Is this an audio or video issue?

Are you sure that the streaming software on your local machine is not responsible for allowing access via something
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Veteran
Veteran


Joined: 13 Feb 2016
Posts: 1179

PostPosted: Thu Mar 30, 2017 8:56 pm    Post subject: Reply with quote

Personally, i would not be surprised if this was an issue actually with ffmpeg

I ditched it a long time ago, on both of my machines, although maybe it is back on one of them now due to dependency in one or another player or server/client setup can't recall..
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Mar 30, 2017 9:04 pm    Post subject: Reply with quote

Does it works in any other browser on your box?

I have many more ffmpeg flags.

https://github.com/QupZilla/qupzilla/issues/1476

Quote:

Can Not Play YouTube Videos


https://github.com/QupZilla/qupzilla/issues/573


Just my guess

Code:
ASUS-G75VW roman # equery u qtwebkit
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-qt/qtwebkit-5.7.1:
 U I
 - - debug        : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                    https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - geolocation  : Enable physical position determination via dev-qt/qtpositioning
 - - gstreamer    : Enable HTML5 audio/video support via media-libs/gstreamer using SLOT 1.0
 - - gstreamer010 : Enable HTML5 audio/video support via media-libs/gstreamer using SLOT 0.10
 + + jit          : Enable just-in-time compilation for improved performance. May prevent use of some PaX memory protection features in Gentoo Hardened.
 + + multimedia   : Enable HTML5 audio/video support via dev-qt/qtmultimedia
 + + opengl       : Add support for OpenGL (3D graphics)
 - - orientation  : Enable device orientation detection via dev-qt/qtsensors
 - - printsupport : Enable printing via dev-qt/qtprintsupport
 - - qml          : Build QML/QtQuick bindings
 - - test         : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use
                    anymore
 - - webchannel   : Enable integration with dev-qt/qtwebchannel
 + + webp         : Add support for WebP image format


qupzilla => qtwebkit => qtmultimedia

please check your use-flags for those qt-XY + kde related pacakges

qlist -Iv qt
qlist -Iv kde

to get a list of packages on your box

--

could also be the cause, not sure, just a thought, that this piece of software needs gstreamer?

https://discourse.trueos.org/t/qupzilla-no-sound-and-ssl-errors/363

have you tried another version of that software?
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Thu Mar 30, 2017 9:11 pm    Post subject: Reply with quote

I just found out about
Code:
portage/dev-qt/qtwebengine/files/qtwebengine-5.7.1-fix-audio-detection.patch

So I'm recompiling against qtwebengine-5.7.1-r1, hope that's it.

Also I didn't want to recompile twice to check so I also added USE+="-bindist" because of this line in the ebuild:
Code:
$(usex bindist '' 'WEBENGINE_CONFIG+=use_proprietary_codecs')
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Mar 31, 2017 12:03 am    Post subject: Reply with quote

Marking this thread as solved, indeed it was an issue with qtwebengine. I do not know if it was forcing the WEBENGINE_CONFIG+=use_proprietary_codecs by using -bindist or if it was forcing the 'alsa' audio engine as per the patch. Anyway, this thread might be useful for someone with a similar setup. It's a pity that I had to recompile a few times qtwebengine (that takes over 2 hours in my laptop) to find this out.

To those with the similar problems. As I said in my first post, gstreamer, qtwebkit and qtmultimedia are completely irrelevant since qupzilla has ditched qtwebkit in favor of qtwebengine. Focus should be in the installation of ffmpeg (if using the external library USE in qtwebengine) and qtwebengine.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Fri Mar 31, 2017 12:43 pm    Post subject: ><)))°€ Reply with quote

Yes, version 1.8.9 of QupZilla is the last QtWebKit version, and it has been using QtWebEngine since 2.0.0 what comes to releases.

In 'dev-qt/qtwebengine-5.7.1' the audio detection changed (upstream) which indeed didn't quite seem to work for us, hence the patch (if there were issues with that, you could blame me for creating it, though I did not commit it).

The 'bindist' USE-flag is usually suggested to be disabled globally, /if/ the binaries created are not to be distributed, which is probably true for most personal use-cases. :]

As a sidey-note, 'ccache' can help when compiling the same thing again and again, though obviously too late to be of any good in this case...
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Mar 31, 2017 1:05 pm    Post subject: Re: ><)))°€ Reply with quote

Chiitoo wrote:

In 'dev-qt/qtwebengine-5.7.1' the audio detection changed (upstream) which indeed didn't quite seem to work for us, hence the patch (if there were issues with that, you could blame me for creating it, though I did not commit it).

Thanks, if it wasn't for your patch I wouldn't have solved this at all, I started looking at the ebuild only to see if they forced WEBENGINE_CONFIG+=use_proprietary_codecs and found the comment about the patch by chance.
Quote:

The 'bindist' USE-flag is usually suggested to be disabled globally, /if/ the binaries created are not to be distributed, which is probably true for most personal use-cases. :]

I'm not sure why in the hell that USE flag entered my global make conf! I even thought it was part of the profile and was pissed off that I had to add -bindist in my package.use file for each QT package :) I might be carrying that make.conf with that "bindist" for years without noticing.
Quote:

As a sidey-note, 'ccache' can help when compiling the same thing again and again, though obviously too late to be of any good in this case...

Thanks I might try it again, I stopped using it when I started cross-compiling for a Raspberry-Pi and had hard to debug troubles that ended up being because of ccache.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Fri Mar 31, 2017 1:38 pm    Post subject: Re: ><)))°€ Reply with quote

potuz wrote:
Thanks, if it wasn't for your patch I wouldn't have solved this at all, I started looking at the ebuild only to see if they forced WEBENGINE_CONFIG+=use_proprietary_codecs and found the comment about the patch by chance.

Glad it helped!

Quote:
I'm not sure why in the hell that USE flag entered my global make conf! I even thought it was part of the profile and was pissed off that I had to add -bindist in my package.use file for each QT package :) I might be carrying that make.conf with that "bindist" for years without noticing.

It is infact by default in the 'make.conf' that comes with the stage3, and if I don't remember horribly wrong, it is so that Gentoo can distribute them packages initially (or some of them).

From a quick look-see though, I can't seem to find mentions of it in the handbook other than this:
Quote:
Thanks I might try it again, I stopped using it when I started cross-compiling for a Raspberry-Pi and had hard to debug troubles that ended up being because of ccache.

Yeah, I believe I've had to switch it off at times too, but not /too/ often. :]
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum