Class FFmpegResult

java.lang.Object
com.github.kokorin.jaffree.ffmpeg.FFmpegResult

public class FFmpegResult extends Object
FFmpegResult contains information about ffmpeg encoding result.
  • Constructor Details

    • FFmpegResult

      public FFmpegResult(Long videoSize, Long audioSize, Long subtitleSize, Long otherStreamsSize, Long globalHeadersSize, Double muxingOverheadRatio)
      Creates FFmpegResult.
      Parameters:
      videoSize - output video stream size in bytes
      audioSize - output audio stream size in bytes
      subtitleSize - output subtitles stream size in bytes
      otherStreamsSize - output other streams size in bytes
      globalHeadersSize - output global headers size in bytes
      muxingOverheadRatio - ratio of extra information size to output size
  • Method Details

    • getVideoSize

      public Long getVideoSize()
      Note: value may be not exact.
      Returns:
      video stream size in bytes.
    • getAudioSize

      public Long getAudioSize()
      Note: value may be not exact.
      Returns:
      audio stream size in bytes.
    • getSubtitleSize

      public Long getSubtitleSize()
      Note: value may be not exact.
      Returns:
      subtitles stream size in bytes.
    • getOtherStreamsSize

      public Long getOtherStreamsSize()
      Note: value may be not exact.
      Returns:
      output other streams size in bytes.
    • getGlobalHeadersSize

      public Long getGlobalHeadersSize()
      Note: value may be not exact.
      Returns:
      output global headers size in bytes.
    • getMuxingOverheadRatio

      public Double getMuxingOverheadRatio()
      Note: value may be not exact.
      Returns:
      ratio of extra information size to output size.