Added ASF video format
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 19 Aug 2017 13:26:48 +0000 (16:26 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sat, 19 Aug 2017 13:26:48 +0000 (16:26 +0300)
meviz.iml
src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvVideo.java

index 37a4af7..7e3734c 100644 (file)
--- a/meviz.iml
+++ b/meviz.iml
@@ -11,6 +11,7 @@
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
     <orderEntry type="library" name="Maven: eu.svjatoslav:svjatoslavcommons:1.6-SNAPSHOT" level="project" />
+    <orderEntry type="library" name="Maven: eu.svjatoslav:svjatoslavcommons:1.6-SNAPSHOT" level="project" />
     <orderEntry type="library" name="Maven: log4j:log4j:1.2.16" level="project" />
   </component>
 </module>
\ No newline at end of file
index be39365..642095d 100644 (file)
@@ -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) {