Changes between Version 5 and Version 6 of Using FFmpeg from PHP scripts
- Timestamp:
- 11/13/2012 07:50:07 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Using FFmpeg from PHP scripts
v5 v6 13 13 What 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: 14 14 1. 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 15 16 [[Image(ffmpeg_php_1.png)]] 16 17 2. 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 17 19 [[Image(ffmpeg_php_2.png)]] 18 20


