Yt-dlp issue on webservice

I was developing my app which generates youtube clips from the yt-link, it was running fine locally , but when i uploaded the app on render it started showing me this error:

Error generating clip: [Error: Command failed: yt-dlp -f best -o “/opt/render/project/src/public/downloads/MYiiCnHI3DM.mp4” “yt link here

Jan 10 03:06:09 PM/bin/sh: 1: yt-dlp: not found

Jan 10 03:06:09 PM] {

Jan 10 03:06:09 PM code: 127,

Jan 10 03:06:09 PM killed: false,

Jan 10 03:06:09 PM signal: null,

Jan 10 03:06:09 PM cmd: 'yt-dlp -f best -o “/opt/render/project/src/public/downloads/MYiiCnHI3DM.mp4” [“yt link here”,)

Jan 10 03:06:09 PM stdout: ‘’,

Jan 10 03:06:09 PM stderr: ‘/bin/sh: 1: yt-dlp: not found\n’

Jan 10 03:06:09 PM}

Screenshot 2025-01-10 150645|690x113

I suspect yt-dlp with an OS level dependency and it’s not installed in our Native environments - you’d need to be deploying via Docker to add additional dependencies at that layer when running this on us.

Is there any other way than using a docker file? if yes please tell me the steps…

there isn’t - that’s the only way to control additional dependencies.

Unless, if it’s just a binary you could download it as part of the build step perhaps.