You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
14 lines
236 B
Ruby
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()
|
||
|
|
|