Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

video compression with java

<dependency>
        <groupId>io.github.techgnious</groupId>
        <artifactId>IVCompressor</artifactId>
        <version>1.0.1</version>
    </dependency>

public static void main(String[] args) throws VideoException, IOException {
    IVCompressor compressor = new IVCompressor();
    IVSize customRes = new IVSize();
    customRes.setWidth(400);
    customRes.setHeight(300);
    File file = new File("D:/Testing/20.mp4");
        compressor.reduceVideoSizeAndSaveToAPath(file,VideoFormats.MP4,ResizeResolution.R480P,"D:/Testing/Custome");
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #video #compression #java
ADD COMMENT
Topic
Name
3+8 =