I am using nodejs. The idea is to launch a bash script using exec. I can do it. In my bash script I am doing a video conversion using mencoder. For exemple:
mencoder Videoinput.ogv -o videouput.avi -oac lavc -ovc lavc -lavcopts vbitrate=3000 vcodec=mpeg4
The problem I have: If I try to convert a huge video, the conversion is ok until a specific time. In my case 1minute 47 seconds..... So it seems like node has a time maximum to execute a bash script using exec and then it cuts it. Am I right? Does anyone know how to add more time to the exec command? If that is possible, I would be able to finish the video conversion ... thanks for your answer.
timeoutis 0, meaning that Node will allow the process all the time it needs. But, if for example your script isn't reading the output generated by mencoder, it might fill up the output buffer and Node will kill your process once the buffer is full (seemaxBuffer). Please post how you're calling your script from Node.