video2gif 0.0.24 → 0.0.25
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 +6 -6
- data/lib/video2gif/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004c9334d294dab20f1f543840d5917ea779e3059109ef2056a5073ca711bfb5
|
4
|
+
data.tar.gz: 7610eb995ed57c237f77bf8826431c55cc808599e9a9cb4f5639328819a11ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce69d114872ceceff5c2b1d8264b1f0e7f98c6d999f3779e3b13959573cf90c464374903500a848d60e05c6aae0c91d120d82cfcc6c3fb91696ddf8f91e6f35a
|
7
|
+
data.tar.gz: 4f6148a09823bc917f9f282d111f42d2bc3d2e7acde37c632514dcdd909b439e2620ae3e9bd398662329826cf4e8498fcdfde9de8b0bc3506038f30805912db6
|
data/Gemfile.lock
CHANGED
data/lib/video2gif/ffmpeg.rb
CHANGED
@@ -24,8 +24,8 @@ module Video2gif
|
|
24
24
|
sws_dither=none
|
25
25
|
width=#{video_info[:width]}
|
26
26
|
height=#{video_info[:height]}
|
27
|
-
].join(':') + '[subs]'
|
28
|
-
filtergraph <<
|
27
|
+
].join(':') + '[subs]'
|
28
|
+
filtergraph << '[0:v][subs]overlay=format=auto'
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -57,10 +57,10 @@ module Video2gif
|
|
57
57
|
# 'zscale' filters, 'format' filters, and the 'tonemap' filter.
|
58
58
|
# The 'zscale' will do the resize for us as well.
|
59
59
|
filtergraph << 'zscale=' + %W[
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
dither=none
|
61
|
+
filter=lanczos
|
62
|
+
width=#{options[:width]}
|
63
|
+
height=trunc(#{options[:width]}/dar)
|
64
64
|
].join(':') if options[:width]
|
65
65
|
filtergraph << 'zscale=transfer=linear:npl=100'
|
66
66
|
filtergraph << 'zscale=npl=100'
|
data/lib/video2gif/version.rb
CHANGED