Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Bagel is a tennis video editor/annotator.
Install native dependencies using Homebrew:
$ brew install ffmpeg pkg-config imagemagick
Add this line to your application's Gemfile:
gem 'bagel'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install bagel
require 'bagel'
Bagel::Video.::FFMPEG.concat(
source: 'path/to/chunks',
destination: 'path/to/output.mp4',
transcode: false
)
Every clip must specify:
type
intro
, point
, or stats
start
and finish
timestamps
'01:23'
)intro
clips must also specify:
title
and description
point
clips must also specify:
server
1
or 2
)score
faults
winner
1
or2
)reason
W
for winner, UE
for unforced error, or FE
for forced errorshot
S
for serve, FH
for forehand, BH
for backhand, or OH
for overhead.net
(optional)
true
= won the net point, false
= lost the net point, null
= player did not play a net pointstats
clips must also specify:
score
# Intro
- { type: intro, start: '00:00', finish: '00:08', title: 'My Tennis Club', description: 'May 16, 2021' }
# Set 1 points
- { type: point, server: 1, score: [[[0, 0]], [0, 0]], start: '02:02', faults: 1, finish: '02:07', winner: 1, reason: UE, shot: BH }
# ...
- { type: point, server: 2, score: [[[5, 4]], [3, 2]], start: '37:53', faults: 1, finish: '38:03', winner: 1, reason: W, shot: FH, net: [ true, false ] }
# Set 1 stats
- { type: stats, start: '38:35', finish: '38:47', score: [[[6, 4]]] }
# Set 2 points
- { type: point, server: 1, score: [[[6, 4], [0, 0]], [0, 0]], start: '40:41', faults: 1, finish: '40:55', winner: 1, reason: W, shot: BH, net: [ true, false ] }
# ...
- { type: point, server: 2, score: [[[6, 4], [2, 5]], [1, 3]], start: '1:14:05', faults: 0, finish: '1:14:11', winner: 2, reason: UE, shot: FH }
# Set 2 stats
- { type: stats, start: '1:14:24', finish: '1:14:36', score: [[[6, 4], [2, 6]]] }
require 'bagel'
Bagel.configure do |config|
config.name = '2021-05-16' # this will be used to namespace the temp clip/graphic files
config.source_video = 'path/to/source/video.mp4'
config.clip_data = 'path/to/data/file.yml'
config.destination_video = 'path/to/destination/video.mp4'
config.names = %w(Alice Bob)
end
Bagel.make_video
$ rspec
Tested on
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that bagel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.