From bbca5a7b5a703215321b41888761a2ae3ec870e4 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sat, 19 Aug 2017 16:26:48 +0300 Subject: [PATCH] Added ASF video format --- meviz.iml | 1 + .../svjatoslav/meviz/encoder/converters/AvconvVideo.java | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/meviz.iml b/meviz.iml index 37a4af7..7e3734c 100644 --- a/meviz.iml +++ b/meviz.iml @@ -11,6 +11,7 @@ + \ No newline at end of file diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvVideo.java b/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvVideo.java index be39365..642095d 100644 --- a/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvVideo.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvVideo.java @@ -118,14 +118,17 @@ public class AvconvVideo extends AbstractConverter { @Override public List getSourceFileExtensions() { + return getSupportedExtensions(); + } + + private List getSupportedExtensions() { return toList("mkv", "mts", "mp4", "avi", "mpg", "mpeg", "vob", "m4v", - "webm", "mov"); + "webm", "mov", "asf"); } @Override public List getTargetFileExtensions() { - return toList("mkv", "mts", "mp4", "avi", "mpg", "mpeg", "vob", "m4v", - "webm", "mov"); + return getSupportedExtensions(); } private int getVideoBitrateValue(final Bitrate bitRate) { -- 2.20.1