video2gif 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bf55840fd13a21ca24b9c09d2b900d9b33d493be
4
- data.tar.gz: 1da536359f007656b1164202f796a60e0b0613a5
2
+ SHA256:
3
+ metadata.gz: 9dea97a401b3e47b30ffc508fb4dfa7c3f93059b92e1e2fb63331c8487fd1315
4
+ data.tar.gz: 645a56bf651cff478b033ca2dd710f2b1102dbdfe1bfce4d5a4a5e49a5ec8662
5
5
  SHA512:
6
- metadata.gz: 7e06b4b11fa69b0c21ad0722f4e1bac80155cb2b90ff4d32b685a1813c7b80c3f2ce3aaee9dbe17df1ddd607508b7c56f3b9186a43569b1ce355d6866f272e1b
7
- data.tar.gz: 61f144b527acbc8ed22f628145c83fdac6da5ed9e0ee617a976493a9ac6dab6235a6f1afdd4f314dda3c3e6fad77a7f2de7cf6b4ed7dc550a22a9a2a6e51edd3
6
+ metadata.gz: 77a15fe135ba84c88447ed29fec18a32ca61a3bbc69d729b9a8725015a303c49990df42d13f913c24ca9452dedfc7f118197fb494a2778a259391419ac5ebd61
7
+ data.tar.gz: c784127c03e71ede62f83c393cad597447c0a97738da684cd5deb1aca2c4f48fde11f2c05c3dd61b148a17c9925768f13f3f9b10ea4c7cd9fe628535eed350d9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- video2gif (0.0.16)
4
+ video2gif (0.0.17)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/video2gif/cli.rb CHANGED
@@ -12,7 +12,7 @@ module Video2gif
12
12
  options = Video2gif::Options.parse(ARGV)
13
13
 
14
14
  if options[:autocrop]
15
- Open3.popen2e(*Video2gif::FFMpeg.cropdetect_command(options, logger)) do |stdin, stdout_stderr, thread|
15
+ Open3.popen2e(*Video2gif::FFmpeg.cropdetect_command(options, logger)) do |stdin, stdout_stderr, thread|
16
16
  stdin.close
17
17
  stdout_stderr.each do |line|
18
18
  logger.info(line.chomp) if options[:verbose] unless options[:quiet]
@@ -28,7 +28,7 @@ module Video2gif
28
28
  end
29
29
  end
30
30
 
31
- Open3.popen2e(*Video2gif::FFMpeg.gif_command(options, logger)) do |stdin, stdout_stderr, thread|
31
+ Open3.popen2e(*Video2gif::FFmpeg.gif_command(options, logger)) do |stdin, stdout_stderr, thread|
32
32
  stdin.close
33
33
  stdout_stderr.each do |line|
34
34
  logger.info(line.chomp) if options[:verbose] unless options[:quiet]
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  module Video2gif
5
- module FFMpeg
5
+ module FFmpeg
6
6
  def self.filtergraph(options)
7
7
  filtergraph = []
8
8
 
@@ -97,8 +97,6 @@ module Video2gif
97
97
  # For non-moving parts of the GIF, attempt to reuse the same
98
98
  # palette from frame to frame.
99
99
  filtergraph << "[paletteuse][palette]paletteuse=dither=#{options[:dither] || 'floyd_steinberg'}:diff_mode=rectangle"
100
-
101
- filtergraph.join(',')
102
100
  end
103
101
 
104
102
  def self.ffmpeg_command(options, executable: 'ffmpeg')
@@ -124,7 +122,7 @@ module Video2gif
124
122
 
125
123
  def self.gif_command(options, logger, executable: 'ffmpeg')
126
124
  command = ffmpeg_command(options, executable: executable)
127
- command << '-filter_complex' << filtergraph(options)
125
+ command << '-filter_complex' << filtergraph(options).join(',')
128
126
  command << '-f' << 'gif'
129
127
  command << options[:output_filename]
130
128
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Video2gif
4
- VERSION = '0.0.16'
4
+ VERSION = '0.0.17'
5
5
  end
data/video2gif.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['hello@emily.st']
11
11
 
12
12
  spec.summary = %q{Fully automated luxury gay space GIFs}
13
- spec.description = %q{Simple script to automate using FFMpeg to create GIFs from any video}
13
+ spec.description = %q{Simple script to automate using FFmpeg to create GIFs from any video}
14
14
  spec.homepage = 'https://github.com/emilyst/video2gif'
15
15
  spec.license = 'CC0'
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video2gif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emily St.
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
- description: Simple script to automate using FFMpeg to create GIFs from any video
83
+ description: Simple script to automate using FFmpeg to create GIFs from any video
84
84
  email:
85
85
  - hello@emily.st
86
86
  executables:
@@ -129,8 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.5.2
132
+ rubygems_version: 3.0.3
134
133
  signing_key:
135
134
  specification_version: 4
136
135
  summary: Fully automated luxury gay space GIFs