/** * this function triggers the queue * * @global <type> $CONFIG */ function izapTrigger_izap_videos() { global $CONFIG; $PHPpath = izapGetPhpPath_izap_videos(); if (!izapIsQueueRunning_izap_videos()) { if (izapIsWin_izap_videos()) { pclose(popen("start \"MyProcess\" \"cmd /C " . $PHPpath . " " . $CONFIG->pluginspath . "izap_videos/izap_convert_video.php izap web", "r")); } else { time(); exec($PHPpath . ' ' . $CONFIG->pluginspath . 'izap_videos/izap_convert_video.php izap web > /dev/null 2>&1 &', $output); } } }
<span class="izap_info_text"> <?php echo elgg_echo('izap_videos:adminSettings:info:convert-command'); ?> </span> </p> <p> <label> <?php echo elgg_echo('izap_videos:adminSettings:izapVideoThumb'); ?> <br /> <?php echo elgg_view('input/text', array('internalname' => 'izap[izapVideoThumb]', 'value' => izapAdminSettings_izap_videos('izapVideoThumb', izapIsWin_izap_videos() ? $IZAPSETTINGS->ffmpegPath . ' -y -i [inputVideoPath] -vframes 1 -ss 00:00:10 -an -vcodec png -f rawvideo -s 320x240 [outputImage]' : '/usr/bin/ffmpeg -y -i [inputVideoPath] -vframes 1 -ss 00:00:10 -an -vcodec png -f rawvideo -s 320x240 [outputImage]'))); ?> </label> </p> <p> <label> <?php echo elgg_echo('izap_videos:adminSettings:izapHTMLawedTags'); ?> <br /> <?php echo elgg_view('input/text', array('internalname' => 'izap[izapHTMLawedTags]', 'value' => izapAdminSettings_izap_videos('izapHTMLawedTags'))); ?> </label>
<tr class="odd <?php echo $ffmpeg ? 'ok' : 'not_ok'; ?> "> <td class="column_one">FFmpeg</td> <td class="column_one"><?php echo $ffmpeg ? 'Success' : 'Fail'; ?> </td> <td><?php echo $ffmpeg; ?> <br /> <?php if (izapIsWin_izap_videos()) { echo '<b>Download "<a href="http://www.izap.in/ie-commerce/pg/file/carl/read/2361/ffmpeg-svnr20192-binaries-for-windows" target="_blank">FFmpeg SVN-r20192</a>", if you have lower version.</b>'; echo 'Unzip the package and place it in the izap_videos folder.'; } ?> </td> </tr> <?php if (!empty($commands)) { foreach ($commands as $key => $command) { $exec_command = str_replace(array('[inputVideoPath]', '[outputVideoPath]'), array($in_video, $out_video), $command); exec($exec_command, $out_array, $return_array); if ($return_array > 0) { ?> <tr class="odd not_ok">