video2gif 0.0.28 → 0.0.29
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/README.md +29 -6
- data/lib/video2gif/options.rb +6 -10
- 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: 62e8037d3f2d5c9f1fd4ef4be2455b6d831407cb4485bf4169bb0d44aaafa21e
|
4
|
+
data.tar.gz: 49dd66cac75ba0ddf7c98b363b39770237034695098c516ac5e62a853fb16a3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ab1ea8910042d75f3608ea6d112a0941e98dcc42c09683ec91e93e91935bf99b8fcad2f8b586ff46c98097ffca1323babfa42d81f32f2d817e30ffa1aea511
|
7
|
+
data.tar.gz: 3da078214b6d9799d1fa0cebee2d1da6b24b16656e822b359683a79a44d7d639c34c6821bdd05487e562b02b3cab6bd851b762f6898009b63bb6d560c1a6e7da
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,17 +9,39 @@ want, crop it automatically, overlay text, and manipulate the color and
|
|
9
9
|
brightness.
|
10
10
|
|
11
11
|
|
12
|
+
Status
|
13
|
+
------
|
14
|
+
|
15
|
+
Currently, `video2gif` is in alpha status: it is feature-incomplete, not
|
16
|
+
guaranteed to work at all, and subject to change features, options, or
|
17
|
+
defaults. The [patch-level version] will increment for each change until
|
18
|
+
it is ready for beta status.
|
19
|
+
|
20
|
+
Planned before beta status is
|
21
|
+
|
22
|
+
* full documentation, including a manual page;
|
23
|
+
* full tests, including integration tests using `ffmpeg`;
|
24
|
+
* feature and configuration stability;
|
25
|
+
* better output, such as error output;
|
26
|
+
* friendlier command-line configuration;
|
27
|
+
* the ability to configure text-based subtitles; and
|
28
|
+
* the ability to incorporate subtitles from an external file.
|
29
|
+
|
30
|
+
|
12
31
|
Installation
|
13
32
|
------------
|
14
33
|
|
15
|
-
`video2gif`
|
16
|
-
available in the system `$PATH`. If
|
17
|
-
|
18
|
-
|
34
|
+
`video2gif` is a command-line tool requiring both Ruby and a recent
|
35
|
+
version of [FFmpeg] installed and available in the system `$PATH`. If
|
36
|
+
you can run [FFmpeg] from the command line, you likely have the ability
|
37
|
+
to run `video2gif`.
|
19
38
|
|
20
|
-
Note that some features may not
|
39
|
+
Note that some features may not work by default. For example,
|
21
40
|
tonemapping (used for HDR videos) requires `libzimg` support, not
|
22
|
-
included by default in the [FFmpeg] supplied by [Homebrew].
|
41
|
+
included by default in the [FFmpeg] supplied by [Homebrew]. If you
|
42
|
+
attempt to use it, you will get an error. Additionally, `ffprobe`
|
43
|
+
(usually supplied by [FFmpeg]) is required for subtitles and may become
|
44
|
+
required in the future for all functionality.
|
23
45
|
|
24
46
|
`video2gif` also requires Ruby and the ability to install a new gem. If
|
25
47
|
you have this available, run the following command to install it.
|
@@ -61,4 +83,5 @@ https://github.com/emilyst/video2gif
|
|
61
83
|
|
62
84
|
|
63
85
|
[FFmpeg]: https://ffmpeg.org
|
86
|
+
[patch-level version]: https://semver.org
|
64
87
|
[Homebrew]: https://brew.sh
|
data/lib/video2gif/options.rb
CHANGED
@@ -59,8 +59,8 @@ module Video2gif
|
|
59
59
|
|
60
60
|
parser.on('-d [ALGORITHM]',
|
61
61
|
'--[no-]dither [ALGORITHM]',
|
62
|
-
'Set the dithering algorithm for the palette generation
|
63
|
-
|
62
|
+
'Set the dithering algorithm for the palette generation',
|
63
|
+
'(default enabled with "floyd_steinberg")') do |d|
|
64
64
|
if d.nil?
|
65
65
|
options[:dither] = 'floyd_steinberg'
|
66
66
|
else
|
@@ -68,26 +68,22 @@ module Video2gif
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
parser.on('-
|
72
|
-
'--crop-size-w SIZE',
|
71
|
+
parser.on('--crop-size-w SIZE',
|
73
72
|
'Pixel size of width to select from source video, before scaling') do |s|
|
74
73
|
options[:wregion] = s
|
75
74
|
end
|
76
75
|
|
77
|
-
parser.on('-h SIZE',
|
78
|
-
'--crop-size-h SIZE',
|
76
|
+
parser.on('--crop-size-h SIZE',
|
79
77
|
'Pixel size of height to select from source video, before scaling') do |s|
|
80
78
|
options[:hregion] = s
|
81
79
|
end
|
82
80
|
|
83
|
-
parser.on('-x OFFSET',
|
84
|
-
'--crop-offset-x OFFSET',
|
81
|
+
parser.on('--crop-offset-x OFFSET',
|
85
82
|
'Pixel offset from left to select from source video, before scaling') do |o|
|
86
83
|
options[:xoffset] = o
|
87
84
|
end
|
88
85
|
|
89
|
-
parser.on('-y OFFSET',
|
90
|
-
'--crop-offset-y OFFSET',
|
86
|
+
parser.on('--crop-offset-y OFFSET',
|
91
87
|
'Pixel offset from top to select from source video, before scaling') do |o|
|
92
88
|
options[:yoffset] = o
|
93
89
|
end
|
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.29
|
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-05-
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|