class
Fluorite::Presets::Discord
- Fluorite::Presets::Discord
- Fluorite::Presets::Base
- Reference
- Object
Defined in:
fluorite/presets/discord.crClass Method Summary
-
.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)
-
.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
-
.convert(input_path : String, output_path : String, target_mb : Float64 = 24.5, hwaccel : Symbol | Nil = nil) : Process::Status
Non-blocking overload without progress block
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