Jump to content

Need to have a website run a lengthy, FFMPEG'ing script


tibberous

Recommended Posts

I wrote a PHP script that uses FFMPEG to encode multiple mp3 files in a directory. I script works perfectly when called from the command line, but I can't get it to run in the background.

 

I've tried:

php /home/express/www/scripts/processMusic.php > /dev/null &

php /home/express/www/scripts/processMusic.php < /dev/null > /dev/null &

php /home/express/www/scripts/processMusic.php &

 

But nothing works...

 

And php /home/express/www/scripts/processMusic.php < /dev/null > /dev/null & works from the command line, but not from within a webpage.

 

To make things weirder, the script I wrote run, just the ffmpeg commands don't work...

 

Am I just not able to start a background process from a background process?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.