Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
bugfix: ffmpeg cutting files at 90mins (on my mac), lame working... p…
Browse files Browse the repository at this point in the history
…refer lame
  • Loading branch information
matthewfallshaw committed May 17, 2010
1 parent 769e40a commit 647806b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/podcast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ def to_slow_wav
# lame --silent --decode <mp3> <slow-wav>
filename = tempfile_path("slow.wav")
File.open(path, 'r') do |f|
case
when f.stat.size > 200,000,000
cmd("ffmpeg -i #{safe_path} -f wav #{filename}")
else
cmd("lame --silent --decode #{safe_path} #{filename}")
end
cmd("lame --silent --decode #{safe_path} #{filename}")
end
return filename
end
Expand Down

0 comments on commit 647806b

Please sign in to comment.