Class: Hydra::Derivatives::Processors::Video::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/derivatives/processors/video/config.rb

Defined Under Namespace

Classes: CodecConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#audio_attributesObject



17
18
19
# File 'lib/hydra/derivatives/processors/video/config.rb', line 17

def audio_attributes
  @audio_attributes ||= default_audio_attributes
end

#size_attributesObject



13
14
15
# File 'lib/hydra/derivatives/processors/video/config.rb', line 13

def size_attributes
  @size_attributes ||= default_size_attributes
end

#video_attributesObject



9
10
11
# File 'lib/hydra/derivatives/processors/video/config.rb', line 9

def video_attributes
  @video_attributes ||= default_video_attributes
end

#video_bitrateObject



5
6
7
# File 'lib/hydra/derivatives/processors/video/config.rb', line 5

def video_bitrate
  @video_bitrate ||= default_video_bitrate
end

Instance Method Details

#jpegObject



34
35
36
# File 'lib/hydra/derivatives/processors/video/config.rb', line 34

def jpeg
  @jpeg ||= CodecConfig.new('-vcodec mjpeg')
end

#mkvObject



30
31
32
# File 'lib/hydra/derivatives/processors/video/config.rb', line 30

def mkv
  @mkv ||= CodecConfig.new('-vcodec ffv1')
end

#mpeg4Object



21
22
23
24
# File 'lib/hydra/derivatives/processors/video/config.rb', line 21

def mpeg4
  audio_encoder = Hydra::Derivatives::AudioEncoder.new
  @mpeg4 ||= CodecConfig.new("-vcodec libx264 -acodec #{audio_encoder.audio_encoder}")
end

#webmObject



26
27
28
# File 'lib/hydra/derivatives/processors/video/config.rb', line 26

def webm
  @webm ||= CodecConfig.new('-vcodec libvpx -acodec libvorbis')
end