downscale webm
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 28 Apr 2015 19:06:46 +0000 (22:06 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 28 Apr 2015 19:06:46 +0000 (22:06 +0300)
src/main/java/eu/svjatoslav/meviz/encoder/converters/AvconvVideo.java

index ea08e5d..beb634e 100644 (file)
@@ -82,6 +82,7 @@ public class AvconvVideo extends AbstractConverter {
                if (targetFormat.equals("webm")) {
                        videoCodec = "vp9";
                        audioCodec = "opus";
                if (targetFormat.equals("webm")) {
                        videoCodec = "vp9";
                        audioCodec = "opus";
+                       codecParams.append("-s 800x600 ");
                }
 
                if (options.getVideoBitrate() == bitrate.COPY)
                }
 
                if (options.getVideoBitrate() == bitrate.COPY)