method
draw_relevant_frame_from
v5.2.3 -
Show latest stable
- Class:
ActiveStorage::Previewer::VideoPreviewer
draw_relevant_frame_from(file, &block)private
No documentation available.
# File activestorage/lib/active_storage/previewer/video_previewer.rb, line 18
def draw_relevant_frame_from(file, &block)
draw ffmpeg_path, "-i", file.path, "-y", "-vcodec", "png",
"-vf", "thumbnail", "-vframes", "1", "-f", "image2", "-", &block
end