class Fluorite::Presets::Discord

Defined in:

fluorite/presets/discord.cr

Class Method Summary

Class Method Detail

def self.build_command(input_path : String, output_path : String, target_mb : Float64 = 24.5, hwaccel : Symbol | Nil = nil) : DSL::Command #

Builds the DSL::Command without executing it (useful for inspection or customization)


def self.convert(input_path : String, output_path : String, target_mb : Float64 = 24.5, hwaccel : Symbol | Nil = nil, &progress_block : Runner::Progress -> Nil) : Process::Status #

Calculates ideal bitrates and encodes input to strictly fit under Discord target size in MB


def self.convert(input_path : String, output_path : String, target_mb : Float64 = 24.5, hwaccel : Symbol | Nil = nil) : Process::Status #

Non-blocking overload without progress block