Piped icon indicating copy to clipboard operation
Piped copied to clipboard

Low quality audio chosen for low resolution video

Open AlyoshaVasilieva opened this issue 3 years ago • 1 comments

Official Instance

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

  1. https://piped.kavin.rocks/preferences Set default quality to 4320p
  2. Watch https://piped.kavin.rocks/watch?v=vy3vMD-CgNY with devtools open (this video is 360p at most)
  3. Observe that it is using audio itag 249 (50kbps Opus)
  4. yt-dlp -F https://youtu.be/vy3vMD-CgNY shows 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

AlyoshaVasilieva avatar Aug 26 '22 17:08 AlyoshaVasilieva

The problem appears that NewPipeExtractor doesn't extract the audio streams, it only extracts two 50kbps audio streams.

FireMasterK avatar Aug 29 '22 13:08 FireMasterK