Class StreamSpecifier

java.lang.Object
net.bramp.ffmpeg.builder.StreamSpecifier

public class StreamSpecifier extends Object
https://ffmpeg.org/ffmpeg.html#Stream-specifiers
  • Method Details

    • spec

      public String spec()
    • stream

      public static StreamSpecifier stream(int index)
      Matches the stream with this index.
      Parameters:
      index - The stream index
      Returns:
      A new StreamSpecifier
    • stream

      Matches all streams of this type.
      Parameters:
      type - The stream type
      Returns:
      A new StreamSpecifier
    • stream

      public static StreamSpecifier stream(StreamSpecifierType type, int index)
      Matches the stream number stream_index of this type.
      Parameters:
      type - The stream type
      index - The stream index
      Returns:
      A new StreamSpecifier
    • program

      public static StreamSpecifier program(int program_id)
      Matches all streams in the program.
      Parameters:
      program_id - The program id
      Returns:
      A new StreamSpecifier
    • program

      public static StreamSpecifier program(int program_id, int stream_index)
      Matches the stream with number stream_index in the program with the id program_id.
      Parameters:
      program_id - The program id
      stream_index - The stream index
      Returns:
      A new StreamSpecifier
    • id

      public static StreamSpecifier id(int stream_id)
      Match the stream by stream id (e.g. PID in MPEG-TS container).
      Parameters:
      stream_id - The stream id
      Returns:
      A new StreamSpecifier
    • tag

      public static StreamSpecifier tag(String key)
      Matches all streams with the given metadata tag.
      Parameters:
      key - The metadata tag
      Returns:
      A new StreamSpecifier
    • tag

      public static StreamSpecifier tag(String key, String value)
      Matches streams with the metadata tag key having the specified value.
      Parameters:
      key - The metadata tag
      value - The metatdata's value
      Returns:
      A new StreamSpecifier
    • usable

      public static StreamSpecifier usable()
      Matches streams with usable configuration, the codec must be defined and the essential information such as video dimension or audio sample rate must be present.
      Returns:
      A new StreamSpecifier