Package ws.schild.jave
Class VideoProcessor
- java.lang.Object
-
- ws.schild.jave.VideoProcessor
-
public class VideoProcessor extends java.lang.ObjectA high-level class meant to perform higher level operations on video files. Will use the Encoder heavily, but presents a simpler interface for someone new to JAVE. For real customization, use of Encoder is encouraged.
-
-
Constructor Summary
Constructors Constructor Description VideoProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcatClipsTogether(java.util.List<java.io.File> videos, java.io.File destination, VideoProgressListener progress)Concatenate input video files to a destination file.Destination file and parent directory must be writeable.private MultimediaObjectfromFile(java.io.File source)booleanisEnabled()private AutoRemoveableFileprepareMergeInstructions(java.util.List<java.io.File> videos, java.io.File destination)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
enabled
private static boolean enabled
-
encoder
private Encoder encoder
-
locator
private ProcessLocator locator
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
catClipsTogether
public void catClipsTogether(java.util.List<java.io.File> videos, java.io.File destination, VideoProgressListener progress) throws java.io.FileNotFoundException, java.lang.IllegalArgumentException, InputFormatException, EncoderExceptionConcatenate input video files to a destination file.Destination file and parent directory must be writeable.- Parameters:
videos- The list of videos on the local filesystem that are readable by this process that will be concatenated togetherdestination- The target file to write to. The target file must be unique to this process and writeable.progress- Track progress of processing- Throws:
java.io.FileNotFoundException- If the destination cannot be createdEncoderException- error in encodingInputFormatException- error in input argumentsjava.lang.IllegalArgumentException- thrown when parameters don't match- See Also:
- FFMPEG documentation for concatenate
-
fromFile
private MultimediaObject fromFile(java.io.File source)
-
prepareMergeInstructions
private AutoRemoveableFile prepareMergeInstructions(java.util.List<java.io.File> videos, java.io.File destination) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
-