public List<String> cut(Video video) throws OtrInternalErrorException, UtilsProcessingException { List<String> result = new ArrayList<String>(); int indexVf = 1; for (VideoFile vf : video.getVideoFiles().getVideoFile()) { String inVideo = null; switch (profile) { case P0: inVideo = rpf.relativate(new File(cfg.getDir(Dir.TMP), "mp4-" + indexVf + ".mp4")); break; // case P1: inVideo = rpf.relativate(new // File(cfg.getDir(Dir.AVI),vf.getFileName().getValue()));break; default: break; } result.addAll(applyCutList(indexVf, vf.getCutList(), inVideo, profile)); // result.add(transcode(index,vf)); indexVf++; } return result; }