mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-12 09:54:53 -05:00
Allow fallback expressions for codecs, quality to /api/json #321
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @codeHusky on GitHub (Jun 19, 2024).
describe the feature you'd like to see
It would be great if there was a way to specify fallback quality selections or codecs for downloads, or at least some sort of order of preference. Something I'm currently trying to do is pull down the highest resolution video I can get up to a limit.
Something along the lines of
"vQuality": "<=480"or"vQuality":["480","360","144","worst"]would be nice. Alternatively, something like"best[<=480]"would be great for this particular situation as well.A similar fallback array system for
vCodecandaFormatwould be ideal too. I'm doing some weird stuff with ffmpeg and it'd be ideal to have a little more control over things in the request directly rather than just getting an ambiguous 400 errorMaybe providing the valid qualities, formats, etc in the error could be useful for the UI?
describe alternatives you've considered
#571 is the only real alternative to this, but IMO it's a bit less elegant and requires more requests than this
@lostdusty commented on GitHub (Jun 20, 2024):
good one!
@wukko commented on GitHub (May 29, 2025):
cobalt already falls back to closest resolution if preferred one isn't available! youtube video codec does, too. forgot to close this issue, sorry!