I am working on a video streaming site where users can upload videos to the site (multiple videos at once using the jQuery downloadable plugin).
Now I am faced with the issue of encoding videos in FLV for streaming them on the Internet.
When should the video encoding process take place? If this happens immediately after the download is complete (for example, redirecting the user to the successful download page, and then starting the encoding in the background using the exec command for ffmpeg?) However, using this approach, how to determine if the encoding has completed successfully? What if users upload corrupted video and ffmpeg cannot encode it? How can I handle this in PHP?
How do I order a video encoding, since several users can upload a video? Does FFMpeg have its own encoding queue?
I also read about transmission and message queue options, such as redis and AMQP, in another related SO thread. Are these one of the potential solutions?
I would really appreciate it if someone could answer my questions.
source share