Package steganography.video
Class Video
- java.lang.Object
-
- steganography.video.Video
-
public class Video extends java.lang.Object
- Since:
- : 24-11-2020
This class represents a Video
- Author:
- : Enrico Gamil Toros de Chadarevian Project name : ProjektStudiumSteganography
-
-
Constructor Summary
Constructors Constructor Description Video(byte[] videoByteArray, java.io.File ffmpegBin)
Video POJO
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getAudioFile()
Get the Audio stream of the Video (only one stream supported)java.lang.String
getCodec()
Get the Codec of the Videolong
getFrameCount()
Get the number of frames in the Videoint
getFrameHeight()
Get the Frame Heightfloat
getFrameRate()
Get the frame rate of the Videoint
getFrameWidth()
Get the Frame Widthjava.lang.String
getPixelformat()
Get the format of the pixels of the Video as Stringjava.util.List<java.lang.Long>
getPtsList()
Get list of ptsjava.lang.Long
getTimebase()
Get the timebase of the Videobyte[]
getVideoByteArray()
Get the byte array of the Videoboolean
hasAudioStream()
Returns true if video has audio stream, else falsevoid
setAudioFile(java.io.File audioFile)
Set the audio file of the Videovoid
setPtsList(java.util.List<java.lang.Long> ptsList)
Set ptsjava.lang.String
toString()
-
-
-
Constructor Detail
-
Video
public Video(byte[] videoByteArray, java.io.File ffmpegBin) throws VideoNotFoundException, UnsupportedVideoTypeException
Video POJO- Parameters:
videoByteArray
- Video as byte arrayffmpegBin
- path to the bin of ffmpeg- Throws:
VideoNotFoundException
- If no Video found in the streamUnsupportedVideoTypeException
- If found Video in the stream has not supported codec
-
-
Method Detail
-
getFrameRate
public float getFrameRate()
Get the frame rate of the Video- Returns:
- frame rate as float
-
getFrameCount
public long getFrameCount()
Get the number of frames in the Video- Returns:
- number of frames as integer
-
getFrameWidth
public int getFrameWidth()
Get the Frame Width- Returns:
- frame width
-
getFrameHeight
public int getFrameHeight()
Get the Frame Height- Returns:
- frame heigth
-
getTimebase
public java.lang.Long getTimebase()
Get the timebase of the Video- Returns:
- timebase
-
getAudioFile
public java.io.File getAudioFile()
Get the Audio stream of the Video (only one stream supported)- Returns:
- get audio of video
-
setAudioFile
public void setAudioFile(java.io.File audioFile)
Set the audio file of the Video- Parameters:
audioFile
- File of audio
-
getVideoByteArray
public byte[] getVideoByteArray()
Get the byte array of the Video- Returns:
- video as byte array
-
getCodec
public java.lang.String getCodec()
Get the Codec of the Video- Returns:
- codec
-
getPixelformat
public java.lang.String getPixelformat()
Get the format of the pixels of the Video as String- Returns:
- pixel format
-
hasAudioStream
public boolean hasAudioStream()
Returns true if video has audio stream, else false- Returns:
- if Video has audio stream
-
getPtsList
public java.util.List<java.lang.Long> getPtsList()
Get list of pts- Returns:
- pts list
-
setPtsList
public void setPtsList(java.util.List<java.lang.Long> ptsList)
Set pts- Parameters:
ptsList
- pts list
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-