- private EncodingOptions getEncodingOptions() {
- final EncodingOptions options = new EncodingOptions();
- options.setVideoBitrate(BitrateParameter.bitrate.COPY);
- options.setAudioBitrate(BitrateParameter.bitrate.COPY);
- return options;
- }
-
- private File getTargetFile(final File targetDirectory, final File sourceFile) {
- // compute target file path
- final StringBuffer targetFilePath = new StringBuffer();
- targetFilePath.append(targetDirectory.getAbsolutePath());
- targetFilePath.append("/");
- targetFilePath.append(FilePathParser
- .getFileNameWithoutExtension(sourceFile));
- targetFilePath.append(".mp4");
- final File targetFile = new File(targetFilePath.toString());
- return targetFile;
- }
-