Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Strong audio compression artifacts audible since version 0.22.0 #6138

Open
5 of 6 tasks
MegadoomerX opened this issue Nov 10, 2024 · 3 comments
Open
5 of 6 tasks
Labels
B: feature stopped working bug Something isn't working

Comments

@MegadoomerX
Copy link

Guidelines

  • I have encountered this bug in the latest release of FreeTube.
  • I have encountered this bug in the official downloads of FreeTube.
  • I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • This issue contains only one bug.

Describe the bug

Since updating to version 0.22.0 on Debian 12/Flatpak, I notice strong audio artifacts in videos using FreeTube that were not there before. The artifacts sound like a form of heavy audio compression ("aquarium-effect") and appear in every quality setting using the DASH video format. I can only compare legacy formats in 360p, however, even on this lower quality setting, the audio artifacts are less noticeable (or different) than using the DASH format.

The artifacts are much more noticeable with music, rather than speech. To reproduce, play the following video in both FreeTube and the native YouTube website:
https://youtu.be/G4qVG_FL4_s

Already in the beginning, the artifacts can be heard in the "s"-sounds of the voice and the clarity of the precussion.

Expected Behavior

FreeTube should not introduce audio artifacts and did not in past versions (at least not audibly).

Issue Labels

feature stopped working

FreeTube Version

v0.22.0 Beta

Operating System Version

Debian 12

Installation Method

Flathub

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

previous version

Additional Information

No response

Nightly Build

@mahidzzr
Copy link

mahidzzr commented Nov 11, 2024

I have encountered the same bug. I have a guess why it is happening. After the update the default audio quality of DASH format become 54 kbits/s. And there is no option to see or change it in the UI. it should have been max which is 140 kbits/s.

For now a temporary solution is switch to Audio format change the audio quality to 140 kbits/s and then switch back to DASH format, Although changing video quality after that brings back the problem again.

@jspast
Copy link

jspast commented Nov 15, 2024

For a moment I thought this was not happening for other people, I even tried asking #5678 author who apparently got this problem fixed in 0.22.

Just to add a bit of information: it seems the player uses opus 249 stream for every video that has it available, instead of 251. Artifacts are extremely noticeable on stream 249 as its bitrate is really low. It's so impactful that for a reasonable amount of videos, the stream is not even generated by YouTube.

@AlyoshaVasilieva
Copy link

I replaced this line:

with

        chosenVariant = matches.reduce((prev, current) => {
          return (current.audioBandwidth > prev.audioBandwidth) ? current : prev
        }, matches[0])

and it seems to improve things; I see Opus 251 and AAC 140 (128kbps?) instead of Opus 249. However, this is only if you don't select a quality manually. Selecting a quality manually chooses low quality audio streams. I don't know how to fix it fully (and this 'fix' is suspiciously hacky to me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: feature stopped working bug Something isn't working
Projects
Status: To assign
Development

No branches or pull requests

4 participants