Files
libopenshot/examples/Example.rb
FeRD (Frank Dana) a6441d822d Reorganize source tree (headers in src/)
- src/bindings/ moves to /bindings/
- src/examples/ moves to /examples/
- Contents of include/ merged into src/ with same hierarchy
- src/Qt/demo/ moves to examples/qt-demo/
2020-10-18 05:05:29 -04:00

14 lines
236 B
Ruby

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