File: Example.rb

package info (click to toggle)
libopenshot 0.3.3%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 29,268 kB
  • sloc: cpp: 26,779; python: 92; makefile: 18; ruby: 5; sh: 2
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()