https://ffmpeg.org/ffmpeg.html#Stream-specifiers

  • Method Summary

    id(int stream_id)

    Match the stream by stream id (e.g.

    program(int program_id)

    Matches all streams in the program.

    program(int program_id, int stream_index)

    Matches the stream with number stream_index in the program with the id program_id.

    spec()

    stream(int index)

    Matches the stream with this index.

    Matches all streams of this type.

    Matches the stream number stream_index of this type.

    Matches all streams with the given metadata tag.

    Matches streams with the metadata tag key having the specified value.

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

  • Method Details

    • spec

    • stream

      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

      Matches the stream number stream_index of this type.

      Parameters:
      type - The stream type
      index - The stream index
      Returns:
      A new StreamSpecifier
    • program

      Matches all streams in the program.

      Parameters:
      program_id - The program id
      Returns:
      A new StreamSpecifier
    • program

      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

      Match the stream by stream id (e.g. PID in MPEG-TS container).

      Parameters:
      stream_id - The stream id
      Returns:
      A new StreamSpecifier
    • tag

      Matches all streams with the given metadata tag.

      Parameters:
      key - The metadata tag
      Returns:
      A new StreamSpecifier
    • tag

      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

      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