vcs_ruby 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/vcs.rb +171 -171
- data/lib/FFmpeg/ffmpeg.rb +121 -121
- data/lib/FFmpeg/ffmpeg_audio_stream.rb +37 -37
- data/lib/FFmpeg/ffmpeg_meta_info.rb +36 -36
- data/lib/FFmpeg/ffmpeg_video_stream.rb +64 -62
- data/lib/MPlayer/mplayer.rb +101 -101
- data/lib/MPlayer/mplayer_audio_stream.rb +33 -33
- data/lib/MPlayer/mplayer_meta_info.rb +39 -39
- data/lib/MPlayer/mplayer_video_stream.rb +44 -44
- data/lib/black.yml +12 -12
- data/lib/capturer.rb +69 -69
- data/lib/command.rb +50 -51
- data/lib/configuration.rb +150 -150
- data/lib/contact_sheet.rb +380 -380
- data/lib/defaults.yml +39 -39
- data/lib/font.rb +81 -81
- data/lib/frame.rb +161 -161
- data/lib/libAV/libav.rb +151 -151
- data/lib/libAV/libav_audio_stream.rb +37 -37
- data/lib/libAV/libav_meta_info.rb +36 -36
- data/lib/libAV/libav_video_stream.rb +64 -62
- data/lib/oldstyle.yml +22 -22
- data/lib/stream.rb +24 -24
- data/lib/time_index.rb +121 -121
- data/lib/tools.rb +81 -81
- data/lib/vcs.rb +26 -26
- data/lib/version.info +1 -1
- data/lib/version.rb +25 -25
- data/lib/video.rb +92 -92
- data/lib/white.yml +12 -12
- metadata +47 -39
- checksums.yaml +0 -7
data/lib/video.rb
CHANGED
@@ -1,93 +1,93 @@
|
|
1
|
-
#
|
2
|
-
# Represents the video file
|
3
|
-
#
|
4
|
-
|
5
|
-
require 'vcs'
|
6
|
-
|
7
|
-
module VCSRuby
|
8
|
-
class Video
|
9
|
-
attr_reader :config
|
10
|
-
|
11
|
-
def initialize video
|
12
|
-
initialize_filename video
|
13
|
-
initialize_capturers
|
14
|
-
end
|
15
|
-
|
16
|
-
def valid?
|
17
|
-
capturer.file_valid?
|
18
|
-
end
|
19
|
-
|
20
|
-
def info
|
21
|
-
capturer.info
|
22
|
-
end
|
23
|
-
|
24
|
-
def video
|
25
|
-
capturer.video_streams.first
|
26
|
-
end
|
27
|
-
|
28
|
-
def video_streams
|
29
|
-
capturer.video_streams
|
30
|
-
end
|
31
|
-
|
32
|
-
def audio
|
33
|
-
capturer.audio_streams.first
|
34
|
-
end
|
35
|
-
|
36
|
-
def audio_streams
|
37
|
-
capturer.audio_streams
|
38
|
-
end
|
39
|
-
|
40
|
-
def full_path
|
41
|
-
File.join(@path, @filename)
|
42
|
-
end
|
43
|
-
|
44
|
-
def contact_sheet
|
45
|
-
@contact_sheet ||= ContactSheet.new self, capturer
|
46
|
-
end
|
47
|
-
|
48
|
-
def frame time_index
|
49
|
-
return Frame.new self, capturer, time_index
|
50
|
-
end
|
51
|
-
|
52
|
-
def capturer_name
|
53
|
-
capturer.name
|
54
|
-
end
|
55
|
-
|
56
|
-
private
|
57
|
-
def initialize_filename video
|
58
|
-
@path = File.dirname(File.absolute_path(video))
|
59
|
-
@filename = File.basename(video)
|
60
|
-
end
|
61
|
-
|
62
|
-
def initialize_capturers
|
63
|
-
@capturers = []
|
64
|
-
|
65
|
-
@capturers << LibAV.new(self)
|
66
|
-
@capturers << MPlayer.new(self)
|
67
|
-
@capturers << FFmpeg.new(self)
|
68
|
-
|
69
|
-
if Configuration.instance.verbose?
|
70
|
-
puts "Available capturers: #{available_capturers.map{ |c| c.to_s }.join(', ')}"
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
def available_capturers
|
75
|
-
@capturers.select{ |c| c.available? }
|
76
|
-
end
|
77
|
-
|
78
|
-
def capturer
|
79
|
-
result = nil
|
80
|
-
if Configuration.instance.capturer == :any
|
81
|
-
result = available_capturers.first
|
82
|
-
else
|
83
|
-
result = available_capturers.select{ |c| c.name == Configuration.instance.capturer }.first
|
84
|
-
end
|
85
|
-
|
86
|
-
unless result
|
87
|
-
raise "Selected Capturer (#{Configuration.instance.capturer}) not available. Install one of these: #{@capturers.map{ |c| c.name }.join(', ')}"
|
88
|
-
end
|
89
|
-
|
90
|
-
return result
|
91
|
-
end
|
92
|
-
end
|
1
|
+
#
|
2
|
+
# Represents the video file
|
3
|
+
#
|
4
|
+
|
5
|
+
require 'vcs'
|
6
|
+
|
7
|
+
module VCSRuby
|
8
|
+
class Video
|
9
|
+
attr_reader :config
|
10
|
+
|
11
|
+
def initialize video
|
12
|
+
initialize_filename video
|
13
|
+
initialize_capturers
|
14
|
+
end
|
15
|
+
|
16
|
+
def valid?
|
17
|
+
capturer.file_valid?
|
18
|
+
end
|
19
|
+
|
20
|
+
def info
|
21
|
+
capturer.info
|
22
|
+
end
|
23
|
+
|
24
|
+
def video
|
25
|
+
capturer.video_streams.first
|
26
|
+
end
|
27
|
+
|
28
|
+
def video_streams
|
29
|
+
capturer.video_streams
|
30
|
+
end
|
31
|
+
|
32
|
+
def audio
|
33
|
+
capturer.audio_streams.first
|
34
|
+
end
|
35
|
+
|
36
|
+
def audio_streams
|
37
|
+
capturer.audio_streams
|
38
|
+
end
|
39
|
+
|
40
|
+
def full_path
|
41
|
+
File.join(@path, @filename)
|
42
|
+
end
|
43
|
+
|
44
|
+
def contact_sheet
|
45
|
+
@contact_sheet ||= ContactSheet.new self, capturer
|
46
|
+
end
|
47
|
+
|
48
|
+
def frame time_index
|
49
|
+
return Frame.new self, capturer, time_index
|
50
|
+
end
|
51
|
+
|
52
|
+
def capturer_name
|
53
|
+
capturer.name
|
54
|
+
end
|
55
|
+
|
56
|
+
private
|
57
|
+
def initialize_filename video
|
58
|
+
@path = File.dirname(File.absolute_path(video))
|
59
|
+
@filename = File.basename(video)
|
60
|
+
end
|
61
|
+
|
62
|
+
def initialize_capturers
|
63
|
+
@capturers = []
|
64
|
+
|
65
|
+
@capturers << LibAV.new(self)
|
66
|
+
@capturers << MPlayer.new(self)
|
67
|
+
@capturers << FFmpeg.new(self)
|
68
|
+
|
69
|
+
if Configuration.instance.verbose?
|
70
|
+
puts "Available capturers: #{available_capturers.map{ |c| c.to_s }.join(', ')}"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def available_capturers
|
75
|
+
@capturers.select{ |c| c.available? }
|
76
|
+
end
|
77
|
+
|
78
|
+
def capturer
|
79
|
+
result = nil
|
80
|
+
if Configuration.instance.capturer == :any
|
81
|
+
result = available_capturers.first
|
82
|
+
else
|
83
|
+
result = available_capturers.select{ |c| c.name == Configuration.instance.capturer }.first
|
84
|
+
end
|
85
|
+
|
86
|
+
unless result
|
87
|
+
raise "Selected Capturer (#{Configuration.instance.capturer}) not available. Install one of these: #{@capturers.map{ |c| c.name }.join(', ')}"
|
88
|
+
end
|
89
|
+
|
90
|
+
return result
|
91
|
+
end
|
92
|
+
end
|
93
93
|
end
|
data/lib/white.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
style:
|
2
|
-
header:
|
3
|
-
color: Black
|
4
|
-
background: White
|
5
|
-
title:
|
6
|
-
color: Black
|
7
|
-
background: White
|
8
|
-
contact:
|
9
|
-
background: White
|
10
|
-
signature:
|
11
|
-
color: Black
|
12
|
-
background: White
|
1
|
+
style:
|
2
|
+
header:
|
3
|
+
color: Black
|
4
|
+
background: White
|
5
|
+
title:
|
6
|
+
color: Black
|
7
|
+
background: White
|
8
|
+
contact:
|
9
|
+
background: White
|
10
|
+
signature:
|
11
|
+
color: Black
|
12
|
+
background: White
|
metadata
CHANGED
@@ -1,73 +1,80 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcs_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Thomas Bruderer
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-13 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: mini_magick
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '4.0'
|
20
|
-
- -
|
22
|
+
- - ! '>='
|
21
23
|
- !ruby/object:Gem::Version
|
22
24
|
version: 4.0.0
|
23
25
|
type: :runtime
|
24
26
|
prerelease: false
|
25
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
26
29
|
requirements:
|
27
|
-
- -
|
30
|
+
- - ~>
|
28
31
|
- !ruby/object:Gem::Version
|
29
32
|
version: '4.0'
|
30
|
-
- -
|
33
|
+
- - ! '>='
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: 4.0.0
|
33
36
|
- !ruby/object:Gem::Dependency
|
34
37
|
name: bundler
|
35
38
|
requirement: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
|
-
- -
|
41
|
+
- - ~>
|
38
42
|
- !ruby/object:Gem::Version
|
39
43
|
version: '1.5'
|
40
|
-
- -
|
44
|
+
- - ! '>='
|
41
45
|
- !ruby/object:Gem::Version
|
42
46
|
version: 1.5.0
|
43
47
|
type: :development
|
44
48
|
prerelease: false
|
45
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
46
51
|
requirements:
|
47
|
-
- -
|
52
|
+
- - ~>
|
48
53
|
- !ruby/object:Gem::Version
|
49
54
|
version: '1.5'
|
50
|
-
- -
|
55
|
+
- - ! '>='
|
51
56
|
- !ruby/object:Gem::Version
|
52
57
|
version: 1.5.0
|
53
58
|
- !ruby/object:Gem::Dependency
|
54
59
|
name: rake
|
55
60
|
requirement: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
56
62
|
requirements:
|
57
|
-
- -
|
63
|
+
- - ~>
|
58
64
|
- !ruby/object:Gem::Version
|
59
65
|
version: '11.0'
|
60
|
-
- -
|
66
|
+
- - ! '>='
|
61
67
|
- !ruby/object:Gem::Version
|
62
68
|
version: 11.0.0
|
63
69
|
type: :development
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
66
73
|
requirements:
|
67
|
-
- -
|
74
|
+
- - ~>
|
68
75
|
- !ruby/object:Gem::Version
|
69
76
|
version: '11.0'
|
70
|
-
- -
|
77
|
+
- - ! '>='
|
71
78
|
- !ruby/object:Gem::Version
|
72
79
|
version: 11.0.0
|
73
80
|
description: Creates a contact sheet, a preview, of a video, usable as library or
|
@@ -79,59 +86,60 @@ executables:
|
|
79
86
|
extensions: []
|
80
87
|
extra_rdoc_files: []
|
81
88
|
files:
|
82
|
-
-
|
83
|
-
- lib/
|
84
|
-
- lib/
|
85
|
-
- lib/FFmpeg/ffmpeg_meta_info.rb
|
86
|
-
- lib/FFmpeg/ffmpeg_video_stream.rb
|
89
|
+
- lib/frame.rb
|
90
|
+
- lib/video.rb
|
91
|
+
- lib/MPlayer/mplayer_video_stream.rb
|
87
92
|
- lib/MPlayer/mplayer.rb
|
88
93
|
- lib/MPlayer/mplayer_audio_stream.rb
|
89
94
|
- lib/MPlayer/mplayer_meta_info.rb
|
90
|
-
- lib/MPlayer/mplayer_video_stream.rb
|
91
|
-
- lib/black.yml
|
92
|
-
- lib/capturer.rb
|
93
|
-
- lib/command.rb
|
94
|
-
- lib/configuration.rb
|
95
|
-
- lib/contact_sheet.rb
|
96
|
-
- lib/defaults.yml
|
97
|
-
- lib/font.rb
|
98
|
-
- lib/frame.rb
|
99
|
-
- lib/libAV/libav.rb
|
100
95
|
- lib/libAV/libav_audio_stream.rb
|
101
96
|
- lib/libAV/libav_meta_info.rb
|
102
97
|
- lib/libAV/libav_video_stream.rb
|
103
|
-
- lib/
|
104
|
-
- lib/stream.rb
|
98
|
+
- lib/libAV/libav.rb
|
105
99
|
- lib/time_index.rb
|
100
|
+
- lib/font.rb
|
101
|
+
- lib/stream.rb
|
106
102
|
- lib/tools.rb
|
107
|
-
- lib/
|
108
|
-
- lib/version.info
|
103
|
+
- lib/contact_sheet.rb
|
109
104
|
- lib/version.rb
|
110
|
-
- lib/video.rb
|
111
105
|
- lib/white.yml
|
106
|
+
- lib/capturer.rb
|
107
|
+
- lib/FFmpeg/ffmpeg_meta_info.rb
|
108
|
+
- lib/FFmpeg/ffmpeg_video_stream.rb
|
109
|
+
- lib/FFmpeg/ffmpeg.rb
|
110
|
+
- lib/FFmpeg/ffmpeg_audio_stream.rb
|
111
|
+
- lib/version.info
|
112
|
+
- lib/vcs.rb
|
113
|
+
- lib/command.rb
|
114
|
+
- lib/black.yml
|
115
|
+
- lib/configuration.rb
|
116
|
+
- lib/oldstyle.yml
|
117
|
+
- lib/defaults.yml
|
118
|
+
- bin/vcs.rb
|
112
119
|
homepage: https://github.com/FreeApophis/vcs.rb
|
113
120
|
licenses:
|
114
121
|
- GPL3
|
115
|
-
metadata: {}
|
116
122
|
post_install_message:
|
117
123
|
rdoc_options: []
|
118
124
|
require_paths:
|
119
125
|
- lib
|
120
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
121
128
|
requirements:
|
122
|
-
- -
|
129
|
+
- - ! '>='
|
123
130
|
- !ruby/object:Gem::Version
|
124
131
|
version: 1.8.6
|
125
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
126
134
|
requirements:
|
127
|
-
- -
|
135
|
+
- - ! '>='
|
128
136
|
- !ruby/object:Gem::Version
|
129
137
|
version: '0'
|
130
138
|
requirements:
|
131
139
|
- libav or ffmpeg or mplayer
|
132
140
|
rubyforge_project:
|
133
|
-
rubygems_version:
|
141
|
+
rubygems_version: 1.8.23
|
134
142
|
signing_key:
|
135
|
-
specification_version:
|
143
|
+
specification_version: 3
|
136
144
|
summary: Generates contact sheets of videos
|
137
145
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 29ae31b33ef7769387236764c6152b1c3244e20d
|
4
|
-
data.tar.gz: 2b311e1ac050c997064a6e4df901dafae902f44c
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 1d4d7095e00cd684f6ba975fdd368e657aefc8909380af9e9f6c9ad2b1f4b88ccce20b3f9a9980f9f785746f28c68b42f96fe0ddff3ea3e6ca29ca6b02a205c9
|
7
|
-
data.tar.gz: 625850f3813caadcdad5c36ebc1123570ace5686811a130ce562e56d7370aec8b9ead7517db2d1de9902f4c7833758b88ef914206a4ed13e52d315170a979602
|