lib/FFmpeg/ffmpeg.rb in vcs_ruby-1.1.12 vs lib/FFmpeg/ffmpeg.rb in vcs_ruby-1.1.13

- old
+ new

@@ -53,9 +53,13 @@ def grab time, image_path @ffmpeg.execute "-y -ss #{time.total_seconds} -i \"#{@video.full_path}\" -an -dframes 1 -vframes 1 -vcodec #{format} -f rawvideo \"#{image_path}\"" end def available_formats + @available_formats ||= available_formats_query + end + + def available_formats_query # Ordered by priority image_formats = ['png', 'tiff', 'bmp', 'mjpeg'] formats = [] list = @ffprobe.execute "-codecs"