fixed source vs target
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Ogg2Mp3.java
1 /*
2  * Meviz - Various tools collection to work with multimedia.
3  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
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.
8  */
9
10 package eu.svjatoslav.meviz.encoder.converters;
11
12 import java.io.File;
13
14 import eu.svjatoslav.meviz.encoder.EncodingOptions;
15
16 public class Ogg2Mp3 implements Converter {
17
18     @Override
19     public String getCommand(final File inputFile, final File targetFile, final EncodingOptions options) {
20         return "avconv -i \"" + inputFile.getAbsolutePath() + "\" \"" + targetFile.getAbsolutePath() + "\"";
21     }
22
23     @Override
24     public String getSourceFileExtension() {
25         return "ogg";
26     }
27
28     @Override
29     public String getTargetFileExtension() {
30         return "mp3";
31     }
32
33     @Override
34     public boolean isTerminalMandatory() {
35         return false;
36     }
37
38 }