class Fluorite::DSL::FilterGraph

Defined in:

fluorite/dsl/filter_graph.cr

Instance Method Summary

Instance Method Detail

def af(filter_str : String) : self #

Adds raw audio filter expression


def afade(type : Symbol = :in, start_time : Float64 = 0.0, duration : Float64 = 2.0) : self #

Audio filter: fade


def audio_filters : Array(String) #

def complex(filter_str : String) : self #

Adds raw complex filter expression


def complex_filters : Array(String) #

def crop(w : Int32 | String, h : Int32 | String, x : Int32 | String = 0, y : Int32 | String = 0) : self #

Video filter: crop


def drawtext(text : String, fontfile : String | Nil = nil, fontsize : Int32 = 24, fontcolor : String = "white", x : String | Int32 = 10, y : String | Int32 = 10, box : Bool = false, boxcolor : String = "black@0.5") : self #

Video filter: drawtext


def empty? : Bool #

def fps(fps_val : Float64 | Int32) : self #

Video filter: fps


def hflip : self #

Video filter: flips & rotate


def loudnorm(i : Float64 = -24.0, lra : Float64 = 7.0, tp : Float64 = -2.0) : self #

Audio filter: loudnorm (EBU R128 loudness normalization)


def pad(w : Int32 | String, h : Int32 | String, x : Int32 | String = 0, y : Int32 | String = 0, color : String = "black") : self #

Video filter: pad


def palette_gif(fps_val : Int32 = 15, scale_w : Int32 = 480) : self #

2-pass palette generation & usage for crisp GIFs


def rotate(radians_or_expr : String | Float64) : self #

def scale(width : Int32 | String, height : Int32 | String, flags : String = "lanczos") : self #

Video filter: scale


def to_args : Array(String) #

def vf(filter_str : String) : self #

Adds raw video filter expression


def vflip : self #

def video_filters : Array(String) #

def volume(vol : Float64 | String) : self #

Audio filter: volume