From: Colin Patrick McCabe Date: Sat, 3 Apr 2010 08:58:02 +0000 (-0700) Subject: superrip: Be less verbose in flac and lame programs X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49eda4c2fc082d2912c1adcfa0e06c9e3dbe550e;p=cmccabe-bin superrip: Be less verbose in flac and lame programs --- diff --git a/superrip.rb b/superrip.rb index a2071e5..9c5caec 100755 --- a/superrip.rb +++ b/superrip.rb @@ -61,14 +61,16 @@ def audiorip(tnum, track) # TODO: spawn a thread to do this stuff in the background FileUtils.mkdir_p(track.flac_dir, $fu_args) - my_system("flac -f '#{track.wav_file_name}' --output-name='#{track.flac_file_name}'") + my_system("flac -f '#{track.wav_file_name}' \ +--output-name='#{track.flac_file_name}' &>/dev/null") begin - my_system("flac --test '#{track.flac_file_name}'") + my_system("flac --test '#{track.flac_file_name}' &>/dev/null") rescue raise "failed to encode #{track.flac_file_name}" end FileUtils.mkdir_p(track.mp3_dir, $fu_args) - my_system("lame -q 1 -b 192 '#{track.wav_file_name}' '#{track.mp3_file_name}'") + my_system("lame -q 1 -b 192 '#{track.wav_file_name}' \ +'#{track.mp3_file_name}' &>/dev/null") FileUtils.rm_f(track.wav_file_name, $fu_args) end