FFMPEG is installed on my server is ok but FFMPEG is not working with my php script.
Here i have provided some commands output and php script, how i have used FFMPEG which is define below. please check this out and tell me where i am wrong. *1. FFMPEG is installed.* [r...@mywebsvr /]# php -i | grep ffmpeg /etc/php.d/ffmpeg.ini, ffmpeg ffmpeg-php version => 0.6.0-svn ffmpeg-php built on => Dec 16 2009 21:56:45 ffmpeg-php gd support => enabled ffmpeg libavcodec version => Lavc52.20.0 ffmpeg libavformat version => Lavf52.31.0 ffmpeg swscaler version => SwS0.7.1 ffmpeg.allow_persistent => 0 => 0 ffmpeg.show_warnings => 0 => 0 *2. Where FFMPEG is installed* [r...@mywebsvr /]# ls -lh $(which ffmpeg) -rwxr-xr-x 1 root root 80K 2009-12-16 22:45 /usr/local/bin/ffmpeg [r...@mywebsvr /]# which ffmpeg /usr/local/bin/ffmpeg [r...@mywebsvr /]# which flvtool2 /usr/bin/flvtool2 [r...@mywebsvr /]# which mplayer /usr/local/bin/mplayer [r...@mywebsvr /]# which php /usr/bin/php [r...@mywebsvr /]# which perl /usr/bin/perl 3. Output of /usr/local/bin/ Directory. [r...@mywebsvr /]# cd /usr/local/bin [r...@mywebsvr bin]# ls ffmpeg lame neon-config svnadmin svnserve ffplay mencoder sqlite3 svndumpfilter svnsync ffserver mplayer svn svnlook svnversion 4. I have installed FFMPEG at /usr/local/src Directory. 5. Aslo added 'extension = "ffmpeg.so"' in php.ini. and Extension is loaded and i have checked ffmpeg entry in phpinfo.php file 6. My PHP script : <?php define('FFMPEG_LIBRARY', '/usr/local/bin/ffmpeg'); $exec_string = FFMPEG_LIBRARY.' -i beep.mp3 -ac 1 -ar 48000 -ab 128k -title "New Rock" -comment "New Rocking" -author "Jaymin" -copyright "By jaymin" newbeep.mp3'; exec($exec_string); ?> there are no any error only blank page, and when i check there is no any conversion file. 7. Also have used below php script, <?php extension_loaded('ffmpeg') or die('Error in loading ffmpeg'); $ffmpegInstance = new ffmpeg_movie('music_uploaded/am-free-sou-women-la-9jsq.mp3'); echo "getDuration: " . $ffmpegInstance->getDuration() . "<br>getFrameCount: " . $ffmpegInstance->getFrameCount() . "<br>getFrameRate: " . $ffmpegInstance->getFrameRate() . "<br>getFilename: " . $ffmpegInstance->getFilename() . "<br>getComment: " . $ffmpegInstance->getComment() . "<br>getTitle: " . $ffmpegInstance->getTitle() . "<br>getAuthor: " . $ffmpegInstance->getAuthor() . "<br>getCopyright: " . $ffmpegInstance->getCopyright() . "<br>getArtist: " . $ffmpegInstance->getArtist() . "<br>getGenre: " . $ffmpegInstance->getGenre() . "<br>getTrackNumber: " . $ffmpegInstance->getTrackNumber() . "<br>getYear: " . $ffmpegInstance->getYear() . "<br>getFrameHeight: " . $ffmpegInstance->getFrameHeight() . "<br>getFrameWidth: " . $ffmpegInstance->getFrameWidth() . "<br>getPixelFormat: " . $ffmpegInstance->getPixelFormat() . "<br>getBitRate: " . $ffmpegInstance->getBitRate() . "<br>getAudioBitRate: " . $ffmpegInstance->getAudioBitRate() . "<br>getAudioSampleRate: " . $ffmpegInstance->getAudioSampleRate() . "<br>getAudioChannels: " . $ffmpegInstance->getAudioChannels() . "<br>hasAudio: " . $ffmpegInstance->hasAudio(); * and output is:* getDuration: 8.8935 getFrameCount: 0 getFrameRate: 0 getFilename: music_uploaded/am-free-sou-women-la-9jsq.mp3 getComment: Rock On!! getTitle: women' getAuthor: jaymin getCopyright: getArtist: jaymin getGenre: Rock getTrackNumber: 0 getYear: 1997 getFrameHeight: 0 getFrameWidth: 0 getPixelFormat: yuv420p getBitRate: 16000 getVideoBitRate: getAudioBitRate: 16000 getAudioSampleRate: 11025 getVideoCodec: getAudioCodec: mp3 getAudioChannels: 1 hasAudio: 1 ?> how it is possible? creating the instance of ffmpeg_movie, which returns audio file metadata but other way i can't convet audio file. how can i use ffmpeg to convert audio file? Please check the above point. is there anything else required? thanks
_______________________________________________ ffserver-user mailing list ffserver-user@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user