added webm support
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / Ffmpeg2theora.java
index 4df8c32..b2afedb 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * 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.
@@ -18,7 +18,7 @@ public class Ffmpeg2theora extends AbstractConverter {
 
        @Override
        public String getCommand(final File inputFile, final File targetFile,
-                       final EncodingOptions options) {
+                       final EncodingOptions options, String targetFormat) {
                return "ffmpeg2theora \"" + inputFile.getAbsolutePath() + "\" -o \""
                                + targetFile.getAbsolutePath()
                                + "\" --optimize --videobitrate 3000 --width 800";
@@ -26,7 +26,7 @@ public class Ffmpeg2theora extends AbstractConverter {
 
        @Override
        public List<String> getSourceFileExtensions() {
-               return toList("avi", "mp4");
+               return toList("avi", "mp4", "m4v", "asf");
        }
 
        @Override