Olá Pessoal
Desenvolvir um sistema que usa o FFmpeg pra converter os videos para .flv
PHP5 rodando como cgi no IIS7.
Uso a função exec() para rodar o ffmpeg.exe, o video e convertido mais assim que acaba de converte está retornando o seguinte erro:
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "FFmpeg version SVN-r15986, Copyright © 2000-2008 Fabrice Bellard, et al. configuration: --extra-cflags=-fno-common --enable-memalign-hack --enable-pthreads --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libfaac --enable-libgsm --enable-libx264 --enable-libschroedinger --enable-avisynth --enable-swscale --enable-gpl libavutil 49.12. 0 / 49.12. 0 libavcodec 52. 6. 0 / 52. 6. 0 libavformat 52.23. 1 / 52.23. 1 libavdevice 52. 1. 0 / 52. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 built on Dec 3 2008 01:59:37, gcc: 4.2.4 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) Input #0, flv, from 'C:\Windows\Temp\php749B.tmp': Duration: 00:02:07.00, start: 0.000000, bitrate: 64 kb/s Stream #0.0: Video: flv, yuv420p, 320x180, 25.00 tb® Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s Output #0, flv, to 'D:/inetpub/vhosts/animespirit.net/httpdocs/uploads/videos/vide".
Pelo que entendi o exec() está retornando a saida do ffmpeg pro navegador e isso da dando erro
Ja tentei rodar o PHP em ISAPI mais ai não converte o video, não da erro, não executa o exec() e nem chama o ffmpeg.exe