Ffmpeg is not working within my docker setup

I made a simple streaming service with Next Js and ffmpeg is required for one of the functions I made, when running the app everything works fine but the ffmpeg part just fails and Since I didn’t expect it I didn’t even put error in place,

Github repo : GitHub - shishantbiswas/YouTube-clone
Live Website : https://youtube-clone-zn54.onrender.com/

Hi there,

You will need to share more details than this. How does it fail? Are there any errors at all? You should probably implement error handling into your service.

If you are running on a free service, depending on what you do with FFMPEG, the chances are you are using more resources than a free instance offers.

Regards,

Keith
Render Support, UTC+10 :australia:

My Apologies for not explaining the situation, I’m using Next server actions which are like using express, on my live website there’s a /upload route which take info like title, description, video, image, category, the form submit is then handled by server action and a copy of the video is made in a temp folder then this is the error part the ffmpeg command is executed as a child process from node and this is where my service fails.

As for Errors handling I have set error for multiple failure but because I had no problems in development I totally forgot about it

ffmpeg command : "ffmpeg -i ‘./temp/${file.name}’ -vf “scale=1280:-1” -c:v libx264 -preset slow -b:v 2500k -maxrate 2500k -bufsize 5000k -hls_time 6 -hls_list_size 0 -f hls ./output/${videoId}/index.m3u8 "

Hi there,

Maybe try checking and running this command from a shell / SSH session: https://docs.render.com/ssh.

Regards,

Keith
Render Support, UTC+10 :australia: