I have problem that I can't find the way for run cmd in background in web browser.
This cmd creates two files, one is ffmpeg log and one is file with PID. Could you help me to find out how I can run this process in background?
I am doing it whole day and I am little crazy from that, because it's part of my Bachelor project
Thanks for help Misteryyy.
Code: Select all
$cmd = "ffmpeg -i $dir -b 1000k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 -s 640x360 -aspect 16:9 $this->dir/ogg/19_ogg_360.ogv";
exec(sprintf("%s 2> %s & echo $! >> %s", $cmd, $this->ffmpeg_log , $this->ffmpeg_log.'.pid'));