Class 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 Video
      long getFrameCount()
      Get the number of frames in the Video
      int getFrameHeight()
      Get the Frame Height
      float getFrameRate()
      Get the frame rate of the Video
      int getFrameWidth()
      Get the Frame Width
      java.lang.String getPixelformat()
      Get the format of the pixels of the Video as String
      java.util.List<java.lang.Long> getPtsList()
      Get list of pts
      java.lang.Long getTimebase()
      Get the timebase of the Video
      byte[] getVideoByteArray()
      Get the byte array of the Video
      boolean hasAudioStream()
      Returns true if video has audio stream, else false
      void setAudioFile​(java.io.File audioFile)
      Set the audio file of the Video
      void setPtsList​(java.util.List<java.lang.Long> ptsList)
      Set pts
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Object