How to run manually cron and get ffmpeg output (Windows) ?

Debugging video conversion can be a real problem, especially on Windows platform.

Before proceed make sure that you have ffmpeg.exe binary for windows. To get all the time latest ffmpeg build for windows refer to the following url:
http://tripp.arrozcru.org/

Or download from BoonEx:

http://www.boonex.com/ffmpeg_win.zip


after you get ffmpeg.exe binary put it to "/flash/modules/global/app/" folder, overwriting default one.

To run cron manually create "run.bat" file in "/periodic/" folder, and put the following contents into it:
c:\change-to-real-path-to\php.exe -q -c c:\change-to-real-path-to\php.ini cron.php
Change "change-to-real-path-to" to your actual path to the files, path to "php.ini" file can be found on phpinfo page:
Dolphin Admin Panel -> Tools -> Host Tools -> Phpinfo

To run this file open DOS prompt navigate to your "/periodic/" folder and type "run.bat" in command prompt, the cronjob will be run and output will be printed right-away into your DOS prompt.


Now you know the way how to run cronjobs manually, but now the problem is that video conversion job isn't always run. It is because video conversion is configured to run every 5 minutes, it means that video conversion will be run if you run any hour and 0, 5, 10, 15, 20, 25, … minutes. To debug it more easily we will make it to run every minute, just run this SQL query:
UPDATE `sys_cron_jobs` SET `time` = '*' WHERE `name` = 'bx_videos';
Clear "DB Cache" after this SQL query is executed.

Now you can upload video files and run "run.bat" file manually to see how video conversion goes.

After you complete debugging you need to revert back cronjob to run every 5 minutes, just run this query and clear "DB Cache":
UPDATE `sys_cron_jobs` SET `time` = '*/5' WHERE `name` = 'bx_videos';

Rules → http://www.boonex.com/terms
Quote · 28 Feb 2011

hey man, nice post, and hope all those windows users can use this.

i tried to use it on my *nix box and my corncob ran, and it hasnt come back. any solution to getting my corncob back? :)

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 28 Feb 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.