Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FFmpegOutput

Hierarchy

  • FFmpegOutput

Index

Properties

isStream

isStream: boolean

Whether the output is using streams.

Methods

args

  • args(...args: string[]): this
  • Add output arguments, they will be placed before any additional arguments.

    Parameters

    • Rest ...args: string[]

      -

    Returns this

audioCodec

audioFilter

  • audioFilter(filter: AudioFilter | (string & {}), options?: Record<string, any> | any[]): this
  • UNSTABLE

    Applies a filter to the video streams.

    Parameters

    • filter: AudioFilter | (string & {})

      The filter to apply.

    • Optional options: Record<string, any> | any[]

      Additional configuration for the filter.

    Returns this

codec

duration

  • duration(duration: number): this

format

getArgs

  • getArgs(): string[]
  • Returns all the arguments for the output.

    Returns string[]

map

  • map(...streams: string[]): this

metadata

  • metadata(metadata: Record<string, string | undefined | null>, stream?: undefined | string): this
  • Add metadata to a stream or an output, if a value is undefined, null or '' (empty string), the key will be deleted. Values https://ffmpeg.org/ffmpeg.html#Main-options

    Parameters

    • metadata: Record<string, string | undefined | null>

      The metadata to add to the stream or output.

    • Optional stream: undefined | string

      The stream to add metadata to, if not given metadata will be added to the output file.

    Returns this

start

  • start(start: number): this

subtitleCodec

videoCodec

videoFilter

  • videoFilter(filter: VideoFilter | (string & {}), options?: Record<string, any> | any[]): this
  • UNSTABLE

    Applies a filter to the video streams.

    Parameters

    • filter: VideoFilter | (string & {})

      The filter to apply.

    • Optional options: Record<string, any> | any[]

      Additional configuration for the filter.

    Returns this