0

I'm attempting to run the following command in PHP (on Ubuntu):

it is start button start

 <?php
 if (exec("ffmpeg -i input.avi output.avi >/dev/null 2>/dev/null&")) 
  { echo "Success"; }
  else { echo "No good"; }

so after start how i can kill-stop this with -php code

Any ideas on this be working for stop it? Thanks.

1 Answers1

0

Your ffmpeg process will be running in the background I presume. You could use a killall ffmpeg command (assuming only one is ever running) or if you could somehow determine the PID then send it a signal like kill -15 <PID> GL!

rogerdpack
  • 62,887
  • 36
  • 269
  • 388