Class VideoProcessor


  • public class VideoProcessor
    extends java.lang.Object
    A 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.
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • enabled

        private static boolean enabled
    • Constructor Detail

      • VideoProcessor

        public VideoProcessor()
    • 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,
                                     EncoderException
        Concatenate 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 together
        destination - 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 created
        EncoderException - error in encoding
        InputFormatException - error in input arguments
        java.lang.IllegalArgumentException - thrown when parameters don't match
        See Also:
        FFMPEG documentation for concatenate
      • prepareMergeInstructions

        private AutoRemoveableFile prepareMergeInstructions​(java.util.List<java.io.File> videos,
                                                            java.io.File destination)
                                                     throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException