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

Improve audio quality by selecting highest audio bitrate #6504

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

AlyoshaVasilieva
Copy link

Improve audio quality by selecting stream with highest audio bitrate

Pull Request Type

  • Bugfix

Related issue

#6138

Description

Select the stream with the highest audio bitrate. Improves the issue where FreeTube usually uses the lowest quality audio available, but does not fix it. This patch seems to work as long as you do not select a quality while watching a video. Selecting a quality (e.g. 1080p) specifically while watching a video will usually give you bad audio. See #6138 for more info. I don't know how to fix this issue in the general case, but at least this improves things.

Testing

Try watching videos with/without this patch, e.g. https://youtu.be/G4qVG_FL4_s

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.22.1 (1c3728e + this patch)

Does not fix it in all situations; selecting a labeled quality will usually result in the lowest quality audio being chosen.
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 3, 2025
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 3, 2025 13:43
Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepting this as a temporary workaround until a proper solution is implemented. Worth noting that this increases bandwidth use and will slow down video loading.

Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quality selector display broken
image

Using commit before this PR
image

@AlyoshaVasilieva
Copy link
Author

I don't know how to fix the quality selector display

@absidue
Copy link
Member

absidue commented Jan 15, 2025

@PikachuEXE @AlyoshaVasilieva The quality selector being broken is expected, shaka-player quality selector chooses the first variants in the array, but as we are now intentionally selecting something else, the quality selector doesn't know what to show. The solutions are don't merge this PR or build an entirely custom quality selector that knows how to cope with our non-standard behaviour. The latter is definitely out of scope of this pull request.

@absidue absidue self-requested a review January 15, 2025 06:37
@PikachuEXE
Copy link
Collaborator

Even though I might be fine with using this personally
I think it would appears broken to normal users unaware of this workaround and would report it as an issue
This should not be included in a release IMO

@maep--

This comment has been minimized.

Copy link
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@PietJanHein

This comment has been minimized.

@PietJanHein

This comment has been minimized.

@PietJanHein

This comment has been minimized.

@clearins1ght

This comment has been minimized.

@absidue
Copy link
Member

absidue commented Feb 6, 2025

You can leave as many comments as you want, but it won't change the fact that this is currently on hold until a solution is found for the quality selector. Fixing one thing just to break something else in the process is not great.

@absidue absidue added PR: WIP and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Feb 6, 2025
@PietJanHein
Copy link

You can leave as many comments as you want, but it won't change the fact that this is currently on hold until a solution is found for the quality selector. Fixing one thing just to break something else in the process is not great.

That is understandable, It is not my intention to put extra pressure on the developers, I just wanted to make clear that more people would like it if that would/could get fixed. Until then FreeTube also is nice to get the videolinks and then we can simply play it in mpv.

@PikachuEXE
Copy link
Collaborator

Please use reaction to "vote" / express your support for this change
Devs are all getting notifications for each new comment.
Unless you have helpful info to push this forward (towards merge / close) attention consuming comments should be restrained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants