sensible-cinema 0.14.4 → 0.14.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/ChangeLog +4 -0
  2. data/LICENSE +23 -3
  3. data/README +19 -9
  4. data/Rakefile +66 -3
  5. data/TODO +29 -52
  6. data/VERSION +1 -1
  7. data/bin/sensible-cinema +49 -37
  8. data/bin/sensible-cinema-cli +11 -11
  9. data/lib/ocr.rb +10 -2
  10. data/lib/overlayer.rb +1 -1
  11. data/lib/screen_tracker.rb +7 -13
  12. data/lib/swing_helpers.rb +11 -0
  13. data/lib/vlc_programmer.rb +1 -1
  14. data/run_sensible_cinema.bat +5 -0
  15. data/sensible-cinema.gemspec +130 -147
  16. data/spec/swing_helpers.spec.rb +11 -2
  17. data/spec/vlc_programmer.spec.rb +1 -1
  18. data/todo_if_need_speed +6 -0
  19. data/zamples/{scene_lists → edit_decision_lists}/category descriptions.txt +0 -0
  20. data/zamples/{scene_lists → edit_decision_lists}/dvds/White Christmas.txt +0 -0
  21. data/zamples/{scene_lists → edit_decision_lists}/dvds/all_dogs_go_to_heaven_dvd.txt +1 -1
  22. data/zamples/{scene_lists → edit_decision_lists}/dvds/bobs_big_plan.txt +4 -1
  23. data/zamples/{scene_lists → edit_decision_lists}/dvds/cars_disney.txt +0 -0
  24. data/zamples/{scene_lists → edit_decision_lists}/dvds/happy_feet_dvd.txt +0 -0
  25. data/zamples/{scene_lists → edit_decision_lists}/dvds/labyrinth.txt +0 -0
  26. data/zamples/{scene_lists → edit_decision_lists}/dvds/making marriage work.txt +0 -0
  27. data/zamples/{scene_lists/example_scene_descriptions_list.txt → edit_decision_lists/example_edit_decision_list.txt} +0 -0
  28. data/zamples/{scene_lists → edit_decision_lists}/star_trek_generations_hulu.txt +0 -0
  29. data/zamples/{scene_lists → edit_decision_lists}/youtube/gummy_bear_song_youtube.txt +0 -0
  30. data/zamples/{scene_lists → edit_decision_lists}/youtube/nuki_song_youtube.txt +0 -0
  31. data/zamples/players/how_to_create_more_players.txt +1 -1
  32. metadata +287 -282
  33. data/vendor/imagemagick/CORE_RL_Magick++_.dll +0 -0
  34. data/vendor/imagemagick/CORE_RL_bzlib_.dll +0 -0
  35. data/vendor/imagemagick/CORE_RL_jbig_.dll +0 -0
  36. data/vendor/imagemagick/CORE_RL_jp2_.dll +0 -0
  37. data/vendor/imagemagick/CORE_RL_jpeg_.dll +0 -0
  38. data/vendor/imagemagick/CORE_RL_lcms_.dll +0 -0
  39. data/vendor/imagemagick/CORE_RL_libxml_.dll +0 -0
  40. data/vendor/imagemagick/CORE_RL_magick_.dll +0 -0
  41. data/vendor/imagemagick/CORE_RL_png_.dll +0 -0
  42. data/vendor/imagemagick/CORE_RL_tiff_.dll +0 -0
  43. data/vendor/imagemagick/CORE_RL_ttf_.dll +0 -0
  44. data/vendor/imagemagick/CORE_RL_wand_.dll +0 -0
  45. data/vendor/imagemagick/CORE_RL_xlib_.dll +0 -0
  46. data/vendor/imagemagick/CORE_RL_zlib_.dll +0 -0
  47. data/vendor/imagemagick/X11.dll +0 -0
  48. data/vendor/imagemagick/Xext.dll +0 -0
  49. data/vendor/imagemagick/atl90.dll +0 -0
  50. data/vendor/imagemagick/convert.exe +0 -0
  51. data/vendor/imagemagick/identify.exe +0 -0
  52. data/vendor/imagemagick/mfc90.dll +0 -0
  53. data/vendor/imagemagick/msvcp90.dll +0 -0
  54. data/vendor/imagemagick/msvcr90.dll +0 -0
  55. data/vendor/imagemagick/vcomp90.dll +0 -0
@@ -160,25 +160,19 @@ class ScreenTracker
160
160
 
161
161
  def attempt_to_get_time_from_screen start_time
162
162
  out = {}
163
- start = get_digits_as_bitmaps
164
- dump_digits(start, 'started_as')
165
163
  # force it to have two matching snapshots in a row, to avoid race conditions grabbing the digits...
164
+ # allow youtube to update (sigh) lodo just for utube
166
165
  previous = nil
167
- current = start
168
- until previous == (current)
166
+ sleep 0.05
167
+ current = get_digits_as_bitmaps
168
+ while previous != current
169
169
  previous = current
170
- sleep 0.25 # allow youtube to update (sigh) lodo just for utube
170
+ sleep 0.05
171
171
  current = get_digits_as_bitmaps
172
- p previous == current
173
- dump_digits(current, 'current is')
174
172
  # lodo it should probably poll *before* calling this, not here...maybe?
175
173
  end
176
174
  assert previous == current
177
- digits = current = previous
178
-
179
- if $DEBUG
180
- dump_digits(digits, 'using digits')
181
- end
175
+ digits = current = previous
182
176
  DIGIT_TYPES.each{|type|
183
177
  if digits[type]
184
178
  digit = identify_digit(digits[type])
@@ -211,7 +205,7 @@ class ScreenTracker
211
205
  end
212
206
  }
213
207
  out = "%d:%d%d:%d%d" % DIGIT_TYPES.map{ |type| out[type] }
214
- puts '', 'got new screen time ' + out + " tracking delta:" + (Time.now - start_time).to_s if $VERBOSE
208
+ puts '', 'got new screen time ' + out + " (+ tracking delta:" + (Time.now - start_time).to_s + ")" if $VERBOSE
215
209
  return out, Time.now-start_time
216
210
  end
217
211
 
data/lib/swing_helpers.rb CHANGED
@@ -64,5 +64,16 @@ module SensibleSwing
64
64
  end
65
65
  end
66
66
 
67
+ require 'os'
68
+ class String
69
+ def to_filename
70
+ if OS.windows?
71
+ self.gsub('/', "\\")
72
+ else
73
+ self
74
+ end
75
+ end
76
+ end
77
+
67
78
  # code examples
68
79
  # JOptionPane.showInputDialog(nil, "not implemented yet", "not implemented yet", JOptionPane::ERROR_MESSAGE)
@@ -111,7 +111,7 @@ class VLCProgrammer
111
111
  <location>#{loc}</location>
112
112
  </track>"
113
113
  else
114
- "vlc.exe --qt-start-minimized #{loc} --start-time=#{start} --stop-time=#{stop} --sout=\"file/ps:#{@filename_or_playlist_if_nil}.ps.#{idx}\" #{"--no-sout-audio" if no_audio} vlc://quit\n" # +
114
+ "vlc --qt-start-minimized #{loc} --start-time=#{start} --stop-time=#{stop} --sout=\"file/ps:#{@filename_or_playlist_if_nil}.ps.#{idx}\" #{"--no-sout-audio" if no_audio} vlc://quit\n" # +
115
115
  #"call vlc #{@filename_or_playlist_if_nil}.ps.#{idx}.tmp --sout=file/ps:go.ps
116
116
  end
117
117
  end
@@ -0,0 +1,5 @@
1
+ @setlocal
2
+ @rem disable any local rubyopt settings...
3
+ @set RUBYOPT=
4
+ @echo This window will display lots of debug message output!
5
+ @cd sensible-cinema && java -cp "./vendor/cache/jruby-complete-1.5.5.jar" org.jruby.Main bin\sensible-cinema || echo you need to install java first!
@@ -1,182 +1,163 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sensible-cinema}
8
- s.version = "0.14.4"
8
+ s.version = "0.14.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roger Pack"]
12
- s.date = %q{2010-11-23}
12
+ s.date = %q{2010-11-24}
13
13
  s.email = %q{rogerdpack@gmail.com}
14
14
  s.executables = ["sensible-cinema", "sensible-cinema-cli"]
15
15
  s.extensions = ["ext/mkrf_conf.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "ChangeLog",
18
- "LICENSE",
19
- "README",
20
- "TODO"
18
+ "LICENSE",
19
+ "README",
20
+ "TODO"
21
21
  ]
22
22
  s.files = [
23
23
  "ChangeLog",
24
- "LICENSE",
25
- "README",
26
- "Rakefile",
27
- "TODO",
28
- "VERSION",
29
- "bin/sensible-cinema",
30
- "bin/sensible-cinema-cli",
31
- "ext/mkrf_conf.rb",
32
- "gplv3.txt",
33
- "lib/blanker.rb",
34
- "lib/fake_blanker.rb",
35
- "lib/file_chooser.rb",
36
- "lib/keyboard_input.rb",
37
- "lib/mouse.rb",
38
- "lib/mouse_forever.rb",
39
- "lib/muter.rb",
40
- "lib/ocr.rb",
41
- "lib/overlayer.rb",
42
- "lib/screen_tracker.rb",
43
- "lib/swing_helpers.rb",
44
- "lib/vlc_programmer.rb",
45
- "never_do",
46
- "sensible-cinema.gemspec",
47
- "spec/blanker.spec.rb",
48
- "spec/common.rb",
49
- "spec/convert_image.rb",
50
- "spec/images/black.bmp",
51
- "spec/images/colon.bmp",
52
- "spec/images/hulu_0.bmp",
53
- "spec/images/hulu_2.bmp",
54
- "spec/images/hulu_2_3.bmp",
55
- "spec/images/hulu_2_4.bmp",
56
- "spec/images/hulu_3.bmp",
57
- "spec/images/hulu_3_4.bmp",
58
- "spec/images/hulu_4.bmp",
59
- "spec/images/hulu_4_4.bmp",
60
- "spec/images/hulu_5.bmp",
61
- "spec/images/hulu_7.bmp",
62
- "spec/images/hulu_8.bmp",
63
- "spec/images/hulu_slash.bmp",
64
- "spec/images/vlc_0.bmp",
65
- "spec/images/vlc_2_4.bmp",
66
- "spec/images/vlc_2_6.bmp",
67
- "spec/images/vlc_4.bmp",
68
- "spec/images/vlc_5.bmp",
69
- "spec/images/vlc_6.bmp",
70
- "spec/images/vlc_9.bmp",
71
- "spec/images/vlc_colon.bmp",
72
- "spec/images/youtube_0.bmp",
73
- "spec/images/youtube_1.bmp",
74
- "spec/images/youtube_2_0.bmp",
75
- "spec/images/youtube_2_5.bmp",
76
- "spec/images/youtube_2_6.bmp",
77
- "spec/images/youtube_3_0.bmp",
78
- "spec/images/youtube_4.bmp",
79
- "spec/images/youtube_4_0.bmp",
80
- "spec/images/youtube_5.bmp",
81
- "spec/images/youtube_6.bmp",
82
- "spec/images/youtube_light_0.bmp",
83
- "spec/images/youtube_light_1_3.bmp",
84
- "spec/images/youtube_light_2_1.bmp",
85
- "spec/images/youtube_light_2_3.bmp",
86
- "spec/images/youtube_light_2_9.bmp",
87
- "spec/images/youtube_light_4.bmp",
88
- "spec/images/youtube_light_4_3.bmp",
89
- "spec/images/youtube_light_5.bmp",
90
- "spec/images/youtube_light_5_0.bmp",
91
- "spec/images/youtube_light_8.bmp",
92
- "spec/images/youtube_light_9.bmp",
93
- "spec/images/youtube_small_0.bmp",
94
- "spec/images/youtube_small_2.bmp",
95
- "spec/images/youtube_small_2_0.bmp",
96
- "spec/images/youtube_small_4.bmp",
97
- "spec/keyboard_input.spec.rb",
98
- "spec/mouse.spec.rb",
99
- "spec/muter.spec.rb",
100
- "spec/ocr.spec.rb",
101
- "spec/overlayer.spec.rb",
102
- "spec/screen_tracker.spec.rb",
103
- "spec/silence.wav",
104
- "spec/swing_helpers.spec.rb",
105
- "spec/test_yaml.yml",
106
- "spec/vlc_programmer.spec.rb",
107
- "vendor/gocr049.exe",
108
- "vendor/imagemagick/CORE_RL_Magick++_.dll",
109
- "vendor/imagemagick/CORE_RL_bzlib_.dll",
110
- "vendor/imagemagick/CORE_RL_jbig_.dll",
111
- "vendor/imagemagick/CORE_RL_jp2_.dll",
112
- "vendor/imagemagick/CORE_RL_jpeg_.dll",
113
- "vendor/imagemagick/CORE_RL_lcms_.dll",
114
- "vendor/imagemagick/CORE_RL_libxml_.dll",
115
- "vendor/imagemagick/CORE_RL_magick_.dll",
116
- "vendor/imagemagick/CORE_RL_png_.dll",
117
- "vendor/imagemagick/CORE_RL_tiff_.dll",
118
- "vendor/imagemagick/CORE_RL_ttf_.dll",
119
- "vendor/imagemagick/CORE_RL_wand_.dll",
120
- "vendor/imagemagick/CORE_RL_xlib_.dll",
121
- "vendor/imagemagick/CORE_RL_zlib_.dll",
122
- "vendor/imagemagick/X11.dll",
123
- "vendor/imagemagick/Xext.dll",
124
- "vendor/imagemagick/atl90.dll",
125
- "vendor/imagemagick/convert.exe",
126
- "vendor/imagemagick/identify.exe",
127
- "vendor/imagemagick/mfc90.dll",
128
- "vendor/imagemagick/msvcp90.dll",
129
- "vendor/imagemagick/msvcr90.dll",
130
- "vendor/imagemagick/vcomp90.dll",
131
- "zamples/players/how_to_create_more_players.txt",
132
- "zamples/players/hulu/total_length_over_an_hour.txt",
133
- "zamples/players/vlc/full_screened_total_length_over_an_hour.txt",
134
- "zamples/players/vlc/windowed_total_length_over_an_hour.txt",
135
- "zamples/players/vlc/windowed_total_length_under_an_hour.txt",
136
- "zamples/players/youtube/full_screened_1024x768.txt",
137
- "zamples/players/youtube/full_screened_1152x864.txt",
138
- "zamples/players/youtube/full_screened_1680x1050.txt",
139
- "zamples/players/youtube/normal_in_youtube.com.chrome.txt",
140
- "zamples/players/youtube/note_these_assume_less_than_10_minutes_length.txt",
141
- "zamples/scene_lists/category descriptions.txt",
142
- "zamples/scene_lists/dvds/White Christmas.txt",
143
- "zamples/scene_lists/dvds/all_dogs_go_to_heaven_dvd.txt",
144
- "zamples/scene_lists/dvds/bobs_big_plan.txt",
145
- "zamples/scene_lists/dvds/cars_disney.txt",
146
- "zamples/scene_lists/dvds/happy_feet_dvd.txt",
147
- "zamples/scene_lists/dvds/labyrinth.txt",
148
- "zamples/scene_lists/dvds/making marriage work.txt",
149
- "zamples/scene_lists/example_scene_descriptions_list.txt",
150
- "zamples/scene_lists/star_trek_generations_hulu.txt",
151
- "zamples/scene_lists/youtube/gummy_bear_song_youtube.txt",
152
- "zamples/scene_lists/youtube/nuki_song_youtube.txt"
24
+ "LICENSE",
25
+ "README",
26
+ "Rakefile",
27
+ "TODO",
28
+ "VERSION",
29
+ "bin/sensible-cinema",
30
+ "bin/sensible-cinema-cli",
31
+ "ext/mkrf_conf.rb",
32
+ "gplv3.txt",
33
+ "lib/blanker.rb",
34
+ "lib/fake_blanker.rb",
35
+ "lib/file_chooser.rb",
36
+ "lib/keyboard_input.rb",
37
+ "lib/mouse.rb",
38
+ "lib/mouse_forever.rb",
39
+ "lib/muter.rb",
40
+ "lib/ocr.rb",
41
+ "lib/overlayer.rb",
42
+ "lib/screen_tracker.rb",
43
+ "lib/swing_helpers.rb",
44
+ "lib/vlc_programmer.rb",
45
+ "never_do",
46
+ "run_sensible_cinema.bat",
47
+ "sensible-cinema.gemspec",
48
+ "spec/blanker.spec.rb",
49
+ "spec/common.rb",
50
+ "spec/convert_image.rb",
51
+ "spec/images/black.bmp",
52
+ "spec/images/colon.bmp",
53
+ "spec/images/hulu_0.bmp",
54
+ "spec/images/hulu_2.bmp",
55
+ "spec/images/hulu_2_3.bmp",
56
+ "spec/images/hulu_2_4.bmp",
57
+ "spec/images/hulu_3.bmp",
58
+ "spec/images/hulu_3_4.bmp",
59
+ "spec/images/hulu_4.bmp",
60
+ "spec/images/hulu_4_4.bmp",
61
+ "spec/images/hulu_5.bmp",
62
+ "spec/images/hulu_7.bmp",
63
+ "spec/images/hulu_8.bmp",
64
+ "spec/images/hulu_slash.bmp",
65
+ "spec/images/vlc_0.bmp",
66
+ "spec/images/vlc_2_4.bmp",
67
+ "spec/images/vlc_2_6.bmp",
68
+ "spec/images/vlc_4.bmp",
69
+ "spec/images/vlc_5.bmp",
70
+ "spec/images/vlc_6.bmp",
71
+ "spec/images/vlc_9.bmp",
72
+ "spec/images/vlc_colon.bmp",
73
+ "spec/images/youtube_0.bmp",
74
+ "spec/images/youtube_1.bmp",
75
+ "spec/images/youtube_2_0.bmp",
76
+ "spec/images/youtube_2_5.bmp",
77
+ "spec/images/youtube_2_6.bmp",
78
+ "spec/images/youtube_3_0.bmp",
79
+ "spec/images/youtube_4.bmp",
80
+ "spec/images/youtube_4_0.bmp",
81
+ "spec/images/youtube_5.bmp",
82
+ "spec/images/youtube_6.bmp",
83
+ "spec/images/youtube_light_0.bmp",
84
+ "spec/images/youtube_light_1_3.bmp",
85
+ "spec/images/youtube_light_2_1.bmp",
86
+ "spec/images/youtube_light_2_3.bmp",
87
+ "spec/images/youtube_light_2_9.bmp",
88
+ "spec/images/youtube_light_4.bmp",
89
+ "spec/images/youtube_light_4_3.bmp",
90
+ "spec/images/youtube_light_5.bmp",
91
+ "spec/images/youtube_light_5_0.bmp",
92
+ "spec/images/youtube_light_8.bmp",
93
+ "spec/images/youtube_light_9.bmp",
94
+ "spec/images/youtube_small_0.bmp",
95
+ "spec/images/youtube_small_2.bmp",
96
+ "spec/images/youtube_small_2_0.bmp",
97
+ "spec/images/youtube_small_4.bmp",
98
+ "spec/keyboard_input.spec.rb",
99
+ "spec/mouse.spec.rb",
100
+ "spec/muter.spec.rb",
101
+ "spec/ocr.spec.rb",
102
+ "spec/overlayer.spec.rb",
103
+ "spec/screen_tracker.spec.rb",
104
+ "spec/silence.wav",
105
+ "spec/swing_helpers.spec.rb",
106
+ "spec/test_yaml.yml",
107
+ "spec/vlc_programmer.spec.rb",
108
+ "todo_if_need_speed",
109
+ "vendor/gocr049.exe",
110
+ "zamples/edit_decision_lists/category descriptions.txt",
111
+ "zamples/edit_decision_lists/dvds/White Christmas.txt",
112
+ "zamples/edit_decision_lists/dvds/all_dogs_go_to_heaven_dvd.txt",
113
+ "zamples/edit_decision_lists/dvds/bobs_big_plan.txt",
114
+ "zamples/edit_decision_lists/dvds/cars_disney.txt",
115
+ "zamples/edit_decision_lists/dvds/happy_feet_dvd.txt",
116
+ "zamples/edit_decision_lists/dvds/labyrinth.txt",
117
+ "zamples/edit_decision_lists/dvds/making marriage work.txt",
118
+ "zamples/edit_decision_lists/example_edit_decision_list.txt",
119
+ "zamples/edit_decision_lists/star_trek_generations_hulu.txt",
120
+ "zamples/edit_decision_lists/youtube/gummy_bear_song_youtube.txt",
121
+ "zamples/edit_decision_lists/youtube/nuki_song_youtube.txt",
122
+ "zamples/players/how_to_create_more_players.txt",
123
+ "zamples/players/hulu/total_length_over_an_hour.txt",
124
+ "zamples/players/vlc/full_screened_total_length_over_an_hour.txt",
125
+ "zamples/players/vlc/windowed_total_length_over_an_hour.txt",
126
+ "zamples/players/vlc/windowed_total_length_under_an_hour.txt",
127
+ "zamples/players/youtube/full_screened_1024x768.txt",
128
+ "zamples/players/youtube/full_screened_1152x864.txt",
129
+ "zamples/players/youtube/full_screened_1680x1050.txt",
130
+ "zamples/players/youtube/normal_in_youtube.com.chrome.txt",
131
+ "zamples/players/youtube/note_these_assume_less_than_10_minutes_length.txt"
153
132
  ]
154
133
  s.homepage = %q{http://github.com/rdp}
134
+ s.rdoc_options = ["--charset=UTF-8"]
155
135
  s.require_paths = ["lib"]
156
- s.rubygems_version = %q{1.3.6}
136
+ s.rubygems_version = %q{1.3.7}
157
137
  s.summary = %q{an EDL scene-selector/bleeper that works with online players like hulu}
158
138
  s.test_files = [
159
139
  "spec/blanker.spec.rb",
160
- "spec/common.rb",
161
- "spec/convert_image.rb",
162
- "spec/keyboard_input.spec.rb",
163
- "spec/mouse.spec.rb",
164
- "spec/muter.spec.rb",
165
- "spec/ocr.spec.rb",
166
- "spec/overlayer.spec.rb",
167
- "spec/screen_tracker.spec.rb",
168
- "spec/swing_helpers.spec.rb",
169
- "spec/vlc_programmer.spec.rb"
140
+ "spec/common.rb",
141
+ "spec/convert_image.rb",
142
+ "spec/keyboard_input.spec.rb",
143
+ "spec/mouse.spec.rb",
144
+ "spec/muter.spec.rb",
145
+ "spec/ocr.spec.rb",
146
+ "spec/overlayer.spec.rb",
147
+ "spec/screen_tracker.spec.rb",
148
+ "spec/swing_helpers.spec.rb",
149
+ "spec/vlc_programmer.spec.rb"
170
150
  ]
171
151
 
172
152
  if s.respond_to? :specification_version then
173
153
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
174
154
  s.specification_version = 3
175
155
 
176
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
156
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
177
157
  s.add_runtime_dependency(%q<sane>, [">= 0.22.0"])
178
158
  s.add_runtime_dependency(%q<rdp-win32screenshot>, [">= 0.0.7.3"])
179
159
  s.add_runtime_dependency(%q<mini_magick>, [">= 3.1"])
160
+ s.add_runtime_dependency(%q<whichr>, [">= 0.3.6"])
180
161
  s.add_runtime_dependency(%q<jruby-win32ole>, [">= 0"])
181
162
  s.add_runtime_dependency(%q<rdp-ruby-wmi>, [">= 0"])
182
163
  s.add_runtime_dependency(%q<ffi>, [">= 0"])
@@ -187,6 +168,7 @@ Gem::Specification.new do |s|
187
168
  s.add_dependency(%q<sane>, [">= 0.22.0"])
188
169
  s.add_dependency(%q<rdp-win32screenshot>, [">= 0.0.7.3"])
189
170
  s.add_dependency(%q<mini_magick>, [">= 3.1"])
171
+ s.add_dependency(%q<whichr>, [">= 0.3.6"])
190
172
  s.add_dependency(%q<jruby-win32ole>, [">= 0"])
191
173
  s.add_dependency(%q<rdp-ruby-wmi>, [">= 0"])
192
174
  s.add_dependency(%q<ffi>, [">= 0"])
@@ -198,6 +180,7 @@ Gem::Specification.new do |s|
198
180
  s.add_dependency(%q<sane>, [">= 0.22.0"])
199
181
  s.add_dependency(%q<rdp-win32screenshot>, [">= 0.0.7.3"])
200
182
  s.add_dependency(%q<mini_magick>, [">= 3.1"])
183
+ s.add_dependency(%q<whichr>, [">= 0.3.6"])
201
184
  s.add_dependency(%q<jruby-win32ole>, [">= 0"])
202
185
  s.add_dependency(%q<rdp-ruby-wmi>, [">= 0"])
203
186
  s.add_dependency(%q<ffi>, [">= 0"])
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/common')
2
-
2
+ require 'os'
3
3
  require_relative '../lib/swing_helpers'
4
4
  module SensibleSwing
5
5
  describe SensibleSwing do
@@ -13,6 +13,15 @@ describe SensibleSwing do
13
13
  #dialog.dispose # should get here :P
14
14
  # let them close it :P
15
15
  end
16
+
17
+ it "should be able to convert filenames well" do
18
+ if OS.windows?
19
+ "a/b/c".to_filename.should == "a\\b\\c"
20
+ else
21
+ "a/b/c".to_filename.should == "a/b/c"
22
+ end
23
+ end
16
24
 
17
25
  end
18
- end
26
+ end
27
+ puts 'close the windows...'
@@ -5,7 +5,7 @@ require_relative '../lib/vlc_programmer'
5
5
  describe 'VLC Programmer' do
6
6
 
7
7
  it "should be able to convert" do
8
- a = YAML.load_file "../zamples/scene_lists/dvds/happy_feet_dvd.txt"
8
+ a = YAML.load_file "../zamples/edit_decision_lists/dvds/happy_feet_dvd.txt"
9
9
  out = VLCProgrammer.convert_to_full_xspf(a)
10
10
  out.length.should_not == 0
11
11
  out.should include("<title>Playlist</title>")
@@ -0,0 +1,6 @@
1
+ --server? optionally higher process prio?
2
+ convert to real java?
3
+ when polling for bmp changes, just use two thin lines (if needed speed-wise?)
4
+ call straight into GOCR [?]
5
+ some funky video mirror so I can get bitmaps like in realtime [?]
6
+ profile, optimize :P
@@ -6,4 +6,4 @@ blank_outs:
6
6
 
7
7
  title: All Dogs Go to Heaven
8
8
  source: DVD/vlc
9
- not_listed: a good quantity of name calling like "moron"
9
+ not_yet_listed: a good quantity of name calling "moron", a scary dream where Charly is shown pergatory.
@@ -1,9 +1,12 @@
1
1
  mutes:
2
2
  "1" : "1:06" # theme song is a bit raucous
3
3
  "48:46" : "49:08" # theme song again
4
+ "29:14" : "30:46" # theme song yikes.
4
5
  blank_outs:
5
6
  # none
6
7
 
7
8
  title: Bob's Big Plan
8
9
  source: DVD (vlc)
9
- dvd_title_track: 1
10
+ dvd_title_track: 1
11
+
12
+ other_notes: could use more differentiation, as I don't dislike *all* the music.
@@ -6,7 +6,7 @@ Use the others are examples
6
6
  Some tips:
7
7
 
8
8
  use WinCheat to help with window names (under "Text") (alt+tab helps, too, since it displays titles).
9
- run scene-skipper with 'test' for the scene description filename: it will dump a screenshot using the player description
9
+ run scene-skipper with 'test' for the Edit Decision List filename: it will dump a screenshot using the player description
10
10
  use Paint.net to examine the dumped graphic and get coords (invert it to get easy negative coords).
11
11
 
12
12
  NB that the clock coords can have negative start offsets, which mean "distance from the bottom right corner"