module CarrierWave::Ffmpeg::Audio
Constants
- VERSION
Public Instance Methods
convert(options={})
click to toggle source
# File lib/carrierwave/ffmpeg/audio.rb, line 20 def convert options={} cache_stored_file! if !cached? audio_filename = Processor.convert(current_path, options) File.rename audio_filename, current_path self.file.instance_variable_set(:@content_type, "audio/mpeg3") end
watermark(options={})
click to toggle source
# File lib/carrierwave/ffmpeg/audio.rb, line 28 def watermark options={} cache_stored_file! if !cached? audio_filename = Processor.watermark(current_path, options) File.rename audio_filename, current_path self.file.instance_variable_set(:@content_type, "audio/mpeg3") end