X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fencoder%2Fconverters%2FFfmpeg2theora.java;h=608ed8af92370273bc309b386fe6cb5d5f781bda;hb=567410640f4e0428caf9de9fc83df4c73f0e5067;hp=b2afedb3c87de14771ca4391e506ffc14b45501f;hpb=0679806fed21137dc0d10f1ef99dc1bba73ddb95;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ffmpeg2theora.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ffmpeg2theora.java index b2afedb..608ed8a 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ffmpeg2theora.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/Ffmpeg2theora.java @@ -1,42 +1,42 @@ /* * Meviz - Various tools collection to work with multimedia. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * 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 2 of the GNU General Public License - * as published by the Free Software Foundation. - */ + * 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; -import eu.svjatoslav.meviz.encoder.EncodingOptions; - public class Ffmpeg2theora extends AbstractConverter { - @Override - public String getCommand(final File inputFile, final File targetFile, - final EncodingOptions options, String targetFormat) { - return "ffmpeg2theora \"" + inputFile.getAbsolutePath() + "\" -o \"" - + targetFile.getAbsolutePath() - + "\" --optimize --videobitrate 3000 --width 800"; - } - - @Override - public List getSourceFileExtensions() { - return toList("avi", "mp4", "m4v", "asf"); - } - - @Override - public List getTargetFileExtensions() { - return toList("ogv"); - } - - @Override - public boolean isTerminalMandatory() { - return true; - } + @Override + public String getCommand(final File inputFile, final File targetFile, + final EncodingOptions options, String targetFormat) { + return "ffmpeg2theora \"" + inputFile.getAbsolutePath() + "\" -o \"" + + targetFile.getAbsolutePath() + + "\" --optimize --videobitrate 3000 --width 800"; + } + + @Override + public List getSourceFileExtensions() { + return toList("avi", "mp4", "m4v", "asf"); + } + + @Override + public List getTargetFileExtensions() { + return toList("ogv"); + } + + @Override + public boolean isTerminalMandatory() { + return true; + } }