schema_version: 7.0
type: filter
identifier: autofade
title: Auto Fade
version: 3
copyright: Meltytech, LLC
license: LGPLv2.1
language: en
tags:
  - Audio
description: >
  Automatically fade audio between clips in a playlist.
  This filter will fade the audio out at the end of a clip and fade the
  audio in at the beginning of a clip.
  Only to be used as a filter on playlist producers.
  Uses the "meta.playlist.clip_position" and "meta.playlist.clip_length"
  properties that are added by the playlist producer to determine where
  the splices between clips occur.

parameters:
  - identifier: fade_duration
    title: Fade Duration
    type: integer
    description: >
      The duration of each fade in and fade out.
    readonly: no
    mutable: yes
    default: 20
    minimum: 1
    maximum: 1000
    unit: ms

  - identifier: fade_video
    title: Fade Video
    type: boolean
    description: Fade the video to/from the fade color
    mutable: yes
    default: 0

  - identifier: fade_audio
    title: Fade Audio
    type: boolean
    description: Fade the audio to/from silence
    mutable: yes
    default: 1

  - identifier: fade_color
    title: Fade color
    type: color
    description: >
      The color to fade to.
      A color value is a hexadecimal representation of RGB plus alpha channel
      as 0xrrggbbaa. Colors can also be the words: white, black, red, green,
      or blue. You can also use a HTML-style color values #rrggbb or #aarrggbb
    default: 0x000000ff
    mutable: yes
    widget: color

  - identifier: fade_in_count
    title: Fade In Count
    type: integer
    description: >
      The number of time fade in has been applied.
    readonly: yes

  - identifier: fade_out_count
    title: Fade Out Count
    type: integer
    description: >
      The number of time fade out has been applied.
    readonly: yes
