Lenny'tje
4 August 2011, 16:03
Beste,
Waar ga ik ergens in de fout met men thumbprogramma?
<?php
//make an animated gif of an video file
//---UserFile is aangemaakt op het uploadform en heeft deze waarden: $_FILES['file']['tmp_name']---//
//Path to the ffmpeg.exe file
$Exe = 'C:/wamp/www/testscripts/ffmpeg.exe';
//$Exe = 'C:\wamp\www\testscripts\ffmpeg.exe';
//Path where the animated gif will be stored
$GifPath = 'C:/wamp/www/testscripts/gif/test.gif';
//Command line with the output settings
$Cmd = '$Exe -i $UserFile -an -ss 00:00:05 -vframes 30 -pix_fmt rgb24 -r 10.0 -loop_output 0 -t 10 -s 352x288 -f gif $GifPath';
//Process the commandline
exec($Cmd);
if ( file_exists($GifPath) ) {
echo 'Het bestand is aangemaakt en verplaatst naar '.$GifPath;
}else{
echo 'Er is iets fout gegaan tijdens het verwerken naar een animated gif';
}
?>
In apache zie ik dit staan bij de errorlog:
$Exe wordt niet herkend als een interne
of externe opdracht, programma of batchbestand. (terwijl ik wel exact naar het ffmpeg.exe bestand verwijs)
Kan iemand me hier mee helpen?
Waar ga ik ergens in de fout met men thumbprogramma?
<?php
//make an animated gif of an video file
//---UserFile is aangemaakt op het uploadform en heeft deze waarden: $_FILES['file']['tmp_name']---//
//Path to the ffmpeg.exe file
$Exe = 'C:/wamp/www/testscripts/ffmpeg.exe';
//$Exe = 'C:\wamp\www\testscripts\ffmpeg.exe';
//Path where the animated gif will be stored
$GifPath = 'C:/wamp/www/testscripts/gif/test.gif';
//Command line with the output settings
$Cmd = '$Exe -i $UserFile -an -ss 00:00:05 -vframes 30 -pix_fmt rgb24 -r 10.0 -loop_output 0 -t 10 -s 352x288 -f gif $GifPath';
//Process the commandline
exec($Cmd);
if ( file_exists($GifPath) ) {
echo 'Het bestand is aangemaakt en verplaatst naar '.$GifPath;
}else{
echo 'Er is iets fout gegaan tijdens het verwerken naar een animated gif';
}
?>
In apache zie ik dit staan bij de errorlog:
$Exe wordt niet herkend als een interne
of externe opdracht, programma of batchbestand. (terwijl ik wel exact naar het ffmpeg.exe bestand verwijs)
Kan iemand me hier mee helpen?