webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
736 stars 63 forks source link

16 bit wav file audio is distorted #129951

Open yusufmodan opened 9 months ago

yusufmodan commented 9 months ago

Found this bug on the Calm app at https://www.calm.com/app/player/uOA0ZQKjwB, audio file also available at https://drive.google.com/file/d/1E93Y-44XrBhrtZvETQt_iSa9IihJiink/view?usp=sharing

URL: https://drive.google.com/file/d/1E93Y-44XrBhrtZvETQt_iSa9IihJiink/view?usp=sharing

Browser / Version: Firefox 119.0 Operating System: Mac OS X 10.15 Tested Another Browser: Yes Chrome not reproducible on Chrome

Problem type: Video or audio doesn't play Description: Audio is distorted when playing Steps to Reproduce: Robotic Audio Distortion for 16 bit wav Files Playback on Firefox 119.0.1

Environment:

Operating System: macOS Sonoma 14.1.1 (23B81), Apple M1 Max Browser: Firefox 119.0.1 (64-bit) Comparative Browser for Testing: Firefox 117.0.1 (64-bit), where the issue is not present Description: In Firefox version 119.0.1, there is a noticeable robotic distortion when playing 16 bit audio files. This issue does not occur in Firefox version 117.0.1. The problem is consistent and reproducible with the specific audio file tested.

Steps to Reproduce:

Navigate to https://drive.google.com/file/d/1E93Y-44XrBhrtZvETQt_iSa9IihJiink/view?usp=sharing Observe the audio distortion during playback. Additionally, download the same audio file and play it locally in Firefox using an HTML file with an <audio> tag. The robotic distortion is evident in both scenarios. Resampling the same file and exporting at 24 bit resolves the issue

Expected Result: The 16 bit audio file should play without any distortion, as it does in Firefox 117.0.1.

Actual Result: There is a consistent robotic distortion throughout the playback of the audio file.

Additional Information:

The issue is reproducible with the same audio file each time. Audio Hardware: Standard Apple M1 Max audio hardware and drivers. The distortion occurs throughout the entire file, not in specific parts.

Audio File Properties:

[STREAM]
index=0
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
profile=unknown
codec_type=audio
codec_tag_string=[1][0][0][0]
codec_tag=0x0001
sample_fmt=s16
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=16
initial_padding=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/48000
start_pts=N/A
start_time=N/A
duration_ts=29837808
duration=621.621000
bit_rate=1536000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[FORMAT]
filename=daily_calm_fri_nov17.wav
nb_streams=1
nb_programs=0
format_name=wav
format_long_name=WAV / WAVE (Waveform Audio)
start_time=N/A
duration=621.621000
size=119351948
bit_rate=1536009
probe_score=99
TAG:encoded_by=iZotope RX Pro Audio Editor
TAG:originator_reference=USIZTC02C355GMD6R140209124399993
TAG:date=2022-10-13
TAG:creation_time=14:02:09
TAG:time_reference=807206400
TAG:coding_history=
[/FORMAT]
Browser Configuration
  • None

From webcompat.com with ❤️

softvision-raul-bucata commented 9 months ago

Thanks for the report. The provided URL for the file (drive) requires access. This needs to be set to public:

Screenshot_1

Playing a similar wav file that is stored in our drive does not present any issues.

We appreciate your report. I was not able to reproduce the issue following the steps to reproduce

Tested with:

Browser / Version: Firefox Release 120.0 (64-bit)/ Firefox Nightly 122.0a1 (2023-11-22) (64-bit) Operating System: Windows 10 PRO x64 Operating System: Mac Ventura 13.1

Suggestion: Try updating the browser, clearing cache/data/cookies, disabling add-ons and Ad-blocker (if available) and extensions or use a clean profile, and check again? If there are any changes made to the default settings of the browser (e.g. in about:config) please revert to the default settings and try again. Also, have the required cookies been accepted for this page?

[qa_47/2023]

yusufmodan commented 9 months ago

Thanks for looking @softvision-raul-bucata

Here is an updated link making the file publicly available. https://drive.google.com/file/d/1E93Y-44XrBhrtZvETQt_iSa9IihJiink/view?usp=sharing

Try updating the browser, clearing cache/data/cookies, disabling add-ons and Ad-blocker (if available) and extensions or use a clean profile, and check again? If there are any changes made to the default settings of the browser (e.g. in about:config) please revert to the default settings and try again. Also, have the required cookies been accepted for this page?

I am able to reproduce the issue on a clean fresh install of Firefox on MacOS. This device did not have FireFox before. I don't have any extensions and I have gotten reports from many users confirming the issue.

I should add that this is not specifically an issue with google drive, but the audio file itself. This Audio file, when played via Firefox using HTML <audio> tag sounds like it is bitcrushed. As I mentioned in the original comment, this does not happen with Firefox 117.0.1 but does for Firefox 119. I have more audio files that have this behavior that I can share.

I have also reproduced by downloading the file locally and playing on Firefox via the following HTML

<!DOCTYPE html>
<html>
<head>
    <title>Audio Player</title>
</head>
<body>

<h1>Play Local WAV File</h1>

<audio controls>
    <source src="file:////<insert file location>" type="audio/wav">
</audio>

</body>
</html>
softvision-raul-bucata commented 9 months ago

@yusufmodan Thanks for that. Indeed, it is reproducible.

We appreciate your report. I was able to reproduce the issue by following the steps to reproduce

Tested with:

Browser / Version: Firefox Release 120.0 (64-bit)/ Firefox Nightly 122.0a1 (2023-11-28) (64-bit) /Chrome Version 119.0.6045.160 (Official Build) (64-bit) /Safari 16.2 Operating System: Mac Ventura 13.1

Notes:

  1. Reproducible regardless of the status of ETP.
  2. Reproducible on the latest build of Firefox Nightly and Release.
  3. Works as expected using Chrome and Safari.

Moving this to NeedsDiagnosis for further investigations.

[inv_48/2023]