Class: VCSRuby::Video

Inherits:
Object
  • Object
show all
Defined in:
lib/video.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



7
8
9
# File 'lib/video.rb', line 7

def config
  @config
end

Instance Method Details

#audioObject



30
31
32
# File 'lib/video.rb', line 30

def audio
  capturer.audio_streams.first
end

#audio_streamsObject



34
35
36
# File 'lib/video.rb', line 34

def audio_streams
  capturer.audio_streams
end

#capturer_nameObject



50
51
52
# File 'lib/video.rb', line 50

def capturer_name
  capturer.name
end

#contact_sheetObject



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_pathObject



38
39
40
# File 'lib/video.rb', line 38

def full_path
  File.join(@path, @filename)
end

#infoObject



18
19
20
# File 'lib/video.rb', line 18

def info
  capturer.info
end

#valid?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/video.rb', line 14

def valid?
  capturer.file_valid?
end

#videoObject



22
23
24
# File 'lib/video.rb', line 22

def video
  capturer.video_streams.first
end

#video_streamsObject



26
27
28
# File 'lib/video.rb', line 26

def video_streams
  capturer.video_streams
end