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.

It looks like yt-dlp isn’t installed on the server where your app is running. You’ll need to add yt-dlp to your Render environment. You can either install it as part of your app’s setup process (e.g., in the Dockerfile or requirements.txt) or manually install it on the server.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.