Files
libopenshot/examples/Example.rb

14 lines
232 B
Ruby
Raw Normal View History

# Find and load the ruby libopenshot wrapper library
require "openshot"
# Create a new FFmpegReader and Open it
r = Openshot::FFmpegReader.new("test.mp4")
r.Open()
# Get frame 1
f = r.GetFrame(1)
# Display the frame
f.Display()