PHP Classes

example01 is not Working (did Every Thing)

Recommend this page to a friend!

      PHP Video Toolkit  >  All threads  >  example01 is not Working (did Every...  >  (Un) Subscribe thread alerts  
Subject:example01 is not Working (did Every...
Summary:example01 is not Working (did Every Thing)
Messages:9
Author:raja
Date:2008-06-10 15:08:24
Update:2008-06-11 13:32:14
 

  1. example01 is not Working (did Every...   Reply   Report abuse  
Picture of raja raja - 2008-06-10 15:08:24
hi ,
The version of PHPVideoToolkit i currently have is "0.1.5".
I also Changed
const FORMAT_MP3 = 'mp3';
to
const FORMAT_MP3 = 'libmp3lame';
in phpvideotoolkit.php5.php ONLY.
WHAT ELSE TO DO ??? ANY HELP WILL BE Appreciated .

Error Details and SOME INFO is .................
***********************************************************************************************************************************
Warning: unlink(/home/thehost/public_html/community/phpvideotoolkit-2008-06-06/examples/tmp/1213110044-484e971c092fe-multipass-0.log) [function.unlink]: No such file or directory in /home/thehost/public_html/community/phpvideotoolkit-2008-06-06/phpvideotoolkit.php5.php on line 2597
FFMPEG ERROR: Execute error. Output for file "/home/thehost/public_html/community/phpvideotoolkit-2008-06-06/examples/to-be-processed/keshta1.mov" 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().

***********************************************************************************************************************************

FFmpeg-PHP Support
Congratulations you have the FFmpeg-PHP module installed.

This is the information that is accessible about your install of FFmpeg.

Array
(
[compiler] => Array
(
[configuration] => Array
(
[0] => --prefix
[1] => --libdir
[2] => --mandir
[3] => --incdir
[4] => --enable-libmp3lame
[5] => --enable-libogg
[6] => --enable-libvorbis
[7] => --enable-libogg
[8] => --enable-libtheora
[9] => --enable-libfaad
[10] => --enable-libfaac
[11] => --enable-libgsm
[12] => --enable-xvid
[13] => --enable-x264
[14] => --enable-liba52
[15] => --enable-liba52bin
[16] => --enable-pp
[17] => --enable-shared
[18] => --enable-pthreads
[19] => --enable-gpl
[20] => --disable-strip
)

[vhook-support] =>
[versions] => Array
(
[libavutil] => 49.4.0
[libavcodec] => 51.40.4
[libavformat] => 51.12.1
)

[gcc] => 4.1.1 20070105 (Red Hat 4.1.1-52)
[build_date] => Jun 4 2007 11:02:12
[build_date_timestamp] => 1180972932
)

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

[4xm] => Array
(
[encode] =>
[decode] => 1
[fullname] => 4X Technologies 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 ac3
)

[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
)

[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
)

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

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

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

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

[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
)

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

[dts] => Array
(
[encode] =>
[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] => MPEG2 PS format (DVD VOB)
)

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

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

[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
)

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

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

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

[h264] => Array
(
[encode] => 1
[decode] => 1
[fullname] => raw H264 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
)

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

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

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

[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
)

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

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

[mpeg2video] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG2 video
)

[mpegts] => Array
(
[encode] => 1
[decode] => 1
[fullname] => MPEG2 transport stream format
)

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

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

[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] =>
[decode] => 1
[fullname] => nut format
)

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

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

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

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

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

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

[rm] => Array
(
[encode] => 1
[decode] => 1
[fullname] => rm 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
)

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

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

[svcd] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG2 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 vc1
)

[vcd] => Array
(
[encode] => 1
[decode] =>
[fullname] => MPEG1 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] => MPEG2 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
)

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

)

[filters] => Array
(
)

[abbreviations] => Array
(
)

[ffmpeg-php-support] => module
)
**********************************************************************************************************************************

  2. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-06-10 15:29:02 - In reply to message 1 from raja
It looks like your ffmpeg binary can't decode 3gp source.

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

thus it can't read the 3gp file used in the example.

  3. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of raja raja - 2008-06-10 15:34:39 - In reply to message 2 from Oliver Lillie
i also Tried .avi and .mpg
but same Error ,
and thanks for Replying ,

  4. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-06-10 16:40:47 - In reply to message 3 from raja
look in the log file that should have been produced. you'll find the full ffmpeg command. try running that by the command line. If it works then it's a problem with the script, if it doesn't it's your ffmpeg.

  5. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of raja raja - 2008-06-10 16:51:12 - In reply to message 4 from Oliver Lillie
using a Another Script and it is Producing FLV's from MOV ,
But i want to RUN your CLASS .

I dont have Sheel Access , ALSO . :P

  6. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-06-10 17:22:01 - In reply to message 5 from raja
ok, run it via exec('xxxx'); where exec is the ffmpeg command. you could also try turning off multipass encoding by

$toolkit->execute(false, true);

  7. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of raja raja - 2008-06-11 10:33:24 - In reply to message 6 from Oliver Lillie
ok , Did't Get it Working so , I am using ,
smashscripts.blogspot.com/2007/0 … v-and.html

so , If any Body Else End Up Like Me , then Follow the Above Link ,
But I Will Run this PHPVideoToolkit Some Day tongue Inshallah ,

any how , got one last Question ,

FFMPEG Supports which Formates for Conversion ?????
all??
or Depends on Compilation.?
so What To Do If Some Formate is Not Supported ??
[xxx] => Array
(
[encode] => 1
[decode] =>
[fullname] => xxx format
)
Have to Compile it Again , and With what ,
I just bought Hosting from Apthost , and it is Shared , ONE .

  8. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-06-11 11:40:01 - In reply to message 7 from raja
FFmpeg is a very complex program and the codecs it supports depends greatly on how you compile it and what additional libraries you compile it with. If you want more information about this you should read up on the documentation on their site.

ffmpeg.mplayerhq.hu/

  9. Re: example01 is not Working (did Every...   Reply   Report abuse  
Picture of raja raja - 2008-06-11 13:32:14 - In reply to message 8 from Oliver Lillie
thanks A Lot for the Help,
OK , I will Try for It , Soon ,
Regards.