Forum: Ruby MP4Info Initial Release

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Af42775e0d6fbfdbfa7b19480f9688da?d=identicon&s=25 Jason Terk (Guest)
on 2006-02-10 05:10
(Received via mailing list)
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
756fc97539eb5536890ab4a5185c9382?d=identicon&s=25 Miloš Broulík (hurda)
on 2009-05-18 14:48
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
> (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

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
<nil>.

  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
This topic is locked and can not be replied to.