class
Fluorite::DSL::FilterGraph
- Fluorite::DSL::FilterGraph
- Reference
- Object
Defined in:
fluorite/dsl/filter_graph.crInstance Method Summary
-
#af(filter_str : String) : self
Adds raw audio filter expression
-
#afade(type : Symbol = :in, start_time : Float64 = 0.0, duration : Float64 = 2.0) : self
Audio filter: fade
- #audio_filters : Array(String)
-
#complex(filter_str : String) : self
Adds raw complex filter expression
- #complex_filters : Array(String)
-
#crop(w : Int32 | String, h : Int32 | String, x : Int32 | String = 0, y : Int32 | String = 0) : self
Video filter: crop
-
#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
- #empty? : Bool
-
#fps(fps_val : Float64 | Int32) : self
Video filter: fps
-
#hflip : self
Video filter: flips & rotate
-
#loudnorm(i : Float64 = -24.0, lra : Float64 = 7.0, tp : Float64 = -2.0) : self
Audio filter: loudnorm (EBU R128 loudness normalization)
-
#pad(w : Int32 | String, h : Int32 | String, x : Int32 | String = 0, y : Int32 | String = 0, color : String = "black") : self
Video filter: pad
-
#palette_gif(fps_val : Int32 = 15, scale_w : Int32 = 480) : self
2-pass palette generation & usage for crisp GIFs
-
#palette_spritesheet(columns : Int32, rows : Int32, frame_width : Int32 = 64, frame_height : Int32 = 64, fps_val : Float64 | Int32 = 12, nb_frames : Int32 | Nil = nil, max_colors : Int32 = 256, dither : String = "sierra2_4a", scale_flags : String = "neighbor", padding : Int32 = 0, margin : Int32 = 0, color : String = "0x00000000", reserve_transparent : Bool = true) : self
2-pass palette generation & usage for indexed CLUT8/CLUT4 sprite sheets
- #rotate(radians_or_expr : String | Float64) : self
-
#scale(width : Int32 | String, height : Int32 | String, flags : String = "lanczos") : self
Video filter: scale
-
#tile(columns : Int32, rows : Int32, nb_frames : Int32 | Nil = nil, padding : Int32 = 0, margin : Int32 = 0, color : String = "0x00000000") : self
Video filter: tile (packs animation frames into a cols x rows sprite sheet grid)
- #to_args : Array(String)
-
#vf(filter_str : String) : self
Adds raw video filter expression
- #vflip : self
- #video_filters : Array(String)
-
#volume(vol : Float64 | String) : self
Audio filter: volume
Instance Method Detail
Audio filter: fade
Video filter: crop
Video filter: drawtext
Audio filter: loudnorm (EBU R128 loudness normalization)
Video filter: pad
2-pass palette generation & usage for crisp GIFs
2-pass palette generation & usage for indexed CLUT8/CLUT4 sprite sheets
Video filter: scale
Video filter: tile (packs animation frames into a cols x rows sprite sheet grid)