WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
271462
[GStreamer] Audio recorded via WebKit in WhatsApp voice messages is of low quality.
https://bugs.webkit.org/show_bug.cgi?id=271462
Summary
[GStreamer] Audio recorded via WebKit in WhatsApp voice messages is of low qu...
Angelo Schirinzi
Reported
2024-03-22 06:39:19 PDT
Audio recorded via WebKit in WhatsApp voice messages is of low quality. There are several GStreamer bugs on WebKit with the use of WhatsApp. Please consider giving a chance to this too:
Bug 267809
. Thank you for your precious work!
Attachments
gst.log file
(9.33 MB, text/x-log)
2024-03-25 05:03 PDT
,
Angelo Schirinzi
no flags
Details
2nd gst.log
(11.08 MB, application/zip)
2024-03-25 10:07 PDT
,
Angelo Schirinzi
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2024-03-22 11:12:11 PDT
Please provide details about this, because afaik that feature requires usermedia (mic) capture support and capture permission handling in the UI process, none of those are enabled by default... so... Which version of webkitgtk are you referring to? How did you get it (distro? or some flatpak app packaging it?)
Angelo Schirinzi
Comment 2
2024-03-23 04:20:13 PDT
(In reply to Philippe Normand from
comment #1
)
> Please provide details about this, because afaik that feature requires > usermedia (mic) capture support and capture permission handling in the UI > process, none of those are enabled by default... so... > > Which version of webkitgtk are you referring to? > How did you get it (distro? or some flatpak app packaging it?)
I apologize for the omissions. I try to give you all the information I have and you need. If something is missing I need you to guide me to understand how to provide it to you: Linux 6.7.9 Fedora 39 GNOME 45.5 GNOME Web (epiphany) 45.2 (rpm; no flatpak) WebKitGTK 2.42.5 GStreamer 1.22.9 I want to specify that audio recording via GStreamer works perfectly in other applications, such as gnome-sound-recorder and snapshot.
Philippe Normand
Comment 3
2024-03-23 05:42:52 PDT
Ah I forgot Ephy handles those permission requests. I can't reproduce this issue in Ephy TP (flatpak), using WebKitGTK 2.44.0 and GStreamer 1.22.10. Please upgrade to those versions and try again.
Philippe Normand
Comment 4
2024-03-23 11:18:08 PDT
What do you mean with low quality? Can you record the file, maybe with OBS or GNOME's screencast tool? Also please attach a gst debug log, set these env vars: GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE=gst.log and attach the gst.log file here.
Angelo Schirinzi
Comment 5
2024-03-25 04:26:52 PDT
(In reply to Philippe Normand from
comment #3
)
> Ah I forgot Ephy handles those permission requests. > > I can't reproduce this issue in Ephy TP (flatpak), using WebKitGTK 2.44.0 > and GStreamer 1.22.10. Please upgrade to those versions and try again.
I still can't use this configuration in Fedora 39.
Angelo Schirinzi
Comment 6
2024-03-25 05:02:35 PDT
(In reply to Philippe Normand from
comment #4
)
> What do you mean with low quality? Can you record the file, maybe with OBS > or GNOME's screencast tool? > > Also please attach a gst debug log, set these env vars: > GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE=gst.log and attach the gst.log file > here.
Empty log file with GST_DEBUG_FILE=gst.log So I attach this: GST_DEBUG_NO_COLOR=1 GST_DEBUG=3,webkit*:6 epiphany --application-mode --profile= ... 2> gst.log WhatsApp audio recorder is unusable with WebKit. It freezes and the recording does not start immediately. Stopping the recording is also problematic.
Angelo Schirinzi
Comment 7
2024-03-25 05:03:53 PDT
Created
attachment 470588
[details]
gst.log file
Philippe Normand
Comment 8
2024-03-25 05:21:04 PDT
Can you send another log, with GST_DEBUG=3,webkit*:6,audio*:6,alsa*:6,pipewire*:6 ? If it's too big, compress it :)
Philippe Normand
Comment 9
2024-03-25 05:21:38 PDT
Add pulse*:6 too please.
Angelo Schirinzi
Comment 10
2024-03-25 10:07:44 PDT
Created
attachment 470592
[details]
2nd gst.log
Angelo Schirinzi
Comment 11
2024-09-16 03:51:51 PDT
Same issue with WebKitGTK 2.44.3 and GStreamer 1.24.7
Philippe Normand
Comment 12
2024-09-16 06:59:23 PDT
(In reply to Philippe Normand from
comment #4
)
> What do you mean with low quality? Can you record the file, maybe with OBS > or GNOME's screencast tool? >
^^^
Angelo Schirinzi
Comment 13
2024-09-23 12:47:58 PDT
'Low quality' refers to audio. GNOME Screencast does not record audio. It is very easy to reproduce as an issue: just run WhatsApp Web with WebKit (e.g. Epiphany) and record a voice message. The audio is crackly, as if it were overcompressed. Both recording and playing voice messages in WhatsApp is problematic and often leads to freezes or crashes of the browser. If you need more log files feel free to ask.
Philippe Normand
Comment 14
2024-09-24 01:29:22 PDT
whatsapp login is broken, see
bug 275890
... So I can't work on this. Sorry!
Angelo Schirinzi
Comment 15
2024-09-30 09:14:50 PDT
The issue you mentioned has been resolved now
Angelo Schirinzi
Comment 16
2025-11-29 06:00:45 PST
I tried WhatsApp on ZapZap (an application that uses QtWebEngine) and the problem still occurs. At this point I believe we can think that it's not a WebKit problem, but perhaps some other component like Pipewire. I wouldn't know.
Philippe Normand
Comment 17
2025-11-29 09:42:30 PST
Is this producing a low-quality file? gst-launch-1.0 -e autoaudiosrc ! audioconvert ! opusenc ! mp4mux ! queue ! filesink location=opus.mp4 Press ctrl-c after a while...
Angelo Schirinzi
Comment 18
2025-11-30 10:15:13 PST
(In reply to Philippe Normand from
comment #17
)
> Is this producing a low-quality file? > > gst-launch-1.0 -e autoaudiosrc ! audioconvert ! opusenc ! mp4mux ! queue ! > filesink location=opus.mp4 > > Press ctrl-c after a while...
Quality is perfect with this.
Philippe Normand
Comment 19
2025-11-30 10:24:56 PST
Works fine here in Canary...
Philippe Normand
Comment 20
2025-12-01 01:49:29 PST
OK I think I see what you mean, there's some clipping issue in the audio...
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug