PHP Classes

Output Error

Recommend this page to a friend!

      PHP Video Toolkit  >  All threads  >  Output Error  >  (Un) Subscribe thread alerts  
Subject:Output Error
Summary:tried liblameMP3 hack
Messages:4
Author:mike wharton
Date:2008-08-26 17:02:17
Update:2009-09-22 12:54:20
 

  1. Output Error   Reply   Report abuse  
Picture of mike wharton mike wharton - 2008-08-26 17:02:17
Hi,

I am recieving the following error:

FFMPEG ERROR: Execute error. Output for file "/var/www/vhosts/sitdev.waracle.net/tmp/test.mpg" 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().

however, I can convert the file no bother if i run FFmpeg at the command line, so its not a problem with decode codecs missing...

I have tried the mp3 to liblamemp3 fix to no avail :(

My execution code is as follows :

$result = $ffmpeg->setInputFile($tmpDir . $file);
if(!$result){
echo $ffmpeg->getLastError()."<br /><br />\r\n";
$ffmpeg->reset();
continue;
}
$ffmpeg->setVideoOutputDimensions(560, 320);
$ffmpeg->setFormatToFLV(44100, 64);
$result = $ffmpeg->setOutput($ouputDir, $filename_minus_ext.'.flv', PHPVideoToolkit::OVERWRITE_EXISTING);
if(!$result){
echo $ffmpeg->getLastError()."<br /><br />\r\n";
$ffmpeg->reset();
continue;
}
$result = $ffmpeg->execute(false,false);


My ffmpeginfo output is as follows :

[compiler] => Array
(
[configuration] => Array
(
[0] => --enable-gpl
[1] => --enable-libmp3lame
[2] => --enable-libfaac
[3] => --enable-libamr-wb
[4] => --enable-shared
[5] => --enable-nonfree
)

[vhook-support] =>
[versions] => Array
(
[libavutil] => 49.7.0
[libavcodec] => 51.57.2
[libavformat] => 52.16.0
[libavdevice] => 52.0.0
)

[gcc] => 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
[build_date] => Jun 19 2008 16:13:27
[build_date_timestamp] => 1213888407
)

[formats] => Array
(
[3gp] => Array
(
[encode] => 1
[decode] =>
[fullname] => 3GP format
)

[4xm] => Array
(
[encode] =>
[decode] => 1
[fullname] => 4X Technologies format
)

[iff] => Array
(
[encode] =>
[decode] => 1
[fullname] => IFF format
)

[mtv] => Array
(
[encode] =>
[decode] => 1
[fullname] => MTV format
)

[roq] => Array
(
[encode] => 1
[decode] => 1
[fullname] => id RoQ format
)

[aac] => Array
(
[encode] =>
[decode] => 1
[fullname] => ADTS AAC
)

[ac3] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw AC-3
)

[adts] => Array
(
[encode] => 1
[decode] =>
[fullname] => ADTS AAC
)

[aiff] => Array
(
[encode] => 1
[decode] => 1
[fullname] => Audio IFF
)

[alaw] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm A law format
)

[amr] => Array
(
[encode] => 1
[decode] => 1
[fullname] => 3GPP AMR file format
)

[apc] => Array
(
[encode] =>
[decode] => 1
[fullname] => CRYO APC format
)

[ape] => Array
(
[encode] =>
[decode] => 1
[fullname] => Monkey's Audio
)

[asf] => Array
(
[encode] => 1
[decode] => 1
[fullname] => ASF format
)

[asf_stream] => Array
(
[encode] => 1
[decode] =>
[fullname] => ASF format
)

[au] => Array
(
[encode] => 1
[decode] => 1
[fullname] => SUN AU format
)

[avi] => Array
(
[encode] => 1
[decode] => 1
[fullname] => AVI format
)

[avm2] => Array
(
[encode] => 1
[decode] =>
[fullname] => Flash 9 (AVM2) format
)

[avs] => Array
(
[encode] =>
[decode] => 1
[fullname] => AVS format
)

[bethsoftvid] => Array
(
[encode] =>
[decode] => 1
[fullname] => Bethesda Softworks VID format
)

[bfi] => Array
(
[encode] =>
[decode] => 1
[fullname] => Brute Force & Ignorance
)

[c93] => Array
(
[encode] =>
[decode] => 1
[fullname] => Interplay C93
)

[crc] => Array
(
[encode] => 1
[decode] =>
[fullname] => CRC testing format
)

[daud] => Array
(
[encode] =>
[decode] => 1
[fullname] => D-Cinema audio format
)

[dirac] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw Dirac
)

[dsicin] => Array
(
[encode] =>
[decode] => 1
[fullname] => Delphine Software International CIN format
)

[dts] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw DTS
)

[dv] => Array
(
[encode] => 1
[decode] => 1
[fullname] => DV video format
)

[dv1394] => Array
(
[encode] =>
[decode] => 1
[fullname] => DV1394 A/V grab
)

[dvd] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG-2 PS format (DVD VOB)
)

[dxa] => Array
(
[encode] =>
[decode] => 1
[fullname] => DXA
)

[ea] => Array
(
[encode] =>
[decode] => 1
[fullname] => Electronic Arts Multimedia Format
)

[ea_cdata] => Array
(
[encode] =>
[decode] => 1
[fullname] => Electronic Arts cdata
)

[ffm] => Array
(
[encode] => 1
[decode] => 1
[fullname] => ffm format
)

[film_cpk] => Array
(
[encode] =>
[decode] => 1
[fullname] => Sega FILM/CPK format
)

[flac] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw FLAC
)

[flic] => Array
(
[encode] =>
[decode] => 1
[fullname] => FLI/FLC/FLX animation format
)

[flv] => Array
(
[encode] => 1
[decode] => 1
[fullname] => FLV format
)

[framecrc] => Array
(
[encode] => 1
[decode] =>
[fullname] => framecrc testing format
)

[gif] => Array
(
[encode] => 1
[decode] => 1
[fullname] => GIF Animation
)

[gsm] => Array
(
[encode] =>
[decode] => 1
[fullname] => GSM
)

[gxf] => Array
(
[encode] => 1
[decode] => 1
[fullname] => GXF format
)

[h261] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw H.261
)

[h263] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw H.263
)

[h264] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw H.264 video format
)

[idcin] => Array
(
[encode] =>
[decode] => 1
[fullname] => id CIN format
)

[image2] => Array
(
[encode] => 1
[decode] => 1
[fullname] => image2 sequence
)

[image2pipe] => Array
(
[encode] => 1
[decode] => 1
[fullname] => piped image2 sequence
)

[ingenient] => Array
(
[encode] =>
[decode] => 1
[fullname] => Ingenient MJPEG
)

[ipmovie] => Array
(
[encode] =>
[decode] => 1
[fullname] => Interplay MVE format
)

[ipod] => Array
(
[encode] => 1
[decode] =>
[fullname] => iPod H.264 MP4 format
)

[lmlm4] => Array
(
[encode] =>
[decode] => 1
[fullname] => lmlm4 raw format
)

[m4v] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw MPEG-4 video format
)

[matroska] => Array
(
[encode] => 1
[decode] => 1
[fullname] => Matroska file format
)

[mjpeg] => Array
(
[encode] => 1
[decode] => 1
[fullname] => MJPEG video
)

[mlp] => Array
(
[encode] =>
[decode] => 1
[fullname] => raw MLP
)

[mm] => Array
(
[encode] =>
[decode] => 1
[fullname] => American Laser Games MM format
)

[mmf] => Array
(
[encode] => 1
[decode] => 1
[fullname] => mmf format
)

[mov] => Array
(
[encode] => 1
[decode] =>
[fullname] => MOV format
)

[mp2] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG audio layer 2
)

[mp3] => Array
(
[encode] => 1
[decode] => 1
[fullname] => MPEG audio layer 3
)

[mp4] => Array
(
[encode] => 1
[decode] =>
[fullname] => MP4 format
)

[mpc] => Array
(
[encode] =>
[decode] => 1
[fullname] => Musepack
)

[mpc8] => Array
(
[encode] =>
[decode] => 1
[fullname] => Musepack SV8
)

[mpeg] => Array
(
[encode] => 1
[decode] => 1
[fullname] => MPEG-1 System format
)

[mpeg1video] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG video
)

[mpeg2video] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG-2 video
)

[mpegts] => Array
(
[encode] => 1
[decode] => 1
[fullname] => MPEG-2 transport stream format
)

[mpegtsraw] => Array
(
[encode] =>
[decode] => 1
[fullname] => MPEG-2 raw transport stream format
)

[mpegvideo] => Array
(
[encode] =>
[decode] => 1
[fullname] => MPEG video
)

[mpjpeg] => Array
(
[encode] => 1
[decode] =>
[fullname] => Mime multipart JPEG format
)

[msnwctcp] => Array
(
[encode] =>
[decode] => 1
[fullname] => MSN TCP Webcam stream
)

[mulaw] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm mu law format
)

[mxf] => Array
(
[encode] =>
[decode] => 1
[fullname] => MXF format
)

[nsv] => Array
(
[encode] =>
[decode] => 1
[fullname] => NullSoft Video format
)

[null] => Array
(
[encode] => 1
[decode] =>
[fullname] => null video format
)

[nut] => Array
(
[encode] => 1
[decode] => 1
[fullname] => NUT format
)

[nuv] => Array
(
[encode] =>
[decode] => 1
[fullname] => NuppelVideo format
)

[ogg] => Array
(
[encode] => 1
[decode] => 1
[fullname] => Ogg
)

[oma] => Array
(
[encode] =>
[decode] => 1
[fullname] => Sony OpenMG audio
)

[oss] => Array
(
[encode] => 1
[decode] => 1
[fullname] => audio grab and output
)

[psp] => Array
(
[encode] => 1
[decode] =>
[fullname] => PSP MP4 format
)

[psxstr] => Array
(
[encode] =>
[decode] => 1
[fullname] => Sony Playstation STR format
)

[pva] => Array
(
[encode] =>
[decode] => 1
[fullname] => TechnoTrend PVA file and stream format
)

[rawvideo] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw video format
)

[redir] => Array
(
[encode] =>
[decode] => 1
[fullname] => Redirector format
)

[rl2] => Array
(
[encode] =>
[decode] => 1
[fullname] => rl2 format
)

[rm] => Array
(
[encode] => 1
[decode] => 1
[fullname] => RM format
)

[rpl] => Array
(
[encode] =>
[decode] => 1
[fullname] => RPL/ARMovie format
)

[rtp] => Array
(
[encode] => 1
[decode] =>
[fullname] => RTP output format
)

[rtsp] => Array
(
[encode] =>
[decode] => 1
[fullname] => RTSP input format
)

[s16be] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm signed 16 bit big endian format
)

[s16le] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm signed 16 bit little endian format
)

[s8] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm signed 8 bit format
)

[sdp] => Array
(
[encode] =>
[decode] => 1
[fullname] => SDP
)

[shn] => Array
(
[encode] =>
[decode] => 1
[fullname] => raw Shorten
)

[siff] => Array
(
[encode] =>
[decode] => 1
[fullname] => Beam Software SIFF
)

[smk] => Array
(
[encode] =>
[decode] => 1
[fullname] => Smacker video
)

[sol] => Array
(
[encode] =>
[decode] => 1
[fullname] => Sierra SOL format
)

[svcd] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG-2 PS format (VOB)
)

[swf] => Array
(
[encode] => 1
[decode] => 1
[fullname] => Flash format
)

[thp] => Array
(
[encode] =>
[decode] => 1
[fullname] => THP
)

[tiertexseq] => Array
(
[encode] =>
[decode] => 1
[fullname] => Tiertex Limited SEQ format
)

[tta] => Array
(
[encode] =>
[decode] => 1
[fullname] => True Audio
)

[txd] => Array
(
[encode] =>
[decode] => 1
[fullname] => txd format
)

[u16be] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm unsigned 16 bit big endian format
)

[u16le] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm unsigned 16 bit little endian format
)

[u8] => Array
(
[encode] => 1
[decode] => 1
[fullname] => pcm unsigned 8 bit format
)

[vc1] => Array
(
[encode] =>
[decode] => 1
[fullname] => raw VC-1
)

[vc1test] => Array
(
[encode] =>
[decode] => 1
[fullname] => VC-1 test bitstream format
)

[vcd] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG-1 System format (VCD)
)

[video4linux] => Array
(
[encode] =>
[decode] => 1
[fullname] => video grab
)

[video4linux2] => Array
(
[encode] =>
[decode] => 1
[fullname] => video grab
)

[vmd] => Array
(
[encode] =>
[decode] => 1
[fullname] => Sierra VMD format
)

[vob] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG-2 PS format (VOB)
)

[voc] => Array
(
[encode] => 1
[decode] => 1
[fullname] => Creative Voice file format
)

[wav] => Array
(
[encode] => 1
[decode] => 1
[fullname] => WAV format
)

[wc3movie] => Array
(
[encode] =>
[decode] => 1
[fullname] => Wing Commander III movie format
)

[wsaud] => Array
(
[encode] =>
[decode] => 1
[fullname] => Westwood Studios audio format
)

[wsvqa] => Array
(
[encode] =>
[decode] => 1
[fullname] => Westwood Studios VQA format
)

[wv] => Array
(
[encode] =>
[decode] => 1
[fullname] => WavPack
)

[xa] => Array
(
[encode] =>
[decode] => 1
[fullname] => Maxis XA File Format
)

[yuv4mpegpipe] => Array
(
[encode] => 1
[decode] => 1
[fullname] => YUV4MPEG pipe format
)

)

[filters] => Array
(
)

[abbreviations] => Array
(
)

[ffmpeg-php-support] => module

  2. Re: Output Error   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-08-27 14:08:36 - In reply to message 1 from mike wharton
It might be because you are resizing the video to a custom size. When you ran the process via the command line did you include the resize information?

  3. Re: Output Error   Reply   Report abuse  
Picture of rakesh rakesh - 2009-09-22 12:43:40 - In reply to message 2 from Oliver Lillie
Hi,when i am trying to run script then i am getting some problem can you tell me what is the reason, my hosting on linux server.
Bellow the url of My file

w3syntactic.com/projects/conv/examp ...

Below is the error

Processing MOV00007.3gp
FFMPEG ERROR: Execute error. Output for file "/home/.kelou/w3syntactic/w3syntactic.com/projects/conv/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().

Processing Video000.3gp
FFMPEG ERROR: Execute error. Output for file "/home/.kelou/w3syntactic/w3syntactic.com/projects/conv/examples/to-be-processed/Video000.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().

Processing cat.mpeg
FFMPEG ERROR: Execute error. Output for file "/home/.kelou/w3syntactic/w3syntactic.com/projects/conv/examples/to-be-processed/cat.mpeg" 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().

  4. Re: Output Error   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2009-09-22 12:54:20 - In reply to message 3 from rakesh
Do you have ffmpeg installed on your host? As http://w3syntactic.com/projects/conv/examples/example09.php

show's no information.