Changes between Version 5 and Version 6 of Using FFmpeg from PHP scripts


Ignore:
Timestamp:
11/13/2012 07:50:07 AM (6 months ago)
Author:
burek
Comment:

added images

Legend:

Unmodified
Added
Removed
Modified
  • Using FFmpeg from PHP scripts

    v5 v6  
    1313What you want to do is to separate the command-line tool's long processing from your web script execution, to make your script more responsive. So, you have at least 2 options: 
    14141. Run the command-line tool (using [http://php.net/manual/en/function.shell-exec.php shell_exec()] for example) in the background and continue with the web script execution, periodically refreshing the status page, showing the current progress 
     15  
    1516 [[Image(ffmpeg_php_1.png)]] 
    16172. Create a new "job" (usually a new row in a table of your database) and have some background "worker" process (cron job, shell script, batch script) that will monitor that "job list" to see if there are any new jobs that need processing 
     18  
    1719 [[Image(ffmpeg_php_2.png)]] 
    1820