Good night everyone!!
I'm from Spain so sorry about my grammar mistakes xD.
I'll go straight to the point: I'm programming an Online Game that uses video feeding as an important part of it.
I've decided that all the videos displayed in the web are going to be encoded with FLV format. This means i've to run a script behind the web to encode each video uploaded by users to FLV format. I've already created those Scripts using the following and a bit more stuff. They work just fine.
system("ffmpeg -whatever args -are neccesary");
My problem is the following. I 've to launch those php encode scripts right after a video upload is completed by the user. But I must avoid the user to wait for that to finish, because it might take a long while, depending of how busy the server is at the moment.
So I need sort like this in pseudocode: ( * lines are solved)
> Receive video upload from user *
> Once it's completed, launch convert script. --------------------------------------------
> Users goes away to navigate or whatever, while his video is still being converted. * |
> Video encoding is finished. Mysql fields are updated. * <--------------------------------
I hope have been clear enough for you to understand my problem.
Hope to receive answers =)
Thanks in advanced.
Cheers.