mediaforge - v0.3.0
    Preparing search index...

    Function mapStream

    • Build a -map flag from a StreamSpecifier or raw string. Returns ['-map', specStr] tuple when called with a StreamSpecifier/string. Returns the specifier string directly when called with (fileIndex, type, streamIndex).

      Parameters

      Returns ["-map", string]

      mapStream(ss(0, 'v', 0))   → ['-map', '0:v:0']
      mapStream('0:a:1') → ['-map', '0:a:1']
      mapStream(0, 'v', 0) → '0:v:0' (conveniencestring only)
    • Build a -map flag from a StreamSpecifier or raw string. Returns ['-map', specStr] tuple when called with a StreamSpecifier/string. Returns the specifier string directly when called with (fileIndex, type, streamIndex).

      Parameters

      Returns string

      mapStream(ss(0, 'v', 0))   → ['-map', '0:v:0']
      mapStream('0:a:1') → ['-map', '0:a:1']
      mapStream(0, 'v', 0) → '0:v:0' (conveniencestring only)