I have two codes, the idea is to convert a video to flv with ffmpeg, using a php script.
outputs this:Code:<?php $output = shell_exec('ffmpeg -i unconverted/fg605.avi flv/fg605.flv'); print_r($output); ?>
The second code:Code:ffmpeg version 0.4.9-pre1, build 4730, Copyright (c) 2000-2004 Fabrice Bellard configuration: i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --extra-cflags=-O2 -march=i386 -mcpu=i686 --enable-mp3lame --enable-vorbis --enable-faad --enable-xvid --enable-pp --enable-shared-pp --enable-shared --enable-gpl --disable-strip built on Mar 10 2005 20:58:17, gcc: 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
outputs this:Code:<?php $output = array(); exec('ffmpeg -i unconverted/fg605.avi flv/fg605.flv', $output); print_r($output); ?>
As you can, see, they are both doing the same thing. The problem s that neither of them are writing the file (flv/fg605.flv) or giving me an output that is helpful.Code:Array ( [0] => ffmpeg version 0.4.9-pre1, build 4730, Copyright (c) 2000-2004 Fabrice Bellard [1] => configuration: i386-redhat-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --extra-cflags=-O2 -march=i386 -mcpu=i686 --enable-mp3lame --enable-vorbis --enable-faad --enable-xvid --enable-pp --enable-shared-pp --enable-shared --enable-gpl --disable-strip [2] => built on Mar 10 2005 20:58:17, gcc: 2.96 20000731 (Red Hat Linux 7.3 2.96-113) )








Bookmarks