Class: Taifu::Util

Inherits:
Object
  • Object
show all
Defined in:
lib/taifu/util.rb

Class Method Summary collapse

Class Method Details

.convert_flv_to_wav(flv_path, wav_path) ⇒ Object



8
9
10
# File 'lib/taifu/util.rb', line 8

def self.convert_flv_to_wav(flv_path, wav_path)
  system "ffmpeg -i #{flv_path} #{wav_path} 2>/dev/null"
end

.save_flv_from_url(url, flv_path) ⇒ Object



4
5
6
# File 'lib/taifu/util.rb', line 4

def self.save_flv_from_url(url, flv_path)
  system "youtube-dl -q #{url} -o #{flv_path}"
end