[MEncoder-users] Simple Mencoder call using Exec
Nathan Wallis
nwallis at ncable.net.au
Tue Feb 6 23:16:57 CET 2007
Hi there,
I am using mencoder for windows and having a little trouble with a call I am using to stitch a few jpgs together into an flv.
I have it working from php using the exec ("start mencoder.......
no problem.....
The problem I do have is this....the jpgs i am encoding are not in the same folder as mencoder. The php file that is calling mencoder is and that executes with no problems, I am specifying a relative path to the folder that contains the JPG's from the mencoder folder and that works also, the windows CMD window appears and detects the right number of jpgs etc....it then begins encoding...but crashes with these being the last few lines
Flushing video frames
Filters have not been configured! Empty file?
Writing index...
Writing Header...
KABOOM
The PHP script works and encodes with no problems if the same JPG's that I am trying to encode from the folder outside of mencoder are also in the mencoder folder.....
<?PHP
echo "ENCODING\n";
exec ("start mencoder \"mf://../../*.jpg\" -ofps 25 -o ../test.flv -of lavf -ovc lavc -lavcopts vcodec=flv:keyint=50:vbitrate=600:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vop scale=320:240 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames");
echo "\nDONE";
?>
Does anyone have any ideas on this, it does go to the relative folder and detects the number of JPG's there, but if they aren't in the same folder as mencoder then it crashes....
Thanks for your time,
Nathan
More information about the MEncoder-users
mailing list