HTML5 sound choppy when played at 4x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Fix Released
|
Medium
|
|||
firefox (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I use a bookmarklet to set the playback rate on the HTML5 player element to 4x (tested with YouTube). Chrome handles the audio flawlessly, but Firefox becomes choppy after 2x.
Here's the bookmarklet. The following line may get mangled or removed...
"javascript:
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: firefox 50.1.0+
ProcVersionSign
Uname: Linux 4.4.0-57-generic x86_64
NonfreeKernelMo
AddonCompatChec
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
BuildID: 20161209095719
Channel: Unavailable
CurrentDesktop: GNOME
Date: Thu Jan 5 20:28:52 2017
Extensions: extensions.sqlite corrupt or missing
ForcedLayersAccel: False
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
IncompatibleExt
InstallationDate: Installed on 2016-12-21 (16 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
IpRoute:
default via 192.168.0.1 dev enp9s0 proto static metric 100
169.254.0.0/16 dev enp9s0 scope link metric 1000
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.0.0/24 dev enp9s0 proto kernel scope link src 192.168.0.108 metric 100
Locales: extensions.sqlite corrupt or missing
Plugins:
Gnome Shell Integration - /usr/lib/
Shockwave Flash - /usr/lib/
PrefSources: prefs.js
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/zsh
Profiles: Profile0 (Default) - LastVersion=
RelatedPackageV
RunningIncompat
SourcePackage: firefox
Themes: extensions.sqlite corrupt or missing
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/11/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.40
dmi.board.
dmi.board.name: X99A GODLIKE GAMING (MS-7883)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: MS-7883
dmi.product.
dmi.sys.vendor: MSI
Changed in firefox (Ubuntu): | |
status: | Incomplete → New |
Changed in firefox: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in firefox: | |
status: | Confirmed → Fix Released |
Steps to reproduce:
0. (fresh profile)
1. Navigate to any page with a <video> element on it
- Preferably with human speech, since it's much more noticeable that way /vimeo. com/64654583, https:/ /www.youtube. com/watch? v=JWD1Fpdd4Pc, https:/ /www.youtube. com/watch? v=OyfBQmvr2Hc
- Suggested links: https:/
2. Open the JS Console querySelector( 'video' ).playbackRate = 3.5` (any number > 2 works, but higher speeds are much more noticeable)
3. Run `document.
4. Listen to the audio (there's nothing wrong with the video)
Expected results: Smooth audio playback with no audible stuttering, skipping, or artifacts
Observed results: Audio with skipping and stuttering, especially noticeable when there's human speech
Notes:
- Playback works just fine on WebKit and its derivatives (Opera, Chrome, Safari, Electron-based apps)
- Playback is also just fine on VLC
- Reproduced on: my 2014 MacBook Pro, a 2013 Mac Mini, and a 1st-gen MacBook, all running macOS High Sierra 10.13.2