A totally different solution would to use a message queue like
http://rabbitmq.com. At least the you'll have a generic way to
schedule out of band work. And you don't have to use lock files, flag
columns or other tricks.
-Mark
On Feb 28, 3:46 pm, Tan Cheng davidtan...@gmail.com wrote:
Thank
On Mon, Feb 28, 2011 at 1:42 PM, Tan Cheng davidtan...@gmail.com wrote:
Thanks for all the input!!! So much good information to learn. Due to
the tight budget and maybe the site traffic will not be so high, I am
still looking at a shard hosting which supports cron, and maybe let it
run a cake
On Mar 4, 2011, at 12:30, cricket wrote:
Ryan's ideas seem sound but I agree with Mark
that it may be worth your while to look at existing solutions. I
haven't tried Rabbit; am looking at it now.
I had not thought to look for external software packages to deal with queueing,
but now that I
Thanks for all the information. If I go with a shared hosting, I would
pick one supporting ffmpeg and cron job, I found cirtex, haven't paid
yet because I am still developing on my own machine.
I have never used a queueing before, it sounds interesting, i will
look into that. I got the cron job
On Feb 28, 2011, at 01:48, Zaky Katalan-Ezra wrote:
You have the ff log to check if every thing is ok and the progress.
You can create PID file to check if the process ended.
These ideas are fine if everything is running on a single server, but falls
apart if there are multiple frontend web
On Feb 28, 2011, at 04:14, AD7six wrote:
On Feb 28, 8:14 am, Zaky Katalan-Ezra wrote:
On a Linux machine create a bash file like this
-
#!/bin/sh
ffmpeg -i $1 -r $2 $3
-
The ampersand at the end tell the bash to run in the background.
the $n is parameters.
From php call it
On Feb 28, 8:14 am, Zaky Katalan-Ezra procsh...@gmail.com wrote:
On a Linux machine create a bash file like this
-
#!/bin/sh
ffmpeg -i $1 -r $2 $3
-
The ampersand at the end tell the bash to run in the background.
the $n is parameters.
From php call it like this:
$command
Thanks for all the input!!! So much good information to learn. Due to
the tight budget and maybe the site traffic will not be so high, I am
still looking at a shard hosting which supports cron, and maybe let it
run a cake shell every 5 hours to encode and update the database. I
think I am going to
On Feb 28, 2011, at 12:42, Tan Cheng wrote:
Thanks for all the input!!! So much good information to learn. Due to
the tight budget and maybe the site traffic will not be so high, I am
still looking at a shard hosting which supports cron, and maybe let it
run a cake shell every 5 hours to
This is a great idea! So whichever script starts encoding, it takes
place in the $LOCKS folder, then everytime before a new script starts
running it will always check if the $LOCK room is empty, and runs
only if it's empty. Brilliant! See how far I can go with all the
ideas...
THANK YOU, Ryan!!
On Feb 28, 2011, at 13:55, Tan Cheng wrote:
This is a great idea! So whichever script starts encoding, it takes
place in the $LOCKS folder, then everytime before a new script starts
running it will always check if the $LOCK room is empty, and runs
only if it's empty. Brilliant! See how far I
I see, this is really complicated, so I think I'll try from mkdir.
Also, I want to ask if I create the shell as cakephp shell, will that
shell be restricted by the max_execution_time in php.ini?
Thanks,
-David
On Feb 28, 3:22 pm, Ryan Schmidt google-2...@ryandesign.com wrote:
On Feb 28, 2011,
On Feb 28, 2011, at 14:29, Tan Cheng wrote:
Also, I want to ask if I create the shell as cakephp shell, will that
shell be restricted by the max_execution_time in php.ini?
According to the comments here...
http://php.net/set-time-limit
...the time limit defaults to unlimited on the command
Thank you!!! Also, I understand that you did not mean to encode the
video in the $LOCK folder. I didn't express myself clearly, seems like
I need help not only with programming language...
Thanks again for spending almost the whole day inspiring me. Makes me
just love cakephp even more!
-David
On Feb 28, 2011, at 14:46, Tan Cheng wrote:
Thank you!!! Also, I understand that you did not mean to encode the
video in the $LOCK folder. I didn't express myself clearly, seems like
I need help not only with programming language...
Thanks again for spending almost the whole day inspiring
On Feb 27, 2011, at 09:06, Tan Cheng wrote:
I have a question. I'm using cakephp to develop a video site, like
youtube, I want the user to upload their video to the site, but I only
want them to wait for the upload, after it is uploaded, I hope the
converting process ( using ffmpeg ) run in
WOW, thanks a lot, Ryan. That makes much more sense. I have never used
a daemon before. I think I need to investigate into that more. Do you
happen to know some keywords or article to take a look at? Sorry, I'm
really a newbie to php...
Thanks a lot!
-David
On Feb 27, 10:13 am, Ryan Schmidt
On Feb 27, 2011, at 09:48, Tan Cheng wrote:
On Feb 27, 10:13 am, Ryan Schmidt wrote:
On Feb 27, 2011, at 09:06, Tan Cheng wrote:
I have a question. I'm using cakephp to develop a video site, like
youtube, I want the user to upload their video to the site, but I only
want them to wait for
On a Linux machine create a bash file like this
-
#!/bin/sh
ffmpeg -i $1 -r $2 $3
-
The ampersand at the end tell the bash to run in the background.
the $n is parameters.
From php call it like this:
$command = mybashpath.sh inputfile.mpg 24 outputfile.flv;
*exec* ( $command );
As
On Feb 28, 2011, at 01:14, Zaky Katalan-Ezra wrote:
On a Linux machine create a bash file like this
-
#!/bin/sh
ffmpeg -i $1 -r $2 $3
-
The ampersand at the end tell the bash to run in the background.
the $n is parameters.
.yes. well, you've forgotten to properly
You have the ff log to check if every thing is ok and the progress.
You can create PID file to check if the process ended.
Form my experience when dealing with files its better to inspect the
filesystem in order to know what you have.
The information from the database may conflict with the
21 matches
Mail list logo