Module: VideoTranscoding::MP4track

Extended by:
MP4track
Included in:
MP4track
Defined in:
lib/video_transcoding/mp4track.rb

Constant Summary collapse

COMMAND_NAME =
'mp4track'

Instance Method Summary collapse

Instance Method Details

#command_nameObject



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

def command_name
  Tool.use(COMMAND_NAME)
end

#setupObject



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/video_transcoding/mp4track.rb', line 13

def setup
  Tool.provide(COMMAND_NAME, ['--version']) do |output, status, _|
    fail "#{COMMAND_NAME} failed during execution" unless status == 0

    unless output =~ /^mp4track - MP4v2 .*/
      Console.debug output
      fail "#{COMMAND_NAME} version unknown"
    end

    Console.info "#{$MATCH} found..."
  end
end