Class: Hydra::Derivatives::Processors::Video::Config
- Inherits:
-
Object
- Object
- Hydra::Derivatives::Processors::Video::Config
- Defined in:
- lib/hydra/derivatives/processors/video/config.rb
Defined Under Namespace
Classes: CodecConfig
Instance Attribute Summary collapse
- #audio_attributes ⇒ Object
- #size_attributes ⇒ Object
- #video_attributes ⇒ Object
- #video_bitrate ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#audio_attributes ⇒ Object
17 18 19 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 17 def audio_attributes @audio_attributes ||= default_audio_attributes end |
#size_attributes ⇒ Object
13 14 15 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 13 def size_attributes @size_attributes ||= default_size_attributes end |
#video_attributes ⇒ Object
9 10 11 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 9 def video_attributes @video_attributes ||= default_video_attributes end |
#video_bitrate ⇒ Object
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
#jpeg ⇒ Object
33 34 35 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 33 def jpeg @jpeg ||= CodecConfig.new('-vcodec mjpeg') end |
#mkv ⇒ Object
29 30 31 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 29 def mkv @mkv ||= CodecConfig.new('-vcodec ffv1') end |
#mpeg4 ⇒ Object
21 22 23 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 21 def mpeg4 @mpeg4 ||= CodecConfig.new('-vcodec libx264 -acodec libfdk_aac') end |
#webm ⇒ Object
25 26 27 |
# File 'lib/hydra/derivatives/processors/video/config.rb', line 25 def webm @webm ||= CodecConfig.new('-vcodec libvpx -acodec libvorbis') end |