Closed GoogleCodeExporter closed 7 years ago
I can confirm this. manual flac encode of the resulting wav files works fine,
but rubyripper itself creates tiny 1 second encodings.
Original comment by rasmus.s...@gmail.com
on 12 Jun 2013 at 4:32
Unfortunately this is becoming a significant defect as flac-1.3 starts to
become the default version.
(at best here can get 5 sec.'s
Original comment by mc631man
on 27 Jul 2013 at 6:46
I confirm that the issue exists but don't have a good solution at the moment.
It seems to be tied to a change in the console output of flac-1.3 interacting
badly with IO.each. Namely, where 1.2.1 and below used a carriage return to
update the encoding progress in the console, 1.3 uses backspace characters,
which apparently fails quietly when IO.each is used, perhaps because due to
behavior with a filled pipe.
At the moment, a workaround would be to change the flac executable to be
invoked with the "-s" flag (which stops printing the output of the encoding
progress) by patching the definition of "binary" in
lib/rubyripper/codecs/flac.rb to return "flac -s" instead of "flac". This
isn't a good long-term solution, however, which would require reworking the
definition of "launch" in lib/rubyripper/system/execute.rb to do something
other than "stdin.each" in the block passed to PTY.spawn.
Original comment by comradec...@gmail.com
on 11 Aug 2013 at 7:50
More of a heads up than anything.
I just used this on Debian Jessie and I encountered the same problem (using the stable branch). Luckily, the quick fix from 3 years ago still worked after I edited the source file.
Hello, I'm using flac 1.3.1 with master branch without problems. I do not currently recommend using stable branch with this fork because the stable branch is very old (around 4 years). The code was abandoned several years ago and I have made a number of fixes on the main branch.
If you have time and energy, please test the latest version on the main branch and confirm that the bug is fixed (this would give me an excuse to close this issue as fixed; I would have an external confirmation that this works...)
I just cloned the git and use flac 1.3.1. I ripped a song to flac successfully.
Working fine with flac 1.3.1 and ruby 1.9.
Closed because it seems the problem has been fixed in the latest version.
Original issue reported on code.google.com by
mc631man
on 12 May 2013 at 5:50Attachments: