evideo 0.2.6 → 0.2.7
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/Gemfile.lock +2 -2
- data/lib/evideo/processa.rb +2 -1
- data/lib/evideo/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: 14df3f51ddcb3878e84f2f7eda9492c15bb0105303594bc191e9f35e9ac42c6e
|
4
|
+
data.tar.gz: 29b0e163690a9f43821bcada3c71d1cf876146c953e80df4d2025eeb76648ef9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c1ccf7f13e1072c27abc3c9d1f86e993f52711636c87e9849eece3ad20ce894a8c1ca9ca450e06f9aee044554f6ea91a09c36ffbe5ee5284feb91d2fb4a2b09
|
7
|
+
data.tar.gz: 03654ea2c6c21db1cc29d3d90bc8ea815cbba26688f8e5e1151520c15f9409faf073cef1bd64853b8f8fdaba48bbd342805589ea5dccabc71cbc1de7207ebb02
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
evideo (0.2.
|
4
|
+
evideo (0.2.7)
|
5
5
|
thor
|
6
6
|
|
7
7
|
GEM
|
@@ -41,7 +41,7 @@ GEM
|
|
41
41
|
rubocop-ast (>= 0.6.0)
|
42
42
|
ruby-progressbar (~> 1.7)
|
43
43
|
unicode-display_width (>= 1.4.0, < 2.0)
|
44
|
-
rubocop-ast (1.0.
|
44
|
+
rubocop-ast (1.0.1)
|
45
45
|
parser (>= 2.7.1.5)
|
46
46
|
ruby-progressbar (1.10.1)
|
47
47
|
solargraph (0.39.17)
|
data/lib/evideo/processa.rb
CHANGED
@@ -65,6 +65,7 @@ module Evideo
|
|
65
65
|
"-r #{[ifps, 25.0].min} -b:v #{[ibitrate, 2000].min}k#{fdimensions}#{fratio}"
|
66
66
|
end
|
67
67
|
|
68
|
+
# @note final video dimensions hd480=852x480, hd720=1280x720, hd1080=1920x1080
|
68
69
|
# @return [String] dimensions do comando processar video
|
69
70
|
def fdimensions
|
70
71
|
if iheight < 480 then ' -s hd480'
|
@@ -75,7 +76,7 @@ module Evideo
|
|
75
76
|
|
76
77
|
# @return [String] aspect ratio do comando processar video
|
77
78
|
def fratio
|
78
|
-
ART.include?(iratio) ? " -aspect 16:9 -filter:v 'pad=ih*16/9:ih:(ow-iw)/2:(oh-ih)/2'" : ''
|
79
|
+
ART.include?(iratio) ? " -aspect 16:9 -filter:v 'pad=max(iw\\,ih*16/9):ih:(ow-iw)/2:(oh-ih)/2'" : ''
|
79
80
|
end
|
80
81
|
|
81
82
|
# @return [String] cortes inicio video & duracao do video final processado
|
data/lib/evideo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evideo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hernâni Rodrigues Vaz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|