cahva,
i re-install ffmpeg again…
in DOS with this code
c:/ffmpeg/ffmpeg.exe –i d:/myfile.mpg d:/myfile.flv /y
i came across with this error
unable to find a suitable output format for ‘ui’
hope you could help me…
by the wat i’m using windows vista…
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 16, 2009 1:48pm
Subscribe [6]#16 / Jul 10, 2009 6:12am
cahva,
i re-install ffmpeg again…
in DOS with this code
c:/ffmpeg/ffmpeg.exe –i d:/myfile.mpg d:/myfile.flv /y
i came across with this error
unable to find a suitable output format for ‘ui’
hope you could help me…
by the wat i’m using windows vista…
#17 / Jul 10, 2009 9:23am
Im really not an expert with ffmpeg and I dont have it installed on my windowsbox so I dont know how to help you with that.
#18 / Oct 19, 2009 8:37pm
cahva,
yeah you’re right… it’s just for testing…
but still this code won’t work…
$inputfile = $uploadData[$i]['file_name']; $outputfile = 'preview_' . $inputfile; $result = exec('ffmpeg -t 30 -acodec copy -i $inputfile $outputfile'); echo $result;still no ouput data…
<?php
convertToFlv( "some-video-input.avi", "output.jpg" );
function convertToFlv( $input, $output ) {
echo "Converting $input to $output
";
$command = "c:\encoder\ffmpeg.exe -v 0 -y -i $input -vframes 1 -ss 5 -vcodec mjpeg -f rawvideo -s 286x160 -aspect 16:9 $output ";
echo "$command
";
shell_exec( $command );
echo "Converted
";
}
?>this will get image from some-video-input.avi
<?php
convertToFlv( "some-input-video.avi", "output.mp4" );
function convertToFlv( $input, $output ) {
echo "Converting $input to $output
";
$command = "c:\encoder\mencoder.exe $input -o $output -af volume=10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encopts bitrate=500:level_idc=41:bframes=3:frameref=2: nopsnr: nossim: pass=1: threads=auto -oac mp3lame";
echo "$command
";
shell_exec( $command );
echo "Converted
";
}
?>mencoder encoding on windows using php, im still learning ! good luck it should work
You will need to have php_ffmpeg.dll installed on your windows server ! check this out