abstract class FFmpeg::Video
- FFmpeg::Video
- Reference
- Object
Direct Known Subclasses
Defined in:
ffmpeg/video.crClass Method Summary
-
.crop(canvas : StumpyCore::Canvas, cropped : StumpyCore::Canvas)
one of desired_width or desired_height will match the canvas width or height so we only have to crop width or height
- .open(input : Path | URI)
- .scale_to_fit(input_width : Int32, input_height : Int32, desired_width : Int32, desired_height : Int32) : Tuple(Int32, Int32)
Instance Method Summary
- #close : Nil
- #closed? : Bool
- #configure_read
-
#each_frame(output_width : Int | Nil = nil, output_height : Int | Nil = nil, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin, &)
Grab each frame and convert it to a StumpyCore::Canvas for simple manipulation this can also scale the image to a preferred resolution
- #finalize
- #format : Format
- #frame_pipeline(pipeline : Tasker::Processor(Tuple(StumpyCore::Canvas, Bool)), output_width : Int | Nil = nil, output_height : Int | Nil = nil, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
- #input : String
Class Method Detail
def self.crop(canvas : StumpyCore::Canvas, cropped : StumpyCore::Canvas)
#
one of desired_width or desired_height will match the canvas width or height so we only have to crop width or height
def self.scale_to_fit(input_width : Int32, input_height : Int32, desired_width : Int32, desired_height : Int32) : Tuple(Int32, Int32)
#
Instance Method Detail
def each_frame(output_width : Int | Nil = nil, output_height : Int | Nil = nil, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin, &)
#
Grab each frame and convert it to a StumpyCore::Canvas for simple manipulation this can also scale the image to a preferred resolution
def frame_pipeline(pipeline : Tasker::Processor(Tuple(StumpyCore::Canvas, Bool)), output_width : Int | Nil = nil, output_height : Int | Nil = nil, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin)
#