You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Ruby: Relax SWIG version for compatibility check - Turns out the Ruby-2.7.0-compatibility commit made it into SWIG 4.0.2 Ruby bindings: Fix all kinds of brokenness - Turns out int64_t function args require stdint.i for auto-conversion. - The imported module name is (still) 'Openshot' — lowercase 's'. - #TIL that accidentally dropping the OUTPUT_NAME config leads to a non-loadable shared library, due to the filename being wrong.
14 lines
232 B
Ruby
14 lines
232 B
Ruby
# 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()
|
|
|