video_screenshoter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/video_screenshoter/hls.rb +9 -6
- data/lib/video_screenshoter/version.rb +1 -1
- metadata +4 -4
@@ -14,12 +14,15 @@ module VideoScreenshoter
|
|
14
14
|
time + chunk.first
|
15
15
|
end
|
16
16
|
times.each do |time|
|
17
|
-
chunk_limit = chunk_limits.select { |c| time
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
if chunk_limit = chunk_limits.select { |c| time >= c[:start] && time <= c[:end] }.first
|
18
|
+
path = File.join(File.dirname(input), chunk_limit[:path])
|
19
|
+
rel_time = time - chunk_limit[:start]
|
20
|
+
cmd = command(path, output_fullpath(time), rel_time)
|
21
|
+
puts cmd if verbose
|
22
|
+
`#{cmd}`
|
23
|
+
else
|
24
|
+
puts "Time #{time} is incorrect" if verbose
|
25
|
+
end
|
23
26
|
end
|
24
27
|
end
|
25
28
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_screenshoter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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: 2013-05-
|
12
|
+
date: 2013-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
segments:
|
112
112
|
- 0
|
113
|
-
hash: -
|
113
|
+
hash: -2399110922537615442
|
114
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
115
|
none: false
|
116
116
|
requirements:
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
segments:
|
121
121
|
- 0
|
122
|
-
hash: -
|
122
|
+
hash: -2399110922537615442
|
123
123
|
requirements:
|
124
124
|
- ffmpeg
|
125
125
|
rubyforge_project:
|