class Taifu::Util
Public Class Methods
convert_flv_to_wav(flv_path, wav_path)
click to toggle source
# 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)
click to toggle source
# 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