Hi I am currently building a video sharing website. I use ffmpeg, mencoder to do the encoding. It had been successfully installed on my dedicated server. I had try using SSH to perform the conversion and it has no problem. But when I use the exec() php function, it doesn't seems to work! I really don't know what is wrong. Can anyone please help? It seems like the path to call FFMPEG is wrong. Thanks /usr/bin/ffmpeg -i /home/USER/folder/test.mpg -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 /home/USER/folder/test.flv Code (markup):
Hi, To figure out the full path to ffmpeg, you can run this command from shell: which ffmpeg Code (markup):
it is the correct path /usr/bin/ffmpeg, but why isn't the exec() function executed correctly. Do you have any idea? This is the result MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 success: format: 0 data: 0x0 - 0x13dd70 ASF file format detected. VIDEO: [WMV3] 640x480 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:6 fourcc:0x33564D57 size:640x480 fps:30.00 ftime:=0.0333 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8005->176400) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== PHP: