struct

Fluorite::Probe::Stream

Inherits JSON::Serializable < Struct < Value < Object

Constructors

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

aspect_ratio_str
Source
audio?
Source
avg_frame_rate
Source
bit_rate
Source
bitrate_kbps
Source
bits_per_sample
Source
channel_layout
Source
channels
Source
codec_long_name
Source
codec_name
Source
codec_type
Source
display_aspect_ratio
Source
duration
Source
duration_span
Source
fps

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

Source
height
Source
index
Source
max_bit_rate
Source
nb_frames
Source
pix_fmt
Source
profile
Source
r_frame_rate
Source
resolution
Source
sample_aspect_ratio
Source
sample_rate
Source
start_time
Source
subtitle?
Source
summary
Source
tags
Source
time_base
Source
video?
Source
width
Source