Package steganography.video.encoders
Class VideoDecoder
- java.lang.Object
-
- steganography.video.encoders.VideoDecoder
-
-
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
-
-
-
Constructor Detail
-
VideoDecoder
public VideoDecoder(Video video, java.io.File ffmpegBin, boolean logging)
- Parameters:
video
- Video to be decodedffmpegBin
- path to bin of ffmpeglogging
- 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 interfaceIDecoder
- 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
-
-