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] "Prefer Smaller Sized Formats" Setting Downloads 144p Instead of Desired Resolution After Version 1.8.2 #733

Open
2 tasks done
Viraj008 opened this issue Feb 26, 2025 · 5 comments
Labels
bug Something isn't working Waiting For Release Implemented but not released yet

Comments

@Viraj008
Copy link

  • Tried latest version

  • This issue is not duplicated with any other open or closed issues

Describe the bug

After updating to version 1.8.2, when the "Prefer Smaller Sized Formats" setting is enabled, the video downloads in 144p resolution, which results in a very low-quality video. The expected behavior is for the video to be downloaded in a resolution that is selected. However, the issue occurs when the setting is enabled, and the video downloads in the smallest possible format (144p).

Expected behavior

The video should be downloaded in the first selected video quality, regardless of the "Prefer Smaller Sized Formats" setting, not in 144p.

Steps to reproduce

  1. Enable the "Prefer Smaller Sized Formats" setting.
  2. Attempt to download a video in a resolution higher than 144p (e.g., 720p or 1080p).
  3. Observe that the video is downloaded in 144p resolution instead of the expected higher quality.

Device information

Device : Oneplus 9r
System : Android 14

Screenshots / Recordings

No response

Additional context

No response

@Viraj008 Viraj008 added the bug Something isn't working label Feb 26, 2025
@deniscerri
Copy link
Owner

So the smallest 720p in this case

@Viraj008
Copy link
Author

When I select 720p quality video, it is downloading in 144p quality instead. It was working properly in version 1.8.1.2

@deniscerri
Copy link
Owner

I can reprod

@deniscerri deniscerri added the Waiting For Release Implemented but not released yet label Mar 1, 2025
@ae3a5ae
Copy link

ae3a5ae commented Mar 2, 2025

As I understand, the problem is in the order of fields in format sorting option "-S". Turning on "Prefer Smaller Sized Formats" adds "+size" field as first in this option, and yt-dlp follows it, downloading the smallest possible format from all.
I tried to download the same video in YTDLnis terminal with "+size" in different position at "-S" option. Looks like "Prefer Smaller Sized Formats" should add "+size" as the last field, in this case it works as intended. For example:
just ' -S "res:720" ' downloads f398 format, which has AV1 codec, 1280x720 size and 60 fps, file size 10,3M. OK.
' -S "res:720,+size" ' downloads f298 format, with H264 codec, 1280x720 size and 60fps, file size 6,7M. Correct, it's smaller than previous.
' -S "+size,res:720" ': f160 format, H264, size 256x144 and 30fps, file size 3,43M.

@deniscerri
Copy link
Owner

Yes you are correct. I was adding it in the first position, now im adding it in the last position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting For Release Implemented but not released yet
Projects
None yet
Development

No branches or pull requests

3 participants