hoho Posted April 7, 2009 Report Share Posted April 7, 2009 komanda exec ("ffmpeg -i movie.mpg -f flv -y movie.flv") nestraadaa, varaat paliidzeet? kaa ar php var konvereet .mpg failu uz .flv? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted April 7, 2009 Report Share Posted April 7, 2009 kā izpaužas šīs komandas nestrādāšana? Varbūt uz servera nav ffmpeg? Varbūt PHP grib, lai norādi pilnu ceļu līdz ffmpeg? Quote Link to comment Share on other sites More sharing options...
hoho Posted April 7, 2009 Author Report Share Posted April 7, 2009 izpauzas taa, ka pilniigi nekas nenotiek - piemeeram, man tas skripts un fails .mpg staav vienaa direktorijaa un kad izsaucu skriptu jauns fails .flv netiek izveidots, kljuudu arii nav. ffmpeg ir uzinstaleets no komandrindas viss straadaa :/ Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted April 7, 2009 Report Share Posted April 7, 2009 Pamēģini šitā: $izvaddati = Array(); exec("ffmpeg -i movie.mpg -f flv -y movie.flv",$izvaddati); print_r($izvaddati); Quote Link to comment Share on other sites More sharing options...
hoho Posted April 7, 2009 Author Report Share Posted April 7, 2009 hmmm, nekas netiek izvadiits, tukss masiivs: Array( ) ... Quote Link to comment Share on other sites More sharing options...
p4F Posted April 7, 2009 Report Share Posted April 7, 2009 $command = "ffmpeg -i movie.mpg -f flv -y movie.flv 2>&1"; $out = shell_exec($command); echo $out; Quote Link to comment Share on other sites More sharing options...
crmind Posted May 18, 2009 Report Share Posted May 18, 2009 Pieļauju, ka tev viņš vnk neatrod to ffmpeg. Un tad pastāv divi varianti: 1.vai nu ar windows globāli PATH norādi direktoriju kurā tev atrodas ffmpeg.exe 2.vai arī pirms exec izpildīšanas nomaini aktīvo direktoriju ar chdir() uz to, kur atrodas ffmpeg.exe Quote Link to comment Share on other sites More sharing options...
bubu Posted May 18, 2009 Report Share Posted May 18, 2009 3. (un pareizākais) - norādi pilnu ceļu pašā komandā: $command = "/celjsh/uz/ffmpeg -i ..."; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.