Class VideoDecoder

  • All Implemented Interfaces:
    IDecoder

    public class VideoDecoder
    extends java.lang.Object
    implements IDecoder
    Since:
    : 23-11-2020
    Author:
    : Enrico Gamil Toros de Chadarevian Project name : ProjektStudiumSteganography
    • Constructor Summary

      Constructors 
      Constructor Description
      VideoDecoder​(Video video, java.io.File ffmpegBin, boolean logging)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<byte[]> decodeVideoToFrames​(int nThread)
      Decode a Video into a list of single Pictures that can be encoded
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VideoDecoder

        public VideoDecoder​(Video video,
                            java.io.File ffmpegBin,
                            boolean logging)
        Parameters:
        video - Video to be decoded
        ffmpegBin - path to bin of ffmpeg
        logging - if logging should be enabled
    • Method Detail

      • decodeVideoToFrames

        public java.util.List<byte[]> decodeVideoToFrames​(int nThread)
                                                   throws java.io.IOException
        Decode a Video into a list of single Pictures that can be encoded
        Specified by:
        decodeVideoToFrames in interface IDecoder
        Parameters:
        nThread - number of threads to be used to decode
        Returns:
        List of pictures from single frames of Video
        Throws:
        java.io.IOException - if a read or write fails