sensible-cinema 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/FAQ +12 -0
  2. data/LICENSE +5 -0
  3. data/README +7 -0
  4. data/Rakefile +30 -0
  5. data/TODO +106 -0
  6. data/VERSION +1 -0
  7. data/bin/bad_digit10.bmp +0 -0
  8. data/bin/bad_digit11.bmp +0 -0
  9. data/bin/bad_digit12.bmp +0 -0
  10. data/bin/bad_digit13.bmp +0 -0
  11. data/bin/bad_digit14.bmp +0 -0
  12. data/bin/bad_digit15.bmp +0 -0
  13. data/bin/bad_digit16.bmp +0 -0
  14. data/bin/bad_digit17.bmp +0 -0
  15. data/bin/bad_digit18.bmp +0 -0
  16. data/bin/bad_digit19.bmp +0 -0
  17. data/bin/bad_digit2.bmp +0 -0
  18. data/bin/bad_digit20.bmp +0 -0
  19. data/bin/bad_digit21.bmp +0 -0
  20. data/bin/bad_digit22.bmp +0 -0
  21. data/bin/bad_digit3.bmp +0 -0
  22. data/bin/bad_digit4.bmp +0 -0
  23. data/bin/bad_digit5.bmp +0 -0
  24. data/bin/bad_digit6.bmp +0 -0
  25. data/bin/bad_digit7.bmp +0 -0
  26. data/bin/bad_digit8.bmp +0 -0
  27. data/bin/bad_digit9.bmp +0 -0
  28. data/bin/hours.bmp +0 -0
  29. data/bin/minute_ones.bmp +0 -0
  30. data/bin/minute_tens.bmp +0 -0
  31. data/bin/scene-skipper +58 -0
  32. data/bin/second_ones.bmp +0 -0
  33. data/bin/second_tens.bmp +0 -0
  34. data/ext/mkrf_conf.rb +5 -0
  35. data/lib/blanker.rb +54 -0
  36. data/lib/keyboard_input.rb +45 -0
  37. data/lib/mouse.rb +60 -0
  38. data/lib/muter.rb +48 -0
  39. data/lib/ocr.rb +57 -0
  40. data/lib/overlayer.rb +341 -0
  41. data/lib/screen_tracker.rb +160 -0
  42. data/spec/common.rb +43 -0
  43. data/spec/convert_image.rb +8 -0
  44. data/spec/images/4.bmp +0 -0
  45. data/spec/images/black.bmp +0 -0
  46. data/spec/images/colon.bmp +0 -0
  47. data/spec/images/hulu_0.bmp +0 -0
  48. data/spec/images/hulu_2.bmp +0 -0
  49. data/spec/images/hulu_2_4.bmp +0 -0
  50. data/spec/images/hulu_3.bmp +0 -0
  51. data/spec/images/hulu_3_4.bmp +0 -0
  52. data/spec/images/hulu_4.bmp +0 -0
  53. data/spec/images/hulu_4_4.bmp +0 -0
  54. data/spec/images/hulu_5.bmp +0 -0
  55. data/spec/images/hulu_7.bmp +0 -0
  56. data/spec/images/hulu_slash.bmp +0 -0
  57. data/spec/images/vlc_0.bmp +0 -0
  58. data/spec/images/vlc_2_6.bmp +0 -0
  59. data/spec/images/vlc_4.bmp +0 -0
  60. data/spec/images/vlc_5.bmp +0 -0
  61. data/spec/images/vlc_6.bmp +0 -0
  62. data/spec/images/vlc_9.bmp +0 -0
  63. data/spec/images/vlc_colon.bmp +0 -0
  64. data/spec/mouse_forever.rb +2 -0
  65. data/spec/open.bat +1 -0
  66. data/spec/silence.wav +0 -0
  67. data/spec/spec.blanker.rb +35 -0
  68. data/spec/spec.keyboard_input.rb +56 -0
  69. data/spec/spec.mouse.rb +11 -0
  70. data/spec/spec.muter.rb +33 -0
  71. data/spec/spec.ocr.rb +33 -0
  72. data/spec/spec.overlayer.rb +331 -0
  73. data/spec/spec.screen_tracker.rb +211 -0
  74. data/spec/test_yaml.yml +4 -0
  75. data/vendor/gocr048.exe +0 -0
  76. data/zamples/players/captures/hulu full screen non hour.jpg +0 -0
  77. data/zamples/players/captures/hulu full screen over hour.jpg +0 -0
  78. data/zamples/players/captures/silence.bmp +0 -0
  79. data/zamples/players/captures/vlc grab over one hour file over one hour play.bmp +0 -0
  80. data/zamples/players/captures/vlc2.bmp +0 -0
  81. data/zamples/players/captures/vlc_full_screen_slider under one hour.bmp +0 -0
  82. data/zamples/players/captures/youtube full screen big screen.jpg +0 -0
  83. data/zamples/players/how_to +21 -0
  84. data/zamples/players/hulu_full_screened_over_an_hour.yml +23 -0
  85. data/zamples/players/vlc_full_screened.yml +6 -0
  86. data/zamples/players/vlc_full_screened_over_hour.yml +23 -0
  87. data/zamples/players/vlc_non_full_screened.yml +19 -0
  88. data/zamples/players/vlc_non_full_screened_under_an_hour.yml +19 -0
  89. data/zamples/scene_lists/disney_cars.yml +13 -0
  90. data/zamples/scene_lists/happy_feet.yml +7 -0
  91. data/zamples/scene_lists/mute_list.yml +15 -0
  92. metadata +286 -0
@@ -0,0 +1,21 @@
1
+ Basically to create a player description you tell it the window title and the coordinates of the "clock" as it plays, including the digits
2
+
3
+
4
+ some tips:
5
+
6
+ use WinCheat to see window names (under "Text")
7
+ run scene-skipper with -v -- it will dump a screenshot of the window in question
8
+ use Paint.net to examine the dumped graphic and get coords
9
+
10
+ you can specify "test" in place of the "mutes_list.yml" to have it just the player_description.yml and exit
11
+ it will screen capture your segment to your current working directory.
12
+
13
+ Paint.net is quite handy.
14
+
15
+ NB that the clock coords can have negative start offsets, which mean "distance from the bottom right corner"
16
+
17
+ Also you can "invert" the image to more easily get the offsets if you have to use negative offsets.
18
+
19
+ NB that you can specify "desktop" for the window name meaning full screen.
20
+
21
+ Post back with difficulties or questions.
@@ -0,0 +1,23 @@
1
+ name: desktop
2
+ x: 8
3
+ y: -17
4
+ width: 45
5
+ height: 13
6
+ digits:
7
+ :hours:
8
+ - 15
9
+ - 7
10
+ :minute_tens:
11
+ - 24
12
+ - 7
13
+ :minute_ones:
14
+ - 30
15
+ - 7
16
+ :second_tens:
17
+ - 40
18
+ - 5
19
+ :second_ones:
20
+ - 46
21
+ - 6
22
+ :should_invert: true
23
+
@@ -0,0 +1,6 @@
1
+ # name: !ruby/regexp /VLC/
2
+ name: !ruby/regexp /^vlc$/
3
+ x: 525
4
+ y: 47
5
+ width: 35
6
+ height: 14
@@ -0,0 +1,23 @@
1
+ # name: !ruby/regexp /VLC/
2
+ name: !ruby/regexp /^vlc$/
3
+ x: 522
4
+ y: 47
5
+ width: 35
6
+ height: 14
7
+ digits:
8
+ :hours:
9
+ - -89
10
+ - 8
11
+ :minute_tens:
12
+ - -78
13
+ - 7
14
+ :minute_ones:
15
+ - -71
16
+ - 7
17
+ :second_tens:
18
+ - -62
19
+ - 6
20
+ :second_ones:
21
+ - -55
22
+ - 6
23
+
@@ -0,0 +1,19 @@
1
+ name: VLC media
2
+ x: -109
3
+ y : -17
4
+ width: 44
5
+ height: 11
6
+ digits:
7
+ :hours:
8
+ :minute_tens:
9
+ - -90
10
+ - 7
11
+ :minute_ones:
12
+ - -82
13
+ - 7
14
+ :second_tens:
15
+ - -72
16
+ - 7
17
+ :second_ones:
18
+ - -66
19
+ - 7
@@ -0,0 +1,19 @@
1
+ name: VLC media
2
+ x: -90
3
+ y : -15
4
+ width: 44
5
+ height: 11
6
+ digits:
7
+ :hours:
8
+ :minute_tens:
9
+ - -88
10
+ - 7
11
+ :minute_ones:
12
+ - -81
13
+ - 7
14
+ :second_tens:
15
+ - -72
16
+ - 7
17
+ :second_ones:
18
+ - -66
19
+ - 7
@@ -0,0 +1,13 @@
1
+ name: cars widescreen 2006
2
+ player: VLC
3
+
4
+ 34:35-8 "DOC HAVE MERCY ON YOUR SOUL"
5
+ 36:09-11 "SHE JUST LIKES ME FOR MUH BODY"
6
+ 37:05 "GAS NOISE"
7
+ 40:16-18 "GOOD LOOK AT THAT SEXY HOT-ROD"
8
+ 44:24-46 "HILL BILLY H..."
9
+ 54:25-30 "CRAZY GRANDPA CAR WHAT AN IDIOT"
10
+ 55:24 "OH L..."
11
+ 57:06-07 "Hill Billy H..."
12
+ 57:12-18 "wait not there with me..."
13
+ 1:55:39 "for the love of Chrysler"
@@ -0,0 +1,7 @@
1
+ title: Happy Feet
2
+ source: VLC DVD
3
+ mutes:
4
+ # one hour one minute and a half second to one hour one minute and 1.5s
5
+ "01:33:25.0" : "01:33:50.0"
6
+ blank_outs:
7
+ "55:35" : "55:42.0" # blank from one minute one second to one minute two seconds
@@ -0,0 +1,15 @@
1
+ title: Forever Strong
2
+ source: Hulu
3
+ version: 0.4.8
4
+ mutes:
5
+ 2.0 : 3.0
6
+ 4.0 : 5.0
7
+ 9.0 : 13.0
8
+ 44.0 : 50.0 # mute for 6 seconds starting at second 44
9
+ # This next actually means one minute to one minute one second
10
+ "1:00.0" : "1:01.0"
11
+ # one hour one minute and a half second to one hour one minute and 1.5s
12
+ "01:01:00.5" : "01:01:01.5"
13
+ blank_outs:
14
+ "00:15" : "00:18"
15
+ "01:01" : "01:02.0" # blank from one minute one second to one minute two seconds
metadata ADDED
@@ -0,0 +1,286 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sensible-cinema
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
10
+ platform: ruby
11
+ authors:
12
+ - Roger Pack
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-08-04 00:00:00 -06:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :development
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: jeweler
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdp-rmagick
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ type: :development
58
+ version_requirements: *id003
59
+ - !ruby/object:Gem::Dependency
60
+ name: mini_magick
61
+ prerelease: false
62
+ requirement: &id004 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ type: :runtime
71
+ version_requirements: *id004
72
+ - !ruby/object:Gem::Dependency
73
+ name: hitimes
74
+ prerelease: false
75
+ requirement: &id005 !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ segments:
81
+ - 0
82
+ version: "0"
83
+ type: :development
84
+ version_requirements: *id005
85
+ - !ruby/object:Gem::Dependency
86
+ name: sane
87
+ prerelease: false
88
+ requirement: &id006 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
95
+ - 22
96
+ - 0
97
+ version: 0.22.0
98
+ type: :runtime
99
+ version_requirements: *id006
100
+ - !ruby/object:Gem::Dependency
101
+ name: rdp-win32screenshot
102
+ prerelease: false
103
+ requirement: &id007 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ segments:
109
+ - 0
110
+ - 0
111
+ - 6
112
+ - 2
113
+ version: 0.0.6.2
114
+ type: :runtime
115
+ version_requirements: *id007
116
+ description:
117
+ email: rogerdpack@gmail.com
118
+ executables:
119
+ - bad_digit10.bmp
120
+ - bad_digit11.bmp
121
+ - bad_digit12.bmp
122
+ - bad_digit13.bmp
123
+ - bad_digit14.bmp
124
+ - bad_digit15.bmp
125
+ - bad_digit16.bmp
126
+ - bad_digit17.bmp
127
+ - bad_digit18.bmp
128
+ - bad_digit19.bmp
129
+ - bad_digit2.bmp
130
+ - bad_digit20.bmp
131
+ - bad_digit21.bmp
132
+ - bad_digit22.bmp
133
+ - bad_digit3.bmp
134
+ - bad_digit4.bmp
135
+ - bad_digit5.bmp
136
+ - bad_digit6.bmp
137
+ - bad_digit7.bmp
138
+ - bad_digit8.bmp
139
+ - bad_digit9.bmp
140
+ - hours.bmp
141
+ - minute_ones.bmp
142
+ - minute_tens.bmp
143
+ - scene-skipper
144
+ - second_ones.bmp
145
+ - second_tens.bmp
146
+ extensions:
147
+ - ext/mkrf_conf.rb
148
+ extra_rdoc_files:
149
+ - LICENSE
150
+ - README
151
+ - TODO
152
+ files:
153
+ - FAQ
154
+ - LICENSE
155
+ - README
156
+ - Rakefile
157
+ - TODO
158
+ - VERSION
159
+ - bin/scene-skipper
160
+ - ext/mkrf_conf.rb
161
+ - lib/blanker.rb
162
+ - lib/keyboard_input.rb
163
+ - lib/mouse.rb
164
+ - lib/muter.rb
165
+ - lib/ocr.rb
166
+ - lib/overlayer.rb
167
+ - lib/screen_tracker.rb
168
+ - spec/common.rb
169
+ - spec/convert_image.rb
170
+ - spec/images/4.bmp
171
+ - spec/images/black.bmp
172
+ - spec/images/colon.bmp
173
+ - spec/images/hulu_0.bmp
174
+ - spec/images/hulu_2.bmp
175
+ - spec/images/hulu_2_4.bmp
176
+ - spec/images/hulu_3.bmp
177
+ - spec/images/hulu_3_4.bmp
178
+ - spec/images/hulu_4.bmp
179
+ - spec/images/hulu_4_4.bmp
180
+ - spec/images/hulu_5.bmp
181
+ - spec/images/hulu_7.bmp
182
+ - spec/images/hulu_slash.bmp
183
+ - spec/images/vlc_0.bmp
184
+ - spec/images/vlc_2_6.bmp
185
+ - spec/images/vlc_4.bmp
186
+ - spec/images/vlc_5.bmp
187
+ - spec/images/vlc_6.bmp
188
+ - spec/images/vlc_9.bmp
189
+ - spec/images/vlc_colon.bmp
190
+ - spec/mouse_forever.rb
191
+ - spec/open.bat
192
+ - spec/silence.wav
193
+ - spec/spec.blanker.rb
194
+ - spec/spec.keyboard_input.rb
195
+ - spec/spec.mouse.rb
196
+ - spec/spec.muter.rb
197
+ - spec/spec.ocr.rb
198
+ - spec/spec.overlayer.rb
199
+ - spec/spec.screen_tracker.rb
200
+ - spec/test_yaml.yml
201
+ - vendor/gocr048.exe
202
+ - zamples/players/captures/hulu full screen non hour.jpg
203
+ - zamples/players/captures/hulu full screen over hour.jpg
204
+ - zamples/players/captures/silence.bmp
205
+ - zamples/players/captures/vlc grab over one hour file over one hour play.bmp
206
+ - zamples/players/captures/vlc2.bmp
207
+ - zamples/players/captures/vlc_full_screen_slider under one hour.bmp
208
+ - zamples/players/captures/youtube full screen big screen.jpg
209
+ - zamples/players/how_to
210
+ - zamples/players/hulu_full_screened_over_an_hour.yml
211
+ - zamples/players/vlc_full_screened.yml
212
+ - zamples/players/vlc_full_screened_over_hour.yml
213
+ - zamples/players/vlc_non_full_screened.yml
214
+ - zamples/players/vlc_non_full_screened_under_an_hour.yml
215
+ - zamples/scene_lists/disney_cars.yml
216
+ - zamples/scene_lists/happy_feet.yml
217
+ - zamples/scene_lists/mute_list.yml
218
+ - bin/bad_digit10.bmp
219
+ - bin/bad_digit11.bmp
220
+ - bin/bad_digit12.bmp
221
+ - bin/bad_digit13.bmp
222
+ - bin/bad_digit14.bmp
223
+ - bin/bad_digit15.bmp
224
+ - bin/bad_digit16.bmp
225
+ - bin/bad_digit17.bmp
226
+ - bin/bad_digit18.bmp
227
+ - bin/bad_digit19.bmp
228
+ - bin/bad_digit2.bmp
229
+ - bin/bad_digit20.bmp
230
+ - bin/bad_digit21.bmp
231
+ - bin/bad_digit22.bmp
232
+ - bin/bad_digit3.bmp
233
+ - bin/bad_digit4.bmp
234
+ - bin/bad_digit5.bmp
235
+ - bin/bad_digit6.bmp
236
+ - bin/bad_digit7.bmp
237
+ - bin/bad_digit8.bmp
238
+ - bin/bad_digit9.bmp
239
+ - bin/hours.bmp
240
+ - bin/minute_ones.bmp
241
+ - bin/minute_tens.bmp
242
+ - bin/second_ones.bmp
243
+ - bin/second_tens.bmp
244
+ has_rdoc: true
245
+ homepage: http://github.com/rdp
246
+ licenses: []
247
+
248
+ post_install_message:
249
+ rdoc_options:
250
+ - --charset=UTF-8
251
+ require_paths:
252
+ - lib
253
+ required_ruby_version: !ruby/object:Gem::Requirement
254
+ none: false
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ segments:
259
+ - 0
260
+ version: "0"
261
+ required_rubygems_version: !ruby/object:Gem::Requirement
262
+ none: false
263
+ requirements:
264
+ - - ">="
265
+ - !ruby/object:Gem::Version
266
+ segments:
267
+ - 0
268
+ version: "0"
269
+ requirements: []
270
+
271
+ rubyforge_project:
272
+ rubygems_version: 1.3.7
273
+ signing_key:
274
+ specification_version: 3
275
+ summary: an EDL scene-selector/bleeper that works with online players like hulu
276
+ test_files:
277
+ - spec/common.rb
278
+ - spec/convert_image.rb
279
+ - spec/mouse_forever.rb
280
+ - spec/spec.blanker.rb
281
+ - spec/spec.keyboard_input.rb
282
+ - spec/spec.mouse.rb
283
+ - spec/spec.muter.rb
284
+ - spec/spec.ocr.rb
285
+ - spec/spec.overlayer.rb
286
+ - spec/spec.screen_tracker.rb