+++ /dev/null
-/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
-*/
-
-package eu.svjatoslav.meviz.encoder.converters;
-
-import eu.svjatoslav.meviz.encoder.EncodingOptions;
-
-import java.io.File;
-import java.util.List;
-
-public class AvconvAudio extends AbstractConverter {
-
- private static final String[] SUPPORTED_FORMATS = new String[]{"ogg", "wav", "mp3", "m4a", "flac"};
-
- @Override
- public String getCommand(final File inputFile, final File targetFile,
- final EncodingOptions options, String targetFormat) {
-
- final String codecParams = "-b:a 192k";
-
- return "avconv -i \"" + inputFile.getAbsolutePath() + "\" "
- + codecParams + " \"" + targetFile.getAbsolutePath() + "\"";
- }
-
- @Override
- public List<String> getSourceFileExtensions() {
- return toList(SUPPORTED_FORMATS);
- }
-
- @Override
- public List<String> getTargetFileExtensions() {
- return toList(SUPPORTED_FORMATS);
- }
-
- @Override
- public boolean isTerminalMandatory() {
- return false;
- }
-
-}