Mp3 tag manipulation in cygwin

I couldn’t find any mp3 tagging utility using the cygwin setup.exe. So I google a bit and found this post about installing id3. To summarize, download id3 here and unpack it. wget http://home.wanadoo.nl/squell/files/id3-0.78.tar.gz tar xvzf id3-0.78.tar.gz cd id3-0.78 sed -ibak -e 's/^\(CFLAGS.*=.*$\)/\1 -mno-cygwin/' makefile sed -ibak -e 's/\($(CXX)\) \($(OBJECTS:=.o)\)/\1 $(CXXFLAGS) \2/' makefile make make install There are some issue with carriage returns when printing the tags on screen that you can fix with the instructions in here.

May 26, 2008

MP4::Info fixed

Jonathan Harris has just released a new version of MP4::Info adding support for Sony PSP title and encoder. Movie title and the encoder used are now accessible under $tag->{NAM} and $tag->{TOO} use MP4::Info; my $file = 'MAQ12331.MP4'; my $tag = get_mp4tag($file) or die "No TAG info"; printf "$file title:%s encoder: %s\n", $tag~~<span style="NAM;text-align:right;">, $tag</span>~~>{TOO}; see my related post

February 28, 2007

Support for Sony PSP format in MP4::Info

Today I opened a new feature request (http://rt.cpan.org/Ticket/Display.html?id=25178) on MP4::Info perl module to include my patch to read the title in a Sony PSP files. Read this post to know more about the way title is encoded in PSP Mp4 files. With the following patch mp4infopatch.txt (applied to Info.pm) you can read the title of an PSP MP4 file using the following code snippet: use MP4::Info; my $file = 'MAQ12033.MP4'; my $tag = get_mp4tag($file) or die "No TAG info"; printf "$file title is %s\n", $tag->{NAM}; my $info = get_mp4info($file); printf "$file title is %s\n", $info->{NAM}; my $mp4 = new MP4::Info $file; printf "$file title is %s\n", $mp4->title; UPDATE: Jonathan Harris has released a new version of MP4::Info with support for Sony’s PSP files. more info

February 27, 2007

How to read title in Sony PSP MP4 files

If you had tried to read the title of a Sony PSP MP4 file with Ruby’s mp4info or Perl’s MP4::Info you probably noticed that the title is not stored in the NAM tag where it should be. Those two libraries cannot access the title info in Sony PSP files because title info is stored in a propierary way in a custom uuid atom called USMT (User Media Tags). Inside this atom there is child atom called MTDT (Meta Data) that lists meta data entries, one of them is the title. I found all this information in the movenc.c file from ffmpeg ...

February 25, 2007