MP4Info Initial Release

Hello Rubyists,

I would like to announce the release of my first Ruby project:
MP4Info. Please use and abuse the library and please give me any
hints, tips and tricks to make a better mousetrap; I haven’t been in
the Ruby game for long.

Briefly, MP4Info supports the reading of tags and file info from MP4
audio files and is based on the Perl module MP4::Info
(search.cpan.org/~jhar/MP4-Info/). For more information please visit
the MP4Info RubyForge site at http://rubyforge.org/projects/mp4info/
and the RDocs at http://mp4info.rubyforge.org/

Note that Unicode tags are not correctly read; any tips on this matter
would be greatly appreciated.

Thanks for your time and your interest in MP4Info,
-Jason Terk

Jason Terk wrote:

Hello Rubyists,

I would like to announce the release of my first Ruby project:
MP4Info. Please use and abuse the library and please give me any
hints, tips and tricks to make a better mousetrap; I haven’t been in
the Ruby game for long.

Briefly, MP4Info supports the reading of tags and file info from MP4
audio files and is based on the Perl module MP4::Info
(MP4-Info-1.13 - Fetch info from MPEG-4 files (.mp4, .m4a, .m4p, .3gp) - metacpan.org). For more information please visit
the MP4Info RubyForge site at http://rubyforge.org/projects/mp4info/
and the RDocs at http://mp4info.rubyforge.org/

Note that Unicode tags are not correctly read; any tips on this matter
would be greatly appreciated.

Thanks for your time and your interest in MP4Info,
-Jason Terk

Thii is something I was looking for, but it doesn work for me :-/ I have
one-click installed ruby on my system WinXP 32bit, only gem I have
downloaded was MP4Info

when I try provided test I get 3 errors:
D:\dev\ruby\lib\ruby\gems\1.8\gems\MP4Info-0.3.3\test>ruby test.rb
Loaded suite test
Started
FEEE
Finished in 0.047 seconds.

  1. Failure:
    test_faac(TestMP4Info)
    [test.rb:68:in `test_faac’
    test.rb:67:in `each’
    test.rb:67:in `test_faac’]:
    <8> expected but was
    .

  2. Error:
    test_itunes(TestMP4Info):
    RuntimeError: Parse error
    ./…/lib/mp4info.rb:116:in parse_container' ./../lib/mp4info.rb:171:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:196:in parse_moov’
    ./…/lib/mp4info.rb:169:in send' ./../lib/mp4info.rb:169:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:74:in initialize’
    ./…/lib/mp4info.rb:87:in new' ./../lib/mp4info.rb:87:in open’
    test.rb:107:in `test_itunes’

  3. Error:
    test_nero(TestMP4Info):
    RuntimeError: Premature end of file
    ./…/lib/mp4info.rb:501:in read_or_raise' ./../lib/mp4info.rb:122:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:196:in parse_moov’
    ./…/lib/mp4info.rb:169:in send' ./../lib/mp4info.rb:169:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:74:in initialize’
    ./…/lib/mp4info.rb:87:in new' ./../lib/mp4info.rb:87:in open’
    test.rb:149:in `test_nero’

  4. Error:
    test_real(TestMP4Info):
    RuntimeError: Parse error
    ./…/lib/mp4info.rb:116:in parse_container' ./../lib/mp4info.rb:171:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:171:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:171:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:171:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:196:in parse_moov’
    ./…/lib/mp4info.rb:169:in send' ./../lib/mp4info.rb:169:in parse_atom’
    ./…/lib/mp4info.rb:112:in parse_container' ./../lib/mp4info.rb:74:in initialize’
    ./…/lib/mp4info.rb:87:in new' ./../lib/mp4info.rb:87:in open’
    test.rb:195:in `test_real’

4 tests, 1 assertions, 1 failures, 3 errors