RE: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Richard Lynch
I think nice may play games with fork etc and may be confusing php. Try putting the nice -n 19 ffmpeg -I bit into a mini shell script of its own, and call that. -Original Message- From: Rene Veerman [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 1:54 PM To:

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Ashley Sheridan
On Mon, 2008-09-29 at 20:53 +0200, Rene Veerman wrote: Hi, i have the following php statements; I'm wondering why exec()'s $output remains empty.. Any help is greatly appreciated.. ?php $cmd = 'nice -n 19 ffmpeg -i '.$sourcePath.''; exec ($cmd, $output, $result); return array (

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Daniel Brown
On Mon, Sep 29, 2008 at 2:53 PM, Rene Veerman [EMAIL PROTECTED] wrote: Hi, i have the following php statements; I'm wondering why exec()'s $output remains empty.. Any help is greatly appreciated.. ?php $cmd = 'nice -n 19 ffmpeg -i '.$sourcePath.''; exec ($cmd, $output, $result);

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Rene Veerman
bingo, this fixed it :) thx (all) for answering so quickly :) Daniel Brown wrote: Try this instead, just to make sure everything's running as expected: ?php $cmd = 'nice -n 19 ffmpeg -i '.$sourcePath.' 21'; exec($cmd,$ret,$err); print_r($ret); ? $ret (or whatever you name the

Re: [PHP] can't get output of exec ('nice -n 19 ffmpeg -i file')

2008-09-29 Thread Rene Veerman
I have other ffmpeg statements that i execute in the same manner. They do produce the desired result-files, but also do _not_ have $output set to the text i see when i run the commands from the commandline.. I'd like to get output from all my executions of ffmpeg, its usefull for detailing