Recommend this page to a friend! |
PHP Video Toolkit | > | All threads | > | .mov file conversion problem | > | (Un) Subscribe thread alerts |
|
kiran - 2008-06-09 09:03:13
Hello,
While trying to convert the .mov file I received this error. Is there any library I need to install to convert files in .mov formats? Processing AmyHard.mov FFMPEG ERROR: Execute error. Output for file "/usr/local/apache2/htdocs/videotoolkit/examples/to-be-processed/AmyHard.mov" was found, but the file contained no data. Please check the available codecs compiled with FFmpeg can support this type of conversion. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo(). The total time taken to process all 1 file(s) is : 0 The average time taken to process each file is : 0 Output of example09.php is as fallows:- 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] => --enable-libmp3lame [1] => --enable-libvorbis [2] => --enable-libamr-nb [3] => --enable-libamr-wb [4] => --enable-gpl [5] => --enable-shared [6] => --enable-nonfree ) [vhook-support] => [versions] => Array ( [libavutil] => 49.7.0 [libavcodec] => 51.57.2 [libavformat] => 52.14.0 [libavdevice] => 52.0.0 ) [gcc] => 3.4.6 20060404 (Red Hat 3.4.6-9) [build_date] => Jun 5 2008 18:14:46 [build_date_timestamp] => 1212669886 ) [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 ) [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 ) *************************** [3gp] => Array ( [encode] => 1 [decode] => [fullname] => 3GP format ) [mov] => Array ( [encode] => 1 [decode] => [fullname] => MOV format ) here you can see that decode is not available for both 3gp and mov files but still I am able to convert the 3gp file into flv file format but not mov files.
Oliver Lillie - 2008-06-09 11:25:54 - In reply to message 1 from kiran
because you have compile ffmpeg with these flags
--enable-libamr-nb --enable-libamr-wb you will be able to encode / decode 3gp regardless of whatever ffmpeg reports as encode/decode availability. the same cannot be said of a .mov file though i'm afraid. I'm not sure which codecs can decode a quicktime file, have you tried searching the ffmpeg mailing list? lists.mplayerhq.hu/pipermail/ffmpeg ... |
info at phpclasses dot org
.