lib/hydra/derivatives/processors/video/config.rb in hydra-derivatives-3.2.1 vs lib/hydra/derivatives/processors/video/config.rb in hydra-derivatives-3.2.2

- old
+ new

@@ -17,10 +17,11 @@ def audio_attributes @audio_attributes ||= default_audio_attributes end def mpeg4 - @mpeg4 ||= CodecConfig.new('-vcodec libx264 -acodec libfdk_aac') + audio_encoder = Hydra::Derivatives::AudioEncoder.new + @mpeg4 ||= CodecConfig.new("-vcodec libx264 -acodec #{audio_encoder.audio_encoder}") end def webm @webm ||= CodecConfig.new('-vcodec libvpx -acodec libvorbis') end