muvy 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +141 -66
- data/lib/muvy/cli.rb +4 -2
- data/lib/muvy/image.rb +7 -1
- data/lib/muvy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a23ddf9ae690a95cc698b7a66489f22fc2c1882e
|
4
|
+
data.tar.gz: d4b23e2d68e9a07b7fcf8316b9379e2bca7eff67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca700bb2aecd56aebd07c8063cf95528b65144a2cf6578fd7925ed9ef43f63faf44e0aab463afbfbd52b8859eda4ac0fce66e33f6e61c7af1499b9646e0c4189
|
7
|
+
data.tar.gz: 13802621595db0d591b5134a680008492b684e77d595c2f59e8a082bd592943bc864435373b35b3b5480ef2726c9bb2fadd1eed8296848bb54c8c7dccc0feccb
|
data/README.md
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
<p align="center">
|
2
2
|
|
3
|
-
<img src="https://i.imgur.com/
|
3
|
+
<a href="#examples"><img src="https://i.imgur.com/BTuglHv.png" alt="muvy-header" /></a>
|
4
|
+
|
5
|
+
<br>
|
4
6
|
|
5
7
|
</p>
|
6
8
|
|
7
9
|
**muvy** is a simple Ruby movie barcode generator.
|
8
|
-
You can feed it a youtube video, phone gallery, or any locally stored video files. It pulls
|
10
|
+
You can feed it a youtube video, phone gallery, or any locally stored video files. It pulls the frames out, moves around the colors, and throws them back together in a neat montage.
|
9
11
|
|
10
12
|
------
|
11
13
|
* [Install](#install)
|
@@ -18,21 +20,21 @@ You can feed it a youtube video, phone gallery, or any locally stored video file
|
|
18
20
|
* [Examples](#examples)
|
19
21
|
* [Troubleshooting](#troubleshooting)
|
20
22
|
* [Links](#links)
|
21
|
-
|
23
|
+
|
22
24
|
|
23
25
|
## Install
|
24
26
|
|
25
|
-
###
|
27
|
+
### Changelog
|
26
28
|
|
27
|
-
*
|
28
|
-
* Not optimized for
|
29
|
+
* Version 0.1.3
|
30
|
+
* Adds YouTube support. Not yet optimized for most other video sites.
|
31
|
+
* [Many features still planned](#features)!
|
29
32
|
|
30
33
|
### Getting Started
|
31
34
|
|
32
35
|
#### macOS
|
33
|
-
You can use `ffmpeg -v`, `convert -v`, or `youtube-dl --version` at the terminal to check if you already have the binaries.
|
34
|
-
|
35
|
-
If you don't already have FFmpeg, ImageMagick, or youtube-dl installed, you can download all of them with [Homebrew](https://brew.sh/). With Homebrew, just bring up a terminal session and type:
|
36
|
+
1. You can use `ffmpeg -v`, `convert -v`, or `youtube-dl --version` at the terminal to check if you already have the binaries.
|
37
|
+
2. If you don't already have FFmpeg, ImageMagick, or youtube-dl installed, you can download all of them with [Homebrew](https://brew.sh/). With Homebrew, just bring up a terminal session and type:
|
36
38
|
|
37
39
|
```sh
|
38
40
|
$ brew install ffmpeg
|
@@ -42,17 +44,17 @@ $ gem install muvy
|
|
42
44
|
```
|
43
45
|
|
44
46
|
#### Windows
|
45
|
-
1.
|
46
|
-
2.
|
47
|
-
On the third installation window, [
|
47
|
+
1. [Install Ruby](https://rubyinstaller.org/)
|
48
|
+
2. [Install Windows binaries for ImageMagick](https://www.imagemagick.org/script/download.php#windows), noting:
|
49
|
+
On the third installation window, [check these 2 boxes](https://i.imgur.com/d46sn8a.png):
|
48
50
|
- [x] Add application directory to your system path
|
49
51
|
- [x] Install legacy utilities (e.g. convert)
|
50
|
-
- [ ] Keep 'Install FFmpeg' unchecked
|
51
|
-
2.
|
52
|
+
- [ ] Keep 'Install FFmpeg' unchecked. IM's bundle doesn't include `ffprobe` & `ffplay`
|
53
|
+
2. [Install FFmpeg](http://ffmpeg.zeranoe.com/builds/)
|
52
54
|
3. You'll have to manually edit your PATH environment variable [like in this tutorial](https://www.wikihow.com/Install-FFmpeg-on-Windows).
|
53
|
-
|
55
|
+
After setting up FFmpeg in the PATH, bring up the 'envrionment variables' window. Move the ImageMagick folder from 'User Variables' to the first entry in the 'System Variables' so that Windows prefers ImageMagick `convert` over its own 'convert.exe'. [Here's an image showing that process](https://i.imgur.com/cf4HvCb.png)
|
54
56
|
ImageMagick 7 replaced `convert` with `magick` on Windows, but this gem can't make use of that yet.
|
55
|
-
4.
|
57
|
+
4. [Install youtube-dl](https://rg3.github.io/youtube-dl/download.html).
|
56
58
|
5. Then, you can install any gem like so:
|
57
59
|
```sh
|
58
60
|
$ gem install muvy
|
@@ -65,7 +67,7 @@ $ gem install muvy
|
|
65
67
|
|
66
68
|
| Type | Command: `muvy [Type] [Options]` | Support |
|
67
69
|
|--------|--------------------------------------------|-----------------------------------------------------------------------------------------------|
|
68
|
-
| URL | `muvy https://youtube.com/someVidID` | [youtube-dl sites](https://rg3.github.io/youtube-dl/supportedsites.html), but
|
70
|
+
| URL | `muvy https://youtube.com/someVidID` | [youtube-dl sites](https://rg3.github.io/youtube-dl/supportedsites.html), but many fail |
|
69
71
|
| Local | `muvy /Documents/Fave-Films/movie.mp4` | [FFmpeg supported formats](https://www.ffmpeg.org/general.html#File-Formats) |
|
70
72
|
| Folder | `muvy /Downloads/Phone-Backup-1/Photos` | [ImageMagick supported formats](https://www.imagemagick.org/script/formats.php) |
|
71
73
|
|
@@ -76,54 +78,86 @@ $ gem install muvy
|
|
76
78
|
Optionally specify the path where your final image will be saved.
|
77
79
|
**Default**: your present working directory
|
78
80
|
|
81
|
+
<br>
|
82
|
+
|
79
83
|
#### `-s, --style`
|
80
|
-
Optionally specify currently supported styles
|
81
|
-
**
|
84
|
+
Optionally specify currently supported styles.
|
85
|
+
**Styles**: `solid`, `stretch`
|
86
|
+
**Default**: `solid`
|
87
|
+
|
88
|
+
<br>
|
82
89
|
|
83
90
|
#### `-g, --gradient`
|
84
|
-
Optionally add a gradient on top of the final image.
|
85
|
-
|
86
|
-
black:heavy black:medium black:light
|
87
|
-
white:heavy white:medium white:light
|
88
|
-
|
91
|
+
Optionally add a gradient on top of the final image.
|
92
|
+
**Styles**:
|
93
|
+
`black:heavy` `black:medium` `black:light`
|
94
|
+
`white:heavy` `white:medium` `white:light`
|
95
|
+
**Default**: none
|
96
|
+
|
97
|
+
<br>
|
98
|
+
|
99
|
+
|
100
|
+
#### `-a, --arc`
|
101
|
+
Arc all of the colored lines around the center point.
|
102
|
+
**Styles**: `circle`, `iris` (annulus)
|
89
103
|
**Default**: none
|
90
104
|
|
91
|
-
|
92
|
-
|
105
|
+
<br>
|
106
|
+
|
107
|
+
|
108
|
+
#### `-r, --rotate`
|
109
|
+
Pass to rotate the final image 90 degrees to draw horizontal lines, where the top is the 'start' of the media.
|
110
|
+
**Default**: none (vertical lines)
|
111
|
+
|
112
|
+
<br>
|
93
113
|
|
94
|
-
#### `--rotate`
|
95
|
-
Pass `--rotate` to rotate the final image 90 degrees, i.e. to draw horizontal lines,
|
96
|
-
where the top is the 'start' of your media file.
|
97
114
|
|
98
115
|
#### `-h, --height`
|
99
116
|
Optionally specify a custom height for the output image.
|
100
117
|
|
118
|
+
<br>
|
119
|
+
|
120
|
+
|
101
121
|
#### `--format`
|
102
|
-
Optionally force the download quality for `youtube-dl`.
|
103
|
-
|
104
|
-
|
105
|
-
|
122
|
+
Optionally force the download quality for `youtube-dl`.
|
123
|
+
Determines the height of your image when using `--style stretch` only if you didn't specify `--height`.
|
124
|
+
**Default**: `135` *corresponds to 854x480 DASH at 24fps*
|
125
|
+
|
126
|
+
|
127
|
+
This command is currently best-suited to YouTube. To see possible formats for other sites, type `youtube-dl -F <URL>` or see [youtube-dl docs on format selection](https://github.com/rg3/youtube-dl/blob/master/README.md#format-selection); however, even when specifying a suitable format, the script might fail to run.
|
128
|
+
|
129
|
+
|
130
|
+
<br>
|
131
|
+
|
106
132
|
|
107
133
|
#### `--frame_rate`
|
108
134
|
Optionally specify the amount of frames to extract per second from the media.
|
109
|
-
|
135
|
+
Determines the width of the image.
|
136
|
+
|
110
137
|
|
111
138
|
You should run `muvy [..]` without this option once and check the stats printout
|
112
139
|
to get an idea of a better number.
|
113
|
-
For example, if the stats printout
|
140
|
+
For example, if the stats printout reads "1.6 fps," passing `--frame_rate 3.2`
|
114
141
|
would double the amount of frames, lines, and subsequently the width.
|
115
142
|
|
116
143
|
> Setting this to an unreasonable number might cause hundreds of thousands
|
117
144
|
of files to be temporarily created in your system's temp files.
|
118
145
|
|
146
|
+
<br>
|
147
|
+
|
148
|
+
|
119
149
|
#### `--start` and `--end`
|
120
150
|
Optionally specify starting and ending times for processing videos.
|
121
|
-
If you only specify one, the other will default
|
151
|
+
If you only specify one, the other will default. For example, if you only pass `--end N`, start defaults to 0.
|
152
|
+
|
153
|
+
<br>
|
154
|
+
|
122
155
|
|
123
156
|
|
124
157
|
### Features
|
125
158
|
- Formats
|
126
159
|
- [x] Accepts image galleries, local videos, and online videos
|
160
|
+
- [ ] Works with *any* size image folder (very large folders cause output issues)
|
127
161
|
- [ ] Works with *any* youtube-dl supported site
|
128
162
|
- [x] Specify start & end times for frame extraction
|
129
163
|
- [ ] Accept music files
|
@@ -137,7 +171,7 @@ If you only specify one, the other will default (e.g. if you only give --end, st
|
|
137
171
|
- [ ] Spotmap output, akin to 'QR' code
|
138
172
|
- [ ] Slit scan output
|
139
173
|
- [ ] 'Bedforms' output
|
140
|
-
- [ ] Stacked lines output, inspired by [Sol Lewitt
|
174
|
+
- [ ] Stacked lines output, inspired by [Sol Lewitt](https://www.google.com/search?q=sol+lewitt&rlz=1C5CHFA_enUS757US757&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjLjP7y5unWAhWb0YMKHcNQBhcQ_AUICigB&biw=1276&bih=680)
|
141
175
|
- [ ] Choose inset borders
|
142
176
|
- [ ] Curvature
|
143
177
|
- [ ] Crosshatch lines output
|
@@ -159,169 +193,210 @@ If you only specify one, the other will default (e.g. if you only give --end, st
|
|
159
193
|
<div align="center">
|
160
194
|
<img src="https://i.imgur.com/FpERYDO.png" />
|
161
195
|
<h4>Spirited Away (2001)</h4>
|
196
|
+
|
162
197
|
`muvy film.mkv -h 300`
|
198
|
+
|
163
199
|
0.27 frames per second on 125 minutes
|
164
200
|
final resolution 2027x300
|
165
201
|
</div>
|
166
202
|
|
167
|
-
<br><br>
|
203
|
+
<br><br><br>
|
168
204
|
|
169
205
|
<div align="center">
|
170
206
|
<img src="https://i.imgur.com/dpyoILD.png" />
|
171
207
|
<h4>Mad Max: Fury Road (2015)</h4>
|
208
|
+
|
172
209
|
`muvy madden.mkv --end 01:52:50 -h 300`
|
210
|
+
|
173
211
|
0.276 frames per second on 120 minutes
|
174
212
|
final resolution 1868x300
|
175
213
|
</div>
|
176
214
|
|
177
|
-
<br><br>
|
215
|
+
<br><br><br>
|
178
216
|
|
179
217
|
<div align="center">
|
180
218
|
<img src="https://i.imgur.com/ahDpJms.png" />
|
181
219
|
<h4>The Grand Budapest Hotel (2014)</h4>
|
220
|
+
|
182
221
|
`muvy "grand.avi" --end 01:33:40 --gradient black:medium --height 600`
|
222
|
+
|
183
223
|
0.303 frames per second on 100 minutes
|
184
224
|
final resolution 1703x600
|
185
225
|
</div>
|
186
226
|
|
187
|
-
<br><br>
|
227
|
+
<br><br><br>
|
188
228
|
|
189
229
|
<div align="center">
|
190
230
|
<img src="https://i.imgur.com/pov6s07.png" />
|
191
231
|
<h4>Her (2013)</h4>
|
232
|
+
|
192
233
|
`muvy film.mp4 -g black:medium -h 720`
|
234
|
+
|
193
235
|
0.269 frames per second on 126 minutes
|
194
236
|
final resolution 1919x720
|
195
237
|
</div>
|
196
238
|
|
197
|
-
<br><br>
|
239
|
+
<br><br><br>
|
198
240
|
|
199
241
|
<div align="center">
|
200
242
|
<img src="https://i.imgur.com/JEHqHoG.png" />
|
201
243
|
<h4>Melancholia (2011)</h4>
|
244
|
+
|
202
245
|
`muvy film.mp4 --gradient black:medium`
|
246
|
+
|
203
247
|
0.277 frames per second on 136 minutes
|
204
248
|
final resolution 2158x720
|
205
249
|
</div>
|
206
250
|
|
207
|
-
<br><br>
|
251
|
+
<br><br><br>
|
208
252
|
|
209
253
|
<div align="center">
|
210
254
|
<img src="https://i.imgur.com/Up9SWKm.png" />
|
211
255
|
<h4>Kagemusha (1980)</h4>
|
256
|
+
|
212
257
|
`muvy film.mp4 --style stretch --gradient black:medium`
|
258
|
+
|
213
259
|
0.225 frames per second on 162 minutes
|
214
260
|
final resolution 2439x688
|
215
261
|
</div>
|
216
262
|
|
217
|
-
<br><br>
|
263
|
+
<br><br><br>
|
218
264
|
|
219
265
|
<div align="center">
|
220
266
|
<img src="https://i.imgur.com/j9yNVdN.png" />
|
221
267
|
<img src="https://i.imgur.com/OgOgnz0.png" />
|
222
268
|
<h4>Samsara (2011)</h4>
|
269
|
+
|
223
270
|
(1) `muvy film.avi --end 01:35:00 -s stretch -g black:medium`
|
224
|
-
|
271
|
+
|
272
|
+
|
273
|
+
(2) `muvy film.avi --height 150 --end 01:35:00`
|
274
|
+
|
225
275
|
0.3 frames per second on 95 minutes
|
226
276
|
</div>
|
227
277
|
|
228
|
-
<br><br>
|
278
|
+
<br><br><br>
|
229
279
|
|
230
280
|
<div align="center">
|
231
281
|
<img src="https://i.imgur.com/7b7MWHX.png" />
|
232
282
|
<h4>Baraka (1992)</h4>
|
283
|
+
|
233
284
|
`muvy film.avi --height 150 --end 01:30:30`
|
285
|
+
|
234
286
|
0.3 frames per second on 90 minutes
|
235
287
|
final resolution 1663x150
|
236
288
|
</div>
|
237
289
|
|
238
|
-
<br><br>
|
290
|
+
<br><br><br>
|
239
291
|
|
240
292
|
<div align="center">
|
241
293
|
<img src="https://i.imgur.com/Q3ETqJT.png" />
|
242
294
|
<h4>It's Such A Beautiful Day (2012)</h4>
|
295
|
+
|
243
296
|
`muvy film.mkv --height 200`
|
297
|
+
|
244
298
|
0.4843 frames per second on 62 minutes
|
245
299
|
final resolution 1780x720
|
246
300
|
</div>
|
247
301
|
|
248
|
-
<br><br>
|
302
|
+
<br><br><br>
|
249
303
|
|
250
304
|
### YouTube
|
251
305
|
|
252
306
|
<div align="center">
|
253
307
|
<img src="https://i.imgur.com/V0ecs7s.png" />
|
254
308
|
<h4>Holi by Variable</h4>
|
309
|
+
|
255
310
|
`muvy https://www.youtube.com/watch?v=r64Xk7c4Mr4 --frame_rate 10 --style stretch`
|
311
|
+
|
256
312
|
slow-motion youtube video
|
257
313
|
10 frames per second on 1 minute 47 seconds
|
258
314
|
final resolution 1073x480
|
259
315
|
</div>
|
260
316
|
|
261
|
-
<br><br>
|
317
|
+
<br><br><br>
|
262
318
|
|
263
319
|
<div align="center">
|
264
320
|
<img src="https://i.imgur.com/F00eot2.png" />
|
265
321
|
<img src="https://i.imgur.com/rA2Ugr1.png" />
|
266
322
|
<h4>Mahalia - Sober by COLORS</h4>
|
323
|
+
|
267
324
|
(1) `muvy https://www.youtube.com/watch?v=QK7JQl9jNzM --frame_rate 7.5 --start 0:05 --end 3:23 -h 200`
|
325
|
+
|
326
|
+
|
268
327
|
(2) `muvy https://www.youtube.com/watch?v=QK7JQl9jNzM --frame_rate 7.5 --start 0:05 --end 3:23 -s stretch`
|
328
|
+
|
269
329
|
7.5 frames per second on 3 minutes 36 seconds
|
270
330
|
</div>
|
271
331
|
|
272
|
-
<br><br>
|
332
|
+
<br><br><br>
|
273
333
|
|
274
334
|
<div align="center">
|
275
|
-
<img src="https://i.imgur.com/OMR4ffy.png?1" />
|
335
|
+
<img src="https://i.imgur.com/OMR4ffy.png?1" height="240" />
|
276
336
|
<h4>The Banach–Tarski Paradox by Vsauce</h4>
|
337
|
+
|
277
338
|
`muvy https://www.youtube.com/watch?v=s86-Z-CbaHA`
|
339
|
+
|
278
340
|
0.62 frames per second on 24 minutes 14 seconds
|
279
341
|
final resolution 898x720
|
280
342
|
</div>
|
281
343
|
|
282
|
-
<br><br>
|
344
|
+
<br><br><br>
|
283
345
|
|
284
346
|
<div align="center">
|
285
347
|
<img src="https://i.imgur.com/pdHnMQQ.png" />
|
286
348
|
<h4>Colors In Macro by Macro Room</h4>
|
349
|
+
|
287
350
|
`muvy https://www.youtube.com/watch?v=gNbSjMFd7j4 --start 0:16 --end 2:07 --style stretch --frame_rate 10`
|
351
|
+
|
288
352
|
10 frames per second on ~ 2 minutes
|
289
353
|
final resolution 1110x480
|
290
354
|
</div>
|
291
355
|
|
292
|
-
<br><br>
|
356
|
+
<br><br><br>
|
293
357
|
|
294
358
|
<div align="center">
|
295
359
|
<img src="https://image.ibb.co/g4WEVb/3.png" width="350" height="350" hspace="20" />
|
296
360
|
<img src="https://image.ibb.co/eLRsGG/2.png" width="350" height="350" />
|
297
361
|
<h4>Ink In Motion by Macro Room</h4>
|
298
|
-
|
299
|
-
(
|
362
|
+
|
363
|
+
(1) `muvy https://www.youtube.com/watch?v=BmBh0NNEm00 --start 0:37 --end 1:20 --frame_rate 10 -s stretch -a circle`
|
364
|
+
|
365
|
+
|
366
|
+
(2) `muvy https://www.youtube.com/watch?v=BmBh0NNEm00 --start 0:37 --end 1:20 --frame_rate 10 -r --arc circle`
|
367
|
+
|
300
368
|
</div>
|
301
369
|
|
302
|
-
<br><br>
|
370
|
+
<br><br><br>
|
303
371
|
|
304
372
|
<div align="center">
|
305
|
-
<img src="https://
|
306
|
-
<
|
307
|
-
|
308
|
-
0.413 frames per second on 58 minutes
|
309
|
-
final resolution 1176x1176
|
373
|
+
<img src="https://image.ibb.co/b2GmbG/muvy_11_10_042756.png" width="350" height="350" hspace="20" />
|
374
|
+
<img src="https://image.ibb.co/jQ08D6/muvy_16_10_225636.png" width="350" height="350" />
|
375
|
+
<h4>Speed Drawing</h4>
|
310
376
|
|
311
|
-
|
377
|
+
(1) `muvy https://www.youtube.com/watch?v=P3UozWhL6A0 --start 0:04 --end 04:45 --arc circle`
|
378
|
+
|
379
|
+
|
380
|
+
(2) `muvy https://www.youtube.com/watch?v=P3UozWhL6A0 --start 0:04 --end 04:45 --arc circle -r`
|
312
381
|
|
313
|
-
<img src="https://image.ibb.co/b2GmbG/muvy_11_10_042756.png" width="300" height="300" />
|
314
|
-
<h4>Speed Drawing</h4>
|
315
|
-
`muvy https://www.youtube.com/watch?v=P3UozWhL6A0 --start 0:04 --end 04:45 --arc`
|
316
382
|
1.7185 frames per second
|
317
383
|
final resolution 872x872
|
318
384
|
</div>
|
319
385
|
|
320
|
-
<br><br>
|
386
|
+
<br><br><br>
|
321
387
|
|
322
388
|
### DCIM
|
323
389
|
|
324
|
-
|
390
|
+
DCIM merging is currently a bit buggy in that it will create extra random lines if it's low on memory.
|
391
|
+
|
392
|
+
<div align="center">
|
393
|
+
<img src="https://i.imgur.com/0DbOO11.png" height="240" />
|
394
|
+
<h4>2016 Travel</h4>
|
395
|
+
|
396
|
+
`muvy imagefolder/`
|
397
|
+
|
398
|
+
2350 photos
|
399
|
+
</div>
|
325
400
|
|
326
401
|
## Troubleshooting
|
327
402
|
|
data/lib/muvy/cli.rb
CHANGED
@@ -23,14 +23,16 @@ module Muvy
|
|
23
23
|
o.string "-p", "--path", "Directory to save final images, " +
|
24
24
|
"\n\t\t\s\s\s\sDefault: your pwd → #{Dir.pwd}",
|
25
25
|
default: Dir.pwd
|
26
|
-
o.string "-s", "--style", "Choose
|
26
|
+
o.string "-s", "--style", "Choose a style: solid, stretch " +
|
27
27
|
"\n\t\t\s\s\s\sDefault: solid",
|
28
28
|
default: "solid"
|
29
29
|
o.string "-g", "--gradient", "Add a gradient over the final image" +
|
30
30
|
"\n\t\t\s\s\s\sChoose one from: black:heavy black:medium black:light" +
|
31
31
|
"\n\t\t\s\s\s\s\t\t\s\s\s\s\swhite:heavy white:medium white:light" +
|
32
32
|
"\n\t\t\s\s\s\sDefault: none"
|
33
|
-
o.
|
33
|
+
o.string "-a", "--arc", "Wrap all of the lines around a center point" +
|
34
|
+
"\n\t\t\s\s\s\sChoose a style: circle, iris" +
|
35
|
+
"\n\t\t\s\s\s\sDefault: none"
|
34
36
|
o.boolean "-r", "--rotate", "Image will have horizontal lines"
|
35
37
|
o.integer "-h", "--height", "Custom height of the final image"
|
36
38
|
o.string "--start", "Custom video start time"
|
data/lib/muvy/image.rb
CHANGED
@@ -98,7 +98,13 @@ module Muvy
|
|
98
98
|
cmd << "-gravity" << "center"
|
99
99
|
cmd << "+repage"
|
100
100
|
cmd << "-virtual-pixel" << "Transparent"
|
101
|
-
|
101
|
+
|
102
|
+
if options[:arc] == "iris"
|
103
|
+
cmd << "-distort" << "Arc" << "363 0 540 180"
|
104
|
+
else
|
105
|
+
cmd << "-distort" << "Arc" << "363"
|
106
|
+
end
|
107
|
+
|
102
108
|
cmd << options[:img]
|
103
109
|
end
|
104
110
|
end
|
data/lib/muvy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muvy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- agarun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: youtube-dl.rb
|