i'm having trouble with shell_exec. according to php.net the output of the command is returned by shell_exec(), but this is not the case. i've tried exec,passthru and system but can't get the output into a variable.
$ffmpeg = escapeshellcmd('ffmpeg -i "'.$uploadPath['orgVideo'].$org.'"');
$tmp = shell_exec($ffmpeg);
echo "\n\n";
print_r($tmp);
echo "\n\n";
i'm executing this code from the console: "php fileadmin/php/cron.php"
output in console:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-xvid --enable-libdts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscaler
libavutil version: 49.4.0
libavcodec version: 51.40.2
libavformat version: 51.11.0
built on Mar 29 2007 11:08:52, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/testTypo/orgUpload/video/20070329104627-HOWTO backup your DVD movies - desktop edition.mp4':
Duration: 00:05:24.9, start: 0.000000, bitrate: 140 kb/s
Stream #0.0(eng): Audio: aac, 44100 Hz, stereo
Stream #0.1(eng): Video: h264, yuv420p, 640x480, 9.99 fps(r)
Must supply at least one output file
what can i do, this should work according to php.net???
thanks for help
end of output