tibberous Posted August 11, 2008 Share Posted August 11, 2008 Does anyone know how to run FFMPEG in the background? Link to comment https://forums.phpfreaks.com/topic/119093-best-way-to-background-ffmpeg/ Share on other sites More sharing options...
secoxxx Posted August 11, 2008 Share Posted August 11, 2008 FFMPEG does run in the background Link to comment https://forums.phpfreaks.com/topic/119093-best-way-to-background-ffmpeg/#findComment-613202 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. Link to comment https://forums.phpfreaks.com/topic/119093-best-way-to-background-ffmpeg/#findComment-613208 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. Link to comment https://forums.phpfreaks.com/topic/119093-best-way-to-background-ffmpeg/#findComment-613211 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. Link to comment https://forums.phpfreaks.com/topic/119093-best-way-to-background-ffmpeg/#findComment-613216 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. Link to comment https://forums.phpfreaks.com/topic/119093-best-way-to-background-ffmpeg/#findComment-613232 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.