Class: DragonflyVideo::Processors::RemoveAudio

Inherits:
BaseProcessor show all
Defined in:
lib/dragonfly_video/processors/remove_audio.rb

Constant Summary

Constants inherited from BaseProcessor

BaseProcessor::FFMPEG_COMMAND

Instance Method Summary collapse

Instance Method Details

#call(content, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/dragonfly_video/processors/remove_audio.rb', line 8

def call(content, options = {})
  content.shell_update do |old_path, new_path|
    "#{FFMPEG_COMMAND} -i #{old_path} -c copy -an -y #{new_path}"
  end
end