Changeset 158 for trunk/src/org/thestaticvoid/iriverter/SingleVideo.java
- Timestamp:
- 04/13/07 19:28:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/thestaticvoid/iriverter/SingleVideo.java
r157 r158 132 132 } 133 133 134 public MencoderCommand[] getMencoderCommands() {135 java.util.List mencoderCommandsList= new ArrayList();134 public DoSomeShit[] getShitToDo() { 135 java.util.List shitToDo = new ArrayList(); 136 136 137 137 138 138 java.util.List commandList = MencoderCommand.prepareBaseCommandList(inputVideo, getOutputVideo(), mplayerPath, inputVideoInfo, 0); 139 139 String[] command = (String[]) commandList.toArray(new String[]{}); 140 mencoderCommandsList.add(new MencoderCommand("Encoding...", command));140 shitToDo.add(new MencoderCommand("Encoding...", command)); 141 141 142 142 int length = inputVideoInfo.getLength(); … … 154 154 command = new String[]{mplayerPath + MPlayerInfo.MENCODER_BIN, inputVideo, "-o", outputVideo, "-ovc", "copy", "-oac", "copy", "-ss", "" + (length / pieces) * i, "-endpos", "" + (length / pieces)}; 155 155 156 mencoderCommandsList.add(new MencoderCommand("Splitting Part " + (i + 1) + " of " + pieces, command));156 shitToDo.add(new MencoderCommand("Splitting Part " + (i + 1) + " of " + pieces, command)); 157 157 } 158 158 } 159 159 160 return ( MencoderCommand[]) mencoderCommandsList.toArray(new MencoderCommand[]{});160 return (DoSomeShit[]) shitToDo.toArray(new DoSomeShit[]{}); 161 161 } 162 162 }
Note: See TracChangeset
for help on using the changeset viewer.
