video2gif 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/video2gif/ffmpeg.rb +1 -1
- data/lib/video2gif/options.rb +8 -8
- data/lib/video2gif/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aacb63993f33cf1bb593327b75cf9fd326bdceaa3f1b9d2de83b49d66cd5eb3c
|
4
|
+
data.tar.gz: ad6e7a8425347b277ef662098806b60e528b27e68d90f755f33539e0a139d607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c647f9cf366c367af4cb12c9281711f4ddc4307742905c8f43a3c541a767a3a2b400403ae861501f50348d36e9aadc9b57fefbcf7e1bdb9a91030d524e5c6ea
|
7
|
+
data.tar.gz: 91b8b57e3f3eb3f554daf46ed4c53fb2cdedf5e8955ba3afef16afb9429eedfd5b875d66068587ccfe88994fca421606cc017fc3171e82dcfffb6b07930fa4a7
|
data/Gemfile.lock
CHANGED
data/lib/video2gif/ffmpeg.rb
CHANGED
@@ -107,7 +107,7 @@ module Video2gif
|
|
107
107
|
y='#{ options[:ypos] || "(main_h-line_h*1.5*#{count_of_lines})" }'
|
108
108
|
fontsize='#{ options[:textsize] || 32 }'
|
109
109
|
fontcolor='#{ options[:textcolor] || 'white' }'
|
110
|
-
borderw='#{ options[:textborder] ||
|
110
|
+
borderw='#{ options[:textborder] || 1 }'
|
111
111
|
fontfile='#{ options[:textfont] || 'Arial'}'\\\\:style='#{options[:textvariant] || 'Bold' }'
|
112
112
|
text='#{text}'
|
113
113
|
].join(':')
|
data/lib/video2gif/options.rb
CHANGED
@@ -151,9 +151,9 @@ module Video2gif
|
|
151
151
|
parser.on('--subtitles [INDEX]',
|
152
152
|
'(Experimental, requires ffprobe) Attempt to use the',
|
153
153
|
'subtitles built into the video to overlay text on the',
|
154
|
-
'resulting GIF.
|
155
|
-
'
|
156
|
-
'subtitle stream, index 0)') do |s|
|
154
|
+
'resulting GIF. May be extremely slow for text subtitles.',
|
155
|
+
'Takes an optional integer value to choose the subtitle',
|
156
|
+
'stream (defaults to the first subtitle stream, index 0)') do |s|
|
157
157
|
unless Utils.is_executable?('ffprobe')
|
158
158
|
puts 'ERROR: Requires FFmpeg utils to be installed (for ffprobe)!'
|
159
159
|
exit 1
|
@@ -181,31 +181,31 @@ module Video2gif
|
|
181
181
|
|
182
182
|
parser.on('-C TEXTCOLOR',
|
183
183
|
'--text-color TEXTCOLOR',
|
184
|
-
'Set the color for text overlay') do |p|
|
184
|
+
'Set the color for text overlay (default white)') do |p|
|
185
185
|
options[:textcolor] = p
|
186
186
|
end
|
187
187
|
|
188
188
|
parser.on('-S TEXTSIZE',
|
189
189
|
'--text-size TEXTSIZE',
|
190
|
-
'Set the point size for text overlay') do |p|
|
190
|
+
'Set the point size for text overlay (default 30)') do |p|
|
191
191
|
options[:textsize] = p
|
192
192
|
end
|
193
193
|
|
194
194
|
parser.on('-B TEXTBORDER',
|
195
195
|
'--text-border TEXTBORDER',
|
196
|
-
'Set the width of the border for text overlay') do |p|
|
196
|
+
'Set the width of the border for text overlay (default 1)') do |p|
|
197
197
|
options[:textborder] = p
|
198
198
|
end
|
199
199
|
|
200
200
|
parser.on('-F TEXTFONT',
|
201
201
|
'--text-font TEXTFONT',
|
202
|
-
'Set the font name for text overlay') do |p|
|
202
|
+
'Set the font name for text overlay (default "Arial")') do |p|
|
203
203
|
options[:textfont] = p
|
204
204
|
end
|
205
205
|
|
206
206
|
parser.on('-V TEXTSTYLE',
|
207
207
|
'--text-variant TEXTVARIANT',
|
208
|
-
'Set the font variant for text overlay (
|
208
|
+
'Set the font variant for text overlay (default "Bold")') do |p|
|
209
209
|
options[:textvariant] = p
|
210
210
|
end
|
211
211
|
|
data/lib/video2gif/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video2gif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emily St.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|