Jhendler <[email protected]> added the comment: I may have an issue with PHP wrapping ffmpeg that only happens during two pass encoding. When run from the shell -it executes fine. In this case an bash script is run via exec in php.
nice -n 11 /usr/bin/ffmpeg -y -i $1 -r 30000/1001 -b 1M -bt 2M -vcodec libx264 -threads 0 -pass 1 -vpre /usr/share/ffmpeg/libx264-fastfirstpass.ffpreset -an movie.flv nice -n 11 /usr/bin/ffmpeg -y -i $1 -r 30000/1001 -b 1M -bt 2M -vcodec libx264 -threads 0 -pass 2 -vpre /usr/share/ffmpeg/libx264-hq.ffpreset -acodec libfaac -ac 2 -ar 48000 -ab 192k movie.flv I've tried chaining the commands together with && and suppressing output with > /dev/null 2>&1 . FIle paths seem to be correct I am using FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 4 2010 12:41:55, gcc: 4.4.3 At least one output file must be specified I also get in apache logs [Sun Sep 19 18:37:02 2010] [warn] [client 204.236.224.9] mod_fcgid: stderr: wmv, files3/1qwj, 1qwj.wmv For more background: http://stackoverflow.com/questions/2504842/ffmpeg-running-in-command-line-but-not-php ---------- status: closed -> open ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue1829> ________________________________________________
