Files

18 lines
307 B
Ruby
Raw Permalink Normal View History

# © OpenShot Studios, LLC
#
# SPDX-License-Identifier: LGPL-3.0-or-later
# Find and load the ruby libopenshot wrapper library
2020-10-18 05:17:27 -04:00
require "openshot"
# Create a new FFmpegReader and Open it
2020-10-18 05:17:27 -04:00
r = Openshot::FFmpegReader.new("test.mp4")
r.Open()
# Get frame 1
f = r.GetFrame(1)
# Display the frame
2020-10-18 05:17:27 -04:00
f.Display()