Jump to content

[SOLVED] execute a windows' program with php (specific)


phpforever

Recommended Posts

I was able to use mencoder under cmd and created flash movies ready for streaming(red5 server).But here is the problem:I want to make a script that connects a button in html with  the cmd window.More spesific-to make a drop down menu with an option for choosing various video formats(avi,mpg...) which after button press to go directly in the cmd window as text.For example:if this is the command for converting:

 

mencoder tre.mpg( extension only)  tre.flv(name only) -oac mp3lame -ovc.....

 

to be inserted in cmd as a choise from  menu.

I will be grateful if only the above cmd row is connected to a button also.Thank you in advance.

Link to comment
Share on other sites

Nothing happened.Here is the full row:

 

<?php

 

exec("mencoder UAAUAA~2.MPG -o 1.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3");

 

?>

 

I tried to add a path to mencoder-the same result.

Link to comment
Share on other sites

<?php

echo exec("mencoder UAAUAA~2.MPG -o 1.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3");

?>

 

Try actually outputting the command line response :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.