diff --git a/shard.yml b/shard.yml index 964dd20..581c99b 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: ffmpeg -version: 0.6.0 +version: 0.6.1 dependencies: # we use stumpy to extract each pixels colour and draw bounding boxes diff --git a/src/ffmpeg/video.cr b/src/ffmpeg/video.cr index a00d4ca..c7d9b95 100644 --- a/src/ffmpeg/video.cr +++ b/src/ffmpeg/video.cr @@ -108,7 +108,7 @@ abstract class FFmpeg::Video end def frame_pipeline( - pipeline : Tasker::Pipeline, + pipeline : Tasker::Processor(Tuple(StumpyCore::Canvas, Bool)), output_width : Int? = nil, output_height : Int? = nil, scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin @@ -121,8 +121,6 @@ abstract class FFmpeg::Video if packet.stream_index == stream_index if (frame = codec.decode(packet)) && pipeline.idle? pipeline.process scale_and_extract(scaler, frame, rgb_frame, canvas, frame_buffer, requires_cropping, cropped) - else - Log.trace { "skipping frame" } end end end