Class Format

java.lang.Object
com.github.kokorin.jaffree.ffprobe.Format
All Implemented Interfaces:
TagAware

public class Format extends Object implements TagAware
Format description.
  • Constructor Details

    • Format

      public Format(ProbeData probeData)
      Creates Format description based on provided data sections.
      Parameters:
      probeData - probe data
  • Method Details

    • getProbeData

      public ProbeData getProbeData()
      Returns data section which holds all the data provided by ffprobe.

      Use this method if you have to access properties which are not accessible through other getters.

      Specified by:
      getProbeData in interface TagAware
      Returns:
      probe data
    • getFilename

      public String getFilename()
      Returns:
      file name
    • getNbStreams

      public Integer getNbStreams()
      Returns:
      number of streams
    • getNbPrograms

      public Integer getNbPrograms()
      Returns:
      number of programs
    • getFormatName

      public String getFormatName()
      Returns:
      format name
    • getFormatLongName

      public String getFormatLongName()
      Returns:
      format long name
    • getStartTime

      public Float getStartTime()
      Returns:
      media start time in seconds
    • getDuration

      public Float getDuration()
      Returns:
      media duration in seconds
    • getSize

      public Long getSize()
      Returns:
      media size in bytes
    • getBitRate

      public Long getBitRate()
      Returns:
      media bitrate in bits per second
    • getProbeScore

      public Integer getProbeScore()
      Returns detected format score.

      FFprobe assigns corresponding probe score to each known format during input analysis. The return format by ffprobe is the one with highest score.

      Higher values (up to 100) mean higher probability of correct format detection.

      Returns:
      format probe score