video_converter 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/video_converter/ffmpeg.rb +5 -3
- data/lib/video_converter/version.rb +1 -1
- metadata +4 -4
@@ -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
|
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
|
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.
|
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-
|
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:
|
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:
|
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
|