Fixed aspect ratio of WEBM files
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / converters / AvconvVideo.java
index be39365..2492b52 100644 (file)
@@ -84,7 +84,7 @@ public class AvconvVideo extends AbstractConverter {
         if (targetFormat.equals("webm")) {
             videoCodec = "vp8";
             audioCodec = "opus";
-            codecParams.append("-s 800x600 ");
+            codecParams.append("-s 800x450 ");
         }
 
         if (options.getVideoBitrate() == Bitrate.COPY)
@@ -118,14 +118,17 @@ public class AvconvVideo extends AbstractConverter {
 
     @Override
     public List<String> getSourceFileExtensions() {
+        return getSupportedExtensions();
+    }
+
+    private List<String> getSupportedExtensions() {
         return toList("mkv", "mts", "mp4", "avi", "mpg", "mpeg", "vob", "m4v",
-                "webm", "mov");
+                "webm", "mov", "asf");
     }
 
     @Override
     public List<String> getTargetFileExtensions() {
-        return toList("mkv", "mts", "mp4", "avi", "mpg", "mpeg", "vob", "m4v",
-                "webm", "mov");
+        return getSupportedExtensions();
     }
 
     private int getVideoBitrateValue(final Bitrate bitRate) {