video_converter 0.7.3 → 0.7.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.
@@ -74,8 +74,6 @@ module VideoConverter
74
74
 
75
75
  output.options[:format] ||= File.extname(output.filename).delete('.')
76
76
  output.options = {
77
- :keyint_min => 25,
78
- :keyframe_interval => 100,
79
77
  :threads => 1,
80
78
  :video_codec => 'libx264',
81
79
  :audio_codec => 'libfaac',
@@ -93,7 +91,11 @@ module VideoConverter
93
91
 
94
92
  # common first pass
95
93
  if !one_pass?(qualities) && common_first_pass?(qualities)
96
- qualities.each { |output| output.options[:passlogfile] = File.join(output.work_dir, "group#{group_index}.log") }
94
+ qualities.each do |output|
95
+ output.options[:passlogfile] = File.join(output.work_dir, "group#{group_index}.log")
96
+ output.options[:keyint_min] = 25
97
+ output.options[:keyframe_interval] = 100
98
+ end
97
99
  best_quality = qualities.sort do |q1, q2|
98
100
  res = q1.options[:video_bitrate].to_i <=> q2.options[:video_bitrate].to_i
99
101
  res = q1.height.to_i <=> q2.height.to_i if res == 0
@@ -1,3 +1,3 @@
1
1
  module VideoConverter
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-16 00:00:00.000000000 Z
12
+ date: 2014-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: video_screenshoter
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: 2873760269724122754
144
+ hash: 3801804683299045437
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  none: false
147
147
  requirements:
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: 2873760269724122754
153
+ hash: 3801804683299045437
154
154
  requirements:
155
155
  - ffmpeg, version 1.2 or greated configured with libx264 and libfaac
156
156
  - live_segmenter to convert to hls