Kristabs Posted November 30, 2007 Report Share Posted November 30, 2007 eregi, Tu vispār to ffmepg piekompilēji? + kodekus Link to comment Share on other sites More sharing options...
eregi Posted November 30, 2007 Author Report Share Posted November 30, 2007 jēs, darīj to pēc - http://paste.php.lv/6509 aka - http://www.phpclasses.org/browse/file/18261.html un kas ir tas svn? :) Link to comment Share on other sites More sharing options...
Kristabs Posted November 30, 2007 Report Share Posted November 30, 2007 Sajaucu, domāju cvs. Ja esi piekompilējis kodekus priekš outputa mp3+flv, tad neaizmirsti arī kodekus tam ko inputosi attiecīgi. Link to comment Share on other sites More sharing options...
eregi Posted November 30, 2007 Author Report Share Posted November 30, 2007 mm, itkā viss šķiet ir pareizi nokompīlēts, pašos php skriptos manuprāt ir vaina, jo padomā, ja es padodu caur to $_FILES['ufile']['tmp_name'] aka - /tmp/phpTcPuQw, bet pats skripts domā, ka tas fails jau kkur ir uz hdd. Link to comment Share on other sites More sharing options...
andrisp Posted November 30, 2007 Report Share Posted November 30, 2007 Bet tas fails jau arī ir HDD. Kur tad citur ? Tev gadijumā pēc faila uploadošanas nenotiek redirekts uz citu skriptu, kas mēģina piekļūt tam failam ? Ā, laikam jau nē, ja jau mēģini izmanto $_FILES. Link to comment Share on other sites More sharing options...
Paulinjsh Posted November 30, 2007 Report Share Posted November 30, 2007 eregi tu izdrukāji to ko es tev teicu? Link to comment Share on other sites More sharing options...
eregi Posted November 30, 2007 Author Report Share Posted November 30, 2007 Nē, īsti nesapratu, ko Tu grib :? Link to comment Share on other sites More sharing options...
p4F Posted November 30, 2007 Report Share Posted November 30, 2007 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\appserv\www\youtube\upload.php on line 82 Fatal error: Cannot instantiate non-existent class: ffmpeg_movie in c:\appserv\www\****\upload.php on line 81 Nevaru saprast kas par fainu http://paste.php.lv/6511 Link to comment Share on other sites More sharing options...
bubu Posted November 30, 2007 Report Share Posted November 30, 2007 Tur skaidri uzrakstīts - nav tādas klases "ffmpeg_movie", kuru tu taisies izmantot 81. rindā. Link to comment Share on other sites More sharing options...
eregi Posted November 30, 2007 Author Report Share Posted November 30, 2007 (edited) mm, jā tomēr kkas tam ffmpeg nepatīk, jo pat palaižot skriptu, kur norādīts ceļš uz movie failu met erroru.. - CLASS FFMPEG ERROR: Execute error. Output for file "/var/www/localhost/htdocs/w00t/includes/Movie.wmv" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. Paulinjsh varbūt Tev ir kādas idejas? hhmmm, jocīgi, tikko pamanīju, kad laižu to skriptu tad man iekš putty parādās - ~ # sh: /usr/local/bin/ffmpeg: No such file or directory sh: /usr/bin/flvtool2: No such file or directory tātad izskatās, ka vajadzēs pārkonvertēt mmm, jā skatos skriptā bij janorāda to binu atrašanās, atradu, kur atrodās flvtool2, bet nevaru atrast, ffmpeg. Edited November 30, 2007 by eregi Link to comment Share on other sites More sharing options...
p4F Posted November 30, 2007 Report Share Posted November 30, 2007 es taa un nesapratu tas ir prieksh linux? Link to comment Share on other sites More sharing options...
eregi Posted November 30, 2007 Author Report Share Posted November 30, 2007 labi, ir, savedu kārtībā, lai ffmpeg stradā tādā gadījumā, ja es tam norādu faila atrašanās viet, piem /var/www/localhost/htdocs/Movie.wmv tad visa konvertēšana notiek, bet ja es padodu $_FILES['ufile']['tmp_name'] tad turpina mest ārā CLASS FFMPEG ERROR: Execute error. Output for file "/tmp/phpOvp9kv" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. Link to comment Share on other sites More sharing options...
bubu Posted November 30, 2007 Report Share Posted November 30, 2007 Vai pārbaudīji, ka fails tiešām eksistē? Mēģināji aizkopēt citur un tad (ne no php) laist ar ffmpeg? Pamēģini pielikt galā .wmv/.avi/.whatver paplašinājumu (pareizo protams). Link to comment Share on other sites More sharing options...
eregi Posted November 30, 2007 Author Report Share Posted November 30, 2007 Tur jau tā problēma manuprāt. :) andrisp teica, lai padodu ar to $_FILES['ufile']['tmp_name'], bet tur jau nekāda faila kopēšana nenotiek, es tam skriptam, kas konvertē ar to ffmpeg padodu to $_FILES['ufile']['tmp_name'] nevis jau noseivotu movie failu, bet izskatās, ka šis grib kaut ko taustāmu :) Link to comment Share on other sites More sharing options...
bubu Posted December 1, 2007 Report Share Posted December 1, 2007 Tas $_FILES['ufile']['tmp_name'] ir ļoti taustāms. Pamēģini to atvērt, nolasīt saturu un saglabāt citur. Tam ir jāstrādā (ja vien pamatīgi nav kautkas līki ar serveri). Link to comment Share on other sites More sharing options...
Recommended Posts