muvy 0.1.3 → 0.1.4
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 +55 -9
- data/lib/muvy/cli.rb +0 -1
- data/lib/muvy/download.rb +1 -9
- 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: 6b2ff57f967fef322d5b265ab9a76b42b731480b
|
4
|
+
data.tar.gz: 473ff0216c13a76d300990de1edd14f16e9b2607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef9a07b4ffc83dc1f3deb22bffdf0515a47388171d928d3a864ab8dc0c33771a356be8842388cdff6870b4d579a06b82483de5fb27f7248de292090d07c90f37
|
7
|
+
data.tar.gz: a519cefc42c4d5bdd60c50c94665339eac5c70d4775a0e4532e902d94cb43b54dc6aaaae068ddaf4cab0a58f3cb752d13c91455a9fd3cf2e8c945b14291ea66e
|
data/README.md
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
<
|
1
|
+
<div align="center">
|
2
2
|
|
3
3
|
<a href="#examples"><img src="https://i.imgur.com/BTuglHv.png" alt="muvy-header" /></a>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
</p>
|
5
|
+
</div>
|
8
6
|
|
9
7
|
**muvy** is a simple Ruby movie barcode generator.
|
10
8
|
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.
|
@@ -26,8 +24,8 @@ You can feed it a youtube video, phone gallery, or any locally stored video file
|
|
26
24
|
|
27
25
|
### Changelog
|
28
26
|
|
29
|
-
*
|
30
|
-
*
|
27
|
+
* []() []() []()
|
28
|
+
* Full support for YouTube and more support for other sites (Vimeo with `--format bestvideo` or similar, etc).
|
31
29
|
* [Many features still planned](#features)!
|
32
30
|
|
33
31
|
### Getting Started
|
@@ -124,7 +122,7 @@ Determines the height of your image when using `--style stretch` only if you did
|
|
124
122
|
**Default**: `135` *corresponds to 854x480 DASH at 24fps*
|
125
123
|
|
126
124
|
|
127
|
-
|
125
|
+
The default is currently best-suited to YouTube and will likely *not work* with other sites. 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). For example, with a Vimeo video, you might specify `--format bestvideo` or `--format worstvideo` and it should work. youtube-dl is sometimes picky, so it is not guaranteed!
|
128
126
|
|
129
127
|
|
130
128
|
<br>
|
@@ -385,9 +383,57 @@ final resolution 872x872
|
|
385
383
|
|
386
384
|
<br><br><br>
|
387
385
|
|
386
|
+
The following iris examples had colored backgrounds added to them in post.
|
387
|
+
|
388
|
+
<br>
|
389
|
+
|
390
|
+
<div align="center">
|
391
|
+
<img src="https://i.imgur.com/WAO2zIY.png" width="350" height="350" hspace="20" />
|
392
|
+
<img src="https://i.imgur.com/22LN4RV.png" width="350" height="350" />
|
393
|
+
<h4>Kurzgesagt - The Rise of the Machines</h4>
|
394
|
+
|
395
|
+
(1) `muvy https://www.youtube.com/watch?v=WSKi8HfcxEk --arc iris`
|
396
|
+
|
397
|
+
|
398
|
+
(2) `muvy https://www.youtube.com/watch?v=WSKi8HfcxEk --arc iris --rotate`
|
399
|
+
|
400
|
+
1.1154 frames per second on 11:40
|
401
|
+
final resolution 1082x1082
|
402
|
+
</div>
|
403
|
+
|
404
|
+
<br><br><br>
|
405
|
+
|
406
|
+
<div align="center">
|
407
|
+
<img src="https://i.imgur.com/8r0Rnmz.png" width="350" height="350" hspace="20" />
|
408
|
+
<img src="https://i.imgur.com/JwB44Fn.png" width="350" height="350" />
|
409
|
+
<h4>Kurzgesagt - Why Age? Should We End Aging Forever?</h4>
|
410
|
+
|
411
|
+
(1) `muvy https://www.youtube.com/watch?v=GoJsr4IwCm4 --arc iris`
|
412
|
+
|
413
|
+
|
414
|
+
(2) `muvy https://www.youtube.com/watch?v=GoJsr4IwCm4 --arc iris --rotate`
|
415
|
+
|
416
|
+
1.463 frames per second on 06:48
|
417
|
+
final resolution 1082x1082
|
418
|
+
</div>
|
419
|
+
|
420
|
+
<br><br><br>
|
421
|
+
|
422
|
+
<div align="center">
|
423
|
+
<img src="https://i.imgur.com/vxFMTlE.png" />
|
424
|
+
<h4>Kurzgesagt - Death From Space — Gamma-Ray Bursts Explained</h4>
|
425
|
+
|
426
|
+
`muvy https://www.youtube.com/watch?v=RLykC1VN7NY --arc iris`
|
427
|
+
|
428
|
+
1.4186 frames per second on 07:13
|
429
|
+
final resolution 1082x1082
|
430
|
+
</div>
|
431
|
+
|
432
|
+
<br><br><br>
|
433
|
+
|
388
434
|
### DCIM
|
389
435
|
|
390
|
-
DCIM merging is currently a bit buggy in that it will create extra random lines if it's low on memory.
|
436
|
+
DCIM merging is currently a bit buggy in that it will create extra random lines if it's very low on memory (usually occurs when feeding thousands of 16MP+ photos).
|
391
437
|
|
392
438
|
<div align="center">
|
393
439
|
<img src="https://i.imgur.com/0DbOO11.png" height="240" />
|
@@ -400,7 +446,7 @@ DCIM merging is currently a bit buggy in that it will create extra random lines
|
|
400
446
|
|
401
447
|
## Troubleshooting
|
402
448
|
|
403
|
-
Make sure you can access `ffmpeg -v`, `
|
449
|
+
Make sure you can access `ffmpeg -v`, `convert -v`, and `youtube-dl --version` on the command line. If you can't, you likely have to update your existing PATH environment variable to include the folder holding the relevant binaries. If you're on Windows and you are unsure how to add FFmpeg to path, you can try any of these links: [1](https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg), [2](https://video.stackexchange.com/questions/20495/how-do-i-set-up-and-use-ffmpeg-in-windows), [3](https://www.wikihow.com/Install-FFmpeg-on-Windows).
|
404
450
|
|
405
451
|
If you're on Windows and *very* recently made changes, you probably have to reopen a command prompt window or restart for those changes to take effect.
|
406
452
|
|
data/lib/muvy/cli.rb
CHANGED
data/lib/muvy/download.rb
CHANGED
@@ -13,7 +13,6 @@ module Muvy
|
|
13
13
|
|
14
14
|
def run
|
15
15
|
@settings = merge_settings
|
16
|
-
|
17
16
|
download_video
|
18
17
|
send_video
|
19
18
|
end
|
@@ -22,7 +21,6 @@ module Muvy
|
|
22
21
|
|
23
22
|
def download_video
|
24
23
|
vid = YoutubeDL.download(media, settings)
|
25
|
-
add_options(vid)
|
26
24
|
|
27
25
|
puts <<~DOWNLOADED
|
28
26
|
Download complete.
|
@@ -30,16 +28,10 @@ module Muvy
|
|
30
28
|
Video URL: #{vid.information[:webpage_url]}
|
31
29
|
Video format: #{vid.information[:format]} saved as #{vid.information[:ext]}
|
32
30
|
as #{vid.information[:_filename]}
|
33
|
-
File size: #{(vid.information[:filesize] / 1.024e6).round(2)} MB.
|
31
|
+
File size: #{(vid.information[:filesize] / 1.024e6).round(2) if vid.information[:filesize]} MB.
|
34
32
|
DOWNLOADED
|
35
33
|
end
|
36
34
|
|
37
|
-
# Add important settings to @options hash for use by FFmpeg
|
38
|
-
def add_options(vid)
|
39
|
-
options[:fps] = vid.information[:fps]
|
40
|
-
options[:media_length] = vid.information[:duration]
|
41
|
-
end
|
42
|
-
|
43
35
|
def send_video
|
44
36
|
Video.new(settings[:output], options).run if File.exists?(settings[:output])
|
45
37
|
rescue => e
|
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.4
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: youtube-dl.rb
|