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
Hi all, Just wondering if I use PHP to call Mencoder if it is possible to recieve a percentage completed of the encoding that I can display via PHP. Also does anyone have any idea why I can't encode JPG files from a directory other than the one mencoder.exe resides.....I can encode the files and they are detected, but unless they reside in the same directory as mencoder.exe, it crashes on the encoding process. Thanks again! Nathan
On Friday 09 February 2007 02:05, Nathan Wallis wrote:
Hi all,
Just wondering if I use PHP to call Mencoder if it is possible to recieve a percentage completed of the encoding that I can display via PHP.
Sorry, no idea.
Also does anyone have any idea why I can't encode JPG files from a directory other than the one mencoder.exe resides.....I can encode the files and they are detected, but unless they reside in the same directory as mencoder.exe, it crashes on the encoding process.
mencoder -oac copy -audiofile ${tmpdir}/zaudio.mp3 -0 $destfile \ -mf fps=25:type=jpg "mf://${tmpdir}/*.jpg" \ -ovc lavc -lavcopts vcodec=mpeg4:mbd=2 This is with "MEncoder 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team" -- Dave
participants (2)
-
DaveG -
Nathan Wallis