millers Posted August 26, 2008 Report Share Posted August 26, 2008 (edited) Kā lai dabon to kad php saprot vairākus formātus piemēram ja kkāds fails ir .rar un viņa id ir vienāds ar formātu tad tiek atvērts šis fails , bet ja piemēram id ir atkal savādaks un formāts savādaks un viņš atrod šo failu uz server tad atver 2 failu ... Edited August 26, 2008 by millers Link to comment Share on other sites More sharing options...
Val Posted August 26, 2008 Report Share Posted August 26, 2008 vari vēlreiz un lēnāk? Link to comment Share on other sites More sharing options...
millers Posted August 26, 2008 Author Report Share Posted August 26, 2008 Lieta tāda kad man ir video player un es vēlos lai var atspēlēt gan .flv .avi utt vienārsi nez ka to lai dabon gatavu .. Link to comment Share on other sites More sharing options...
waplet Posted August 26, 2008 Report Share Posted August 26, 2008 priekš tam var uztaisīt pārkonvertētāju , un kas parkonvertēs uz vienu formātu! Link to comment Share on other sites More sharing options...
millers Posted August 26, 2008 Author Report Share Posted August 26, 2008 kā to panākt varētu lūdzu palidzēt vai varbūt kādam ir gatavs kods !!! Link to comment Share on other sites More sharing options...
waplet Posted August 26, 2008 Report Share Posted August 26, 2008 <?php $ffmpegpath = "/usr/bin/ffmpeg"; //usually this $input = "./robot.avi"; $output = "./robots.flv"; $command = "$ffmpegpath -i $input -acodec mp3 -ar 22050 -ab 32 -f flv $output"; //-ar 22050 -ab 32 -f flv -s 320x240 @exec( $command, $ret ); if(!file_exists($output) or @filesize($output)==0) echo "Did not convert the file"; ?> Link to comment Share on other sites More sharing options...
millers Posted August 26, 2008 Author Report Share Posted August 26, 2008 (edited) wtf =D kkas mazāks , vieglāks nav izdarāms ? Edited August 26, 2008 by millers Link to comment Share on other sites More sharing options...
Pentiums Posted August 27, 2008 Report Share Posted August 27, 2008 $input = "./robot.avi"; $output = "./robots.flv"; input ir sākotnējais fails output ir fails ko realizēt Link to comment Share on other sites More sharing options...
Recommended Posts