Class: Mkv2m4v::Transcoder

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

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}) ⇒ Transcoder

Returns a new instance of Transcoder.



8
9
10
11
# File 'lib/mkv2m4v/transcoder.rb', line 8

def initialize(file, options = {})
  @file = file
  @options = options
end

Instance Method Details

#runObject



13
14
15
16
17
18
19
20
21
# File 'lib/mkv2m4v/transcoder.rb', line 13

def run
  setup
  extract
  transcode_avc
  transcode_aac
  transcode_ac3
  remux
  cleanup
end