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’
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.
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.