Piped
Piped copied to clipboard
Low quality audio chosen for low resolution video
Official Instance
- [X] The bug is reproducable on the official hosted instance or is API related.
Describe the bug
If the video is <480p, Piped selects low quality audio to go with it, even if the user has set their preferred video quality very high (1080p+, implying a preference for high quality in general)
To Reproduce
- https://piped.kavin.rocks/preferences Set default quality to 4320p
- Watch https://piped.kavin.rocks/watch?v=vy3vMD-CgNY with devtools open (this video is 360p at most)
- Observe that it is using audio itag 249 (50kbps Opus)
yt-dlp -F https://youtu.be/vy3vMD-CgNYshows that the video has itag 251 audio available (160kbps Opus)
Expected behavior
Some kind of heuristic so that if a user has expressed a preference for high-quality video Piped will always choose high-quality audio, even if a video is low-rez. Or an audio quality preference.
YouTube itself selects 160kbps Opus for me despite the 360p video.
Logs/Errors
N/A
Browser, and OS with Version.
No response
Additional context
No response
The problem appears that NewPipeExtractor doesn't extract the audio streams, it only extracts two 50kbps audio streams.