import eu.svjatoslav.meviz.encoder.converters.AvconvAudio;
import eu.svjatoslav.meviz.encoder.converters.AvconvVideo;
import eu.svjatoslav.meviz.encoder.converters.Convert;
-import eu.svjatoslav.meviz.encoder.converters.Ffmpeg;
import eu.svjatoslav.meviz.encoder.converters.Ffmpeg2theora;
import eu.svjatoslav.meviz.encoder.converters.Flac;
import eu.svjatoslav.meviz.encoder.converters.Ogg2Wav;
public FormatsRegistry() {
// video conversion
registerEncoder(new Ffmpeg2theora());
- registerEncoder(new Ffmpeg());
registerEncoder(new AvconvVideo());
// image conversion
+++ /dev/null
-/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, 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.
- */
-
-package eu.svjatoslav.meviz.encoder.converters;
-
-import java.io.File;
-import java.util.List;
-
-import eu.svjatoslav.meviz.encoder.EncodingOptions;
-
-public class Ffmpeg extends AbstractConverter {
-
- @Override
- public String getCommand(final File inputFile, final File targetFile,
- final EncodingOptions options) {
-
- return "ffmpeg -i \"" + inputFile.getAbsolutePath()
- + "\" -vcodec copy -acodec copy \""
- + targetFile.getAbsolutePath() + "\"";
- }
-
- @Override
- public List<String> getSourceFileExtensions() {
- return toList("mts");
- }
-
- @Override
- public List<String> getTargetFileExtensions() {
- return toList("mkv");
- }
-
- @Override
- public boolean isTerminalMandatory() {
- return true;
- }
-
-}
import eu.svjatoslav.meviz.encoder.EncodingPlan;
import eu.svjatoslav.meviz.encoder.EncodingTask;
import eu.svjatoslav.meviz.encoder.converters.AbstractConverter;
-import eu.svjatoslav.meviz.encoder.converters.Ffmpeg;
+import eu.svjatoslav.meviz.encoder.converters.AvconvVideo;
public class Main implements Module {
final File targetDirectory = getTargetDirectory();
targetDirectory.mkdirs();
- final AbstractConverter converter = new Ffmpeg();
+ final AbstractConverter converter = new AvconvVideo();
final EncodingPlan encodingPlan = new EncodingPlan();
final String userName = System.getProperty("user.name");