tibberous Posted August 11, 2008 Share Posted August 11, 2008 Does anyone know how to run FFMPEG in the background? Quote Link to comment Share on other sites More sharing options...
secoxxx Posted August 11, 2008 Share Posted August 11, 2008 FFMPEG does run in the background Quote Link to comment Share on other sites More sharing options...
tibberous Posted August 11, 2008 Author Share Posted August 11, 2008 ... I mean so that the script doesn't wait for it to finish... I was thinking background process, but yeah, your right. Quote Link to comment Share on other sites More sharing options...
trq Posted August 11, 2008 Share Posted August 11, 2008 You could try... exec('ffmpeg -options file &'); The trailing & places linux commands in the background. Quote Link to comment Share on other sites More sharing options...
tibberous Posted August 11, 2008 Author Share Posted August 11, 2008 Yeah - it doesn't work with FFMPEG, not even if you route the input and output. Right now, I start it by using file_get_contents to get a different page on my server, which gets a different page on my server, which calls FFMPEG. It relies on file_get_contents timing out, and is a horrible hack which only moderately works. Quote Link to comment Share on other sites More sharing options...
tibberous Posted August 11, 2008 Author Share Posted August 11, 2008 This is REALLY frustrating, I can't background it, or anything containing it. I have an audio encoder that converts a folder full of MP3's into a bunch of different bitrates, but I have to start it from the command line. I looked at the PHP-FFMPEG extension, but it doesn't look like it does anything with encoding, just reading file info. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.