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

Error: highest default value when no format is chosen doesn't exist on certain videos #45

Open
gabrielschull opened this issue Dec 10, 2024 · 5 comments
Assignees
Labels
feature New feature or request

Comments

@gabrielschull
Copy link

"Error: Error: No such format found: highest
at FormatUtils.chooseFormat (/workspace/node_modules/@ybd-project/ytdl-core/bundle/node.cjs:914:23829)
at /workspace/node_modules/@ybd-project/ytdl-core/bundle/node.cjs:915:624
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at console.error (/workspace/node_modules/firebase-functions/lib/logger/compat.js:31:23)
at sendCrashResponse (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/logger.js:33:17)
at Domain.errorHandler (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/function_wrappers.js:93:48)
at Domain.emit (node:events:519:28)
at Domain.emit (node:domain:488:12)
at emitUnhandledRejection (node:internal/process/promises:249:24)
at throwUnhandledRejectionsMode (node:internal/process/promises:385:19)
at processPromiseRejections (node:internal/process/promises:470:17)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"

@gabrielschull gabrielschull added the feature New feature or request label Dec 10, 2024
@gabrielschull
Copy link
Author

Is there a value to pass that will be universally accepted? What else can be defaulted to?

@s123121
Copy link

s123121 commented Dec 13, 2024

this is an error when ytdl can not get any format. You either:

  • rotate poToken & vistiorData to try again
  • use oAuth
  • use proxy (check example)

and try again, also please check other video (some video is just buggy)

@ybd-project ybd-project self-assigned this Dec 13, 2024
@gabrielschull
Copy link
Author

this is an error when ytdl can not get any format. You either:

  • rotate poToken & vistiorData to try again
  • use oAuth
  • use proxy (check example)

and try again, also please check other video (some video is just buggy)

Thanks for the reply

@tiago719
Copy link

tiago719 commented Jan 6, 2025

I'm consistently having this exception for multiple videos. How can I Fix it? I'm already using a proxy.

@gabrielschull
Copy link
Author

I'm consistently having this exception for multiple videos. How can I Fix it? I'm already using a proxy.

You can find the video data with getInfo.
Explicitly choose the formats where qualityLabel (video) and audioBitrate (audio) are highest - I split audio/video streams before joining them. Also check out distube/ytdl-core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants