diff options
author | Heshan <heshan@heidisoft.com> | 2011-03-17 12:41:33 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-03-17 12:41:33 +0530 |
commit | c2132e3e04247ef8d39540161be895a9ceec63fd (patch) | |
tree | 5002fcc29777790e39b12681989e70e0052fefe1 /transcoders | |
parent | 8ba51e62308276de5240e8ee3569e41f29c36ada (diff) | |
download | video-c2132e3e04247ef8d39540161be895a9ceec63fd.tar.gz video-c2132e3e04247ef8d39540161be895a9ceec63fd.tar.bz2 |
Adding node publish only conversion is completed.
Diffstat (limited to 'transcoders')
-rw-r--r-- | transcoders/video_ffmpeg.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/transcoders/video_ffmpeg.inc b/transcoders/video_ffmpeg.inc index 33e5067..54d6413 100644 --- a/transcoders/video_ffmpeg.inc +++ b/transcoders/video_ffmpeg.inc @@ -30,6 +30,7 @@ class video_ffmpeg implements transcoder_interface { } public function run_command($command) { + // transcoder switching $command = strtr($command, array( '!ffmpeg' => $this->params['ffmpeg'], '!ffmpeg2theora' => $this->params['ffmpeg2theora'], @@ -39,11 +40,11 @@ class video_ffmpeg implements transcoder_interface { )); $command = $this->nice . $command . ' 2>&1'; watchdog('transcoder', 'Executing command: ' . $command, array(), WATCHDOG_DEBUG); - ob_start(); - passthru($command, $command_return); - $output = ob_get_contents(); - ob_end_clean(); - return $output; +// ob_start(); + $command_return = shell_exec($command); +// $output = ob_get_contents(); +// ob_end_clean(); + return $command_return; } public function generate_thumbnails($video) { @@ -302,7 +303,7 @@ class video_ffmpeg implements transcoder_interface { '#type' => 'textfield', '#title' => t('Mcoder'), '#description' => t('Absolute path to Mcoder executable. This will provide a token of !macoder to preset commands.'), - '#default_value' => variable_get('video_macoder_path', '/usr/bin/macoder'), + '#default_value' => variable_get('video_macoder_path', '/usr/bin/mcoder'), ); $form['transcoders']['video_handbreke_path'] = array( '#type' => 'textfield', |