Module: Seamus::VideoProcessor
- Included in:
- File::Video
- Defined in:
- lib/seamus/processor/video_processor.rb
Instance Method Summary collapse
Instance Method Details
#thumbnail ⇒ Object
4 5 6 |
# File 'lib/seamus/processor/video_processor.rb', line 4 def thumbnail Open3.popen3("ffmpeg -y -ss #{start_time} -i '#{self.path}' -t 00:00:01 -vcodec mjpeg -vframes 1 -an -f rawvideo -s #{dimensions_string} - ")[1] end |