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

[FEATURE REQUEST] default format options #137

Open
the-liquid-metal opened this issue May 11, 2024 · 0 comments
Open

[FEATURE REQUEST] default format options #137

the-liquid-metal opened this issue May 11, 2024 · 0 comments

Comments

@the-liquid-metal
Copy link

the-liquid-metal commented May 11, 2024

Currently, yt-dlp-gui selects the first item in video/audio option. Since item in those options can be a dozens, and user tend to download a particular format, it would be practical if there are default format options. Current video/audio option consist of compound spec: resolution, FPS, codec, etc. For default format purpose, these options should be break down into its component and placed in dadicated option: resolution option, FPS options, codec options, etc.

  • resolution option. Consist of items: "greatest", [popular-resolution], "smallest"
  • FPS option. Consist of items: "greatest", [popular-FPS], "smallest".
  • codec option. Consist of items: [popular-codec]
  • etc.

Since there is no certainty about the availability of the default format, yt-dlp-gui should provide a relaxed companion options.

  • relaxed resolution option. Consist of items: "closest greater" and "closest lesser".
    If user select "1280x720" and "closest greater", but it is not available, then yt-dlp-gui should select "1980x1080" or any greater one but closest.
  • relaxed FPS options. Consist of items: "closest greater" and "closest lesser".
    If user select "30" and "closest lesser", but it is not available, then yt-dlp-gui should select "24" or any lesser but closest.
  • relaxed codec option. Consist of items: [popular-codec].
    If user select "H.264" and relaxed "AV1", but "H.264" is not available, then yt-dlp-gui should select "AV1" before any other options.
  • etc.

Note:

  • All default format options and its relaxed companions should be placed in "Advance" or "Options" tab (whatever you feel is right).
  • For FPS case, items which contains fraction number are rounded to ceil value. That means, If user select "30" and "closest greater", but it is not available, then yt-dlp-gui should select "29.xx" before any greater one but closest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant