warning: strtr() [function.strtr]: The second argument is not an array in "modules\syslog\syslog.module"

sajalsoni - May 19, 2009 - 13:22
Project:Media Mover
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

Hello All,

I m getting this error while running thumbnail generation configuration. I just created this configuration to convert video file in jpg files...!!

It worked with .avi files.. but problem while running with .mov Or .mpg files...!!

Just would like to know why its working for one extension and not for the other extension....?

Also in case of .mpg my flash convert configuration is not working.....

Thanks,

#1

sajalsoni - May 20, 2009 - 12:21

Hello,

Ok finally I solved... that Actually i given thumbnail generation period 5 seconds... and my video was having only 4 seconds.... :(

Also one more thing MPG file is not converted by ffmpeg_wrapper.. below is the fix for that...

function ffmpeg_wrapper_can_decode($path) {
// For Some files We need to Check Manually - Custom Heck
$custom_file_types = array('MPG', 'mpg');

$file_types = ffmpeg_wrapper_get_file_formats('decode');
$path_parts = pathinfo($path);

// exception handling
// WMVs are sometimes asf files
if (preg_match('/wmv/i', $path_parts['extension'])) {
$exception = 'asf';
}

if ($file_types) {
foreach ($file_types as $file_type) {
if ($path_parts['extension']) {
if (stristr($file_type, $path_parts['extension']) || stristr($file_type, $exception)
|| in_array($path_parts['extension'], $custom_file_types)) {
return true;
}
}
}
}
return false;
}

Thanks,
Sajal

 
 

Drupal is a registered trademark of Dries Buytaert.