Split video into image frames in java

I would like to read a video (MPEG, AVI or any popular format) using Java code and split it into no frames (Jpeg). For example, splitting a 2-second video into 48 images (2X24 frames / sec). Is this possible in java. After hindsight, I would also like to know if it is possible to create a video using an array of images (restoring video after editing individual images). Any help would be greatly appreciated. Thanks in advance.

+4
source share
2 answers

You can use FFMPEG, which is a build of open-source C programs and the fastest video / audio processing library even used by most popular video sites.

use the exec method to call ffmpeg.

+1
source

You can use JMF for this (http://www.oracle.com/technetwork/java/javase/tech/index-jsp-140239.html).

0
source

Source: https://habr.com/ru/post/1388562/


All Articles