Wednesday, August 6, 2014

How to queue FFMPEG using Fast In Fast Out

Running a video streaming website can be trivial if you puut everything in single server. FFMPEG process will use all available resources to maximise the encoding process. What will happen if 100 users uploader their video at sam time ? 100 new FFMPEG processed will be created and this will bring down your server.

So to force all FFMPEG process being queued, we use FIFO pipeline. Means every requests will be piped into same process queue.

1. Create a file /usr/bin/

2. Open a 2nd terminal and run On 1st terminal execute testing command as shown in the picture
Or you can call to execute before any ffmpeg command

No comments:

Post a Comment