class FFmpeg::Format

Defined in:

ffmpeg/format.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(buffer_size : Int32 = (4 * 1024) * 1024) #

[View source]

Instance Method Detail

def dump_format(stream_index : Int, is_output : Bool = false) #

[View source]
def finalize #

[View source]
def find_best_stream(media_type : MediaType = MediaType::Video) #

[View source]
def input : String #

[View source]
def input? : String | Nil #

[View source]
def on_read(&callback : Bytes -> Int32) #

Slice => bytes read


[View source]
def open(input : String) #

[View source]
def open? #

[View source]
def packet : Packet #

Lazy load the packet


[View source]
def parameters(stream_index : Int) #

[View source]
def read(&) #

[View source]
def stream_info #

[View source]