Open GoogleCodeExporter opened 8 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 mc631...@gmail.com
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
Original issue reported on code.google.com by
mc631...@gmail.com
on 12 May 2013 at 5:50Attachments: