2 * Meviz - Various tools collection to work with multimedia.
3 * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public License
7 * as published by the Free Software Foundation.
10 package eu.svjatoslav.meviz.encoder.converters;
14 import eu.svjatoslav.meviz.encoder.EncodingOptions;
16 public class Mts2Mp4 implements Converter {
19 public String getCommand(final File inputFile, final File targetFile,
20 final EncodingOptions options) {
24 // switch (options.videoBitrate) {
26 // videoBitrate = 3000;
30 // videoBitrate = 7000;
34 // videoBitrate = 15000;
38 // throw new RuntimeException("Video bitrate: " + options.videoBitrate
39 // + " is not supported.");
43 final String codecParams = "-acodec libmp3lame -vcodec libx264 -b 3500k -b:a 192k";
46 // final String codecParams = "-acodec copy -vcodec copy";
48 return "avconv -i \"" + inputFile.getAbsolutePath() + "\" "
49 + codecParams + " \"" + targetFile.getAbsolutePath() + "\"";
53 public String getSourceFileExtension() {
58 public String getTargetFileExtension() {
63 public boolean isTerminalMandatory() {