Class: VCSRuby::Video
- Inherits:
-
Object
- Object
- VCSRuby::Video
- Defined in:
- lib/video.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #audio ⇒ Object
- #audio_streams ⇒ Object
- #capturer_name ⇒ Object
- #contact_sheet ⇒ Object
- #frame(time_index) ⇒ Object
- #full_path ⇒ Object
- #info ⇒ Object
-
#initialize(video) ⇒ Video
constructor
A new instance of Video.
- #valid? ⇒ Boolean
- #video ⇒ Object
- #video_streams ⇒ Object
Constructor Details
#initialize(video) ⇒ Video
Returns a new instance of Video.
9 10 11 12 |
# File 'lib/video.rb', line 9 def initialize video initialize_filename video initialize_capturers end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/video.rb', line 7 def config @config end |
Instance Method Details
#audio ⇒ Object
30 31 32 |
# File 'lib/video.rb', line 30 def audio capturer.audio_streams.first end |
#audio_streams ⇒ Object
34 35 36 |
# File 'lib/video.rb', line 34 def audio_streams capturer.audio_streams end |
#capturer_name ⇒ Object
50 51 52 |
# File 'lib/video.rb', line 50 def capturer_name capturer.name end |
#contact_sheet ⇒ Object
42 43 44 |
# File 'lib/video.rb', line 42 def contact_sheet @contact_sheet ||= ContactSheet.new self, capturer end |
#frame(time_index) ⇒ Object
46 47 48 |
# File 'lib/video.rb', line 46 def frame time_index return Frame.new self, capturer, time_index end |
#full_path ⇒ Object
38 39 40 |
# File 'lib/video.rb', line 38 def full_path File.join(@path, @filename) end |
#info ⇒ Object
18 19 20 |
# File 'lib/video.rb', line 18 def info capturer.info end |
#valid? ⇒ Boolean
14 15 16 |
# File 'lib/video.rb', line 14 def valid? capturer.file_valid? end |
#video ⇒ Object
22 23 24 |
# File 'lib/video.rb', line 22 def video capturer.video_streams.first end |
#video_streams ⇒ Object
26 27 28 |
# File 'lib/video.rb', line 26 def video_streams capturer.video_streams end |