struct Fluorite::Probe::Stream

Included Modules

Defined in:

fluorite/probe/models.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(index : Int32 = 0, codec_name : String | Nil = nil, codec_long_name : String | Nil = nil, codec_type : String | Nil = nil, profile : String | Nil = nil, width : Int32 | Nil = nil, height : Int32 | Nil = nil, sample_aspect_ratio : String | Nil = nil, display_aspect_ratio : String | Nil = nil, pix_fmt : String | Nil = nil, r_frame_rate : String | Nil = nil, avg_frame_rate : String | Nil = nil, time_base : String | Nil = nil, start_time : String | Nil = nil, duration : String | Nil = nil, bit_rate : String | Nil = nil, max_bit_rate : String | Nil = nil, nb_frames : String | Nil = nil, sample_rate : String | Nil = nil, channels : Int32 | Nil = nil, channel_layout : String | Nil = nil, bits_per_sample : Int32 | Nil = nil, tags : Hash(String, String) | Nil = nil) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

Instance Method Detail

def aspect_ratio_str : String #

def audio? : Bool #

def avg_frame_rate : String | Nil #

def bit_rate : String | Nil #

def bitrate_kbps : Int32 | Nil #

def bits_per_sample : Int32 | Nil #

def channel_layout : String | Nil #

def channels : Int32 | Nil #

def codec_long_name : String | Nil #

def codec_name : String | Nil #

def codec_type : String | Nil #

def display_aspect_ratio : String | Nil #

def duration : String | Nil #

def duration_span : Time::Span | Nil #

def fps : Float64 #

Parses fractional framerate (e.g. "60/1" or "30000/1001") into Float64


def height : Int32 | Nil #

def index : Int32 #

def max_bit_rate : String | Nil #

def nb_frames : String | Nil #

def pix_fmt : String | Nil #

def profile : String | Nil #

def r_frame_rate : String | Nil #

def resolution : Tuple(Int32, Int32) | Nil #

def sample_aspect_ratio : String | Nil #

def sample_rate : String | Nil #

def start_time : String | Nil #

def subtitle? : Bool #

def summary : String #

def tags : Hash(String, String) | Nil #

def time_base : String | Nil #

def video? : Bool #

def width : Int32 | Nil #