2009-03-08から1日間の記事一覧

Rubyでflvからmp3を抜き取ってみた

余計な機能がついてるのは別のライブラリの一部として作ったため require 'stringio' StringIO.class_eval do def read_format(size, format) bin = read(size) bin = "\000" + bin if size == 3 bin.unpack(format).first end end module Video class Wrong…