Run a command dependant on variables from the user.
Posted: 05 Apr 2008 15:23
What I need is -
The user is prompted to enter two variables - moviename and time(in seconds)
The moviename var has to be amended with an x.avi making it movienamex.avi as this is the out put file of mencoder. And the moviename would have ".avi" added to become the input file.
And then these are used to run the following automatically in the command line..
mencoder -ss "time" -oac copy -ovc copy "moviename.avi" i -o "movienameX.avi"
Hope someone can help,
Cheers.
The user is prompted to enter two variables - moviename and time(in seconds)
The moviename var has to be amended with an x.avi making it movienamex.avi as this is the out put file of mencoder. And the moviename would have ".avi" added to become the input file.
And then these are used to run the following automatically in the command line..
mencoder -ss "time" -oac copy -ovc copy "moviename.avi" i -o "movienameX.avi"
Hope someone can help,
Cheers.