File: Example.rb

package info (click to toggle)
libopenshot 0.5.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,228 kB
  • sloc: cpp: 32,692; python: 92; sh: 77; makefile: 21; ruby: 5
file content (17 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# © OpenShot Studios, LLC
#
# SPDX-License-Identifier: LGPL-3.0-or-later

# 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()