EasyFfmpeg
Constants
ASPECT_RATIOS = {"wide" => {16, 9}, "4:3" => {4, 3}, "8:7" => {8, 7}, "square" => {1, 1}, "tiktok" => {9, 16}}
LANGUAGE_NAMES = {"eng" => "English", "spa" => "Spanish", "fre" => "French", "fra" => "French", "deu" => "German", "ger" => "German", "ita" => "Italian", "por" => "Portuguese", "rus" => "Russian", "jpn" => "Japanese", "kor" => "Korean", "chi" => "Chinese", "zho" => "Chinese", "ara" => "Arabic", "hin" => "Hindi", "tur" => "Turkish", "pol" => "Polish", "nld" => "Dutch", "dut" => "Dutch", "swe" => "Swedish", "nor" => "Norwegian", "dan" => "Danish", "fin" => "Finnish", "cze" => "Czech", "ces" => "Czech", "hun" => "Hungarian", "rum" => "Romanian", "ron" => "Romanian", "bul" => "Bulgarian", "hrv" => "Croatian", "slv" => "Slovenian", "srp" => "Serbian", "ukr" => "Ukrainian", "vie" => "Vietnamese", "tha" => "Thai", "ind" => "Indonesian", "may" => "Malay", "msa" => "Malay", "heb" => "Hebrew", "gre" => "Greek", "ell" => "Greek", "cat" => "Catalan", "und" => "Undefined"}
SCALE_HEIGHTS = {"2k" => 1440, "fullhd" => 1080, "hd" => 720, "retro" => 480, "icon" => 240}
VERSION = "0.2.3"
Class methods
format_duration(seconds : Float64) : String
Sourceformat_duration_timestamp(seconds : Float64) : String
Sourceformat_file_size(bytes : Int64) : String
Sourceparse_time(input : String) : Float64 | Nil
Parses user-provided time strings into seconds. Supported formats: 90 → 90.0 (plain seconds) 1:31 → 91.0 (mm:ss) 1:31.500 → 91.5 (mm:ss.ms) 1:02:30 → 3750.0 (hh:mm:ss) 1:02:30.5 → 3750.5 (hh:mm:ss.ms)
Nested types
- EasyFfmpeg::CLI
- EasyFfmpeg::CodecSupport
- EasyFfmpeg::ConversionPlan
- EasyFfmpeg::Converter
- EasyFfmpeg::Display
- EasyFfmpeg::FormatInfo
- EasyFfmpeg::ImageSequence
- EasyFfmpeg::Interactive
- EasyFfmpeg::MediaInfo
- EasyFfmpeg::Preset
- EasyFfmpeg::PresetConfig
- EasyFfmpeg::StreamAction
- EasyFfmpeg::StreamInfo
- EasyFfmpeg::StreamPlan