Best way to call terminal command repeatedly
问题 I'm using mencoder to split files and I'd like to turn this into an Object Oriented approach, if possible, using Java or similar, for example. But I'm not sure the best way, so I leave it in the open. Here is what I need: I have an excel file with start times and end times, and I need to extract out the appropriate clips from a video file. In the terminal (I'm on Mac OS X) I've had success using, for example: mencoder -ss 0 -endpos 10 MyVideo.avi -oac copy -ovc copy -o Output.avi Which