Originally Posted by redbullet
Hi, we are having problems getting the ffmpeg working with PHP5. We have the example scripts but these will not do the video flash conversion - on of errors below:
Warning: unlink(/hsphere/local/home/davidshead/daredevilworld.com/examples/tmp/1212181817-48406d395c973-multipass-0.log): No such file or directory in /hsphere/local/home/davidshead/daredevilworld.com/phpvideotoolkit.php on line 2266 FFMPEG ERROR: Execute error. Output for file "/hsphere/local/home/davidshead/daredevilworld.com/examples/to-be-processed/MOV00007.3gp" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().
Is there something we are doing wrong, could it be the paths in the example config file - ie its not finding the following:
define('PHPVIDEOTOOLKIT_MENCODER_BINARY', '/var/hsphere/local/bin/mencoder'); // only required for video joining
define('PHPVIDEOTOOLKIT_FFMPEG_WATERMARK_VHOOK', '/var/hsphere/local/lib/vhook/watermark.dylib'); // only required for video wartermarking
Any hints welcomed!
Well, to me it seems that your ffmpeg is not installed with the .3gp option.
The software responsible for 3gp conversion is called: AMR.
Here is a very detailed guide how to installed ffmpeg + the 3gp convert option(AMR...).
The guide above is for Debian and Ubuntu only!
If you need guide for redhat based distribution(redhat, fedora, centos), then try this:
However keep in mind that this guide doesn't include AMR(3gp conversion...) so you should add this...(simply download AMRnb in one directory with the rest of the tools and
then: configure -> make -> make install.
But if your problem is not in the 3gp conversion, then first off try to see if your ffmpeg is
installed at all:
1. Open terminal and type:
2. You should see output similar to this:
debian:/home/johny# ffmpeg -v
FFmpeg version SVN-r12909, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-libmp3lame --enable-shared
libavutil version: 49.6.0
libavcodec version: 51.55.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on Apr 19 2008 14:13:34, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
ffmpeg: missing argument for option '-v'
3. If you see something like this without any ERRORS, then your ffmpeg is ready to use...
And yet another option:
What script do you use??? I found that "clipshare" doesn't work on php5 so in my opinion
try something simpler such as "youtube clone". Try to find this script..."youtube clone".
It has automatic installer and it's free. Try to avoid clipshare or any other script that
uses perl or anytyhing else other than PHP for ffmpeg conversion.
And at the end...check your permissions on the directories.
Better every directory to have chmod 777 permission. Open terminal and make all
/www directories "chmod 777".
So at the end: Try simpler script, try to convert .avi file(to see if the problem is in 3gp)
and see your permissions + ffmpeg if it's up and running.
Hope this helps...