Code Monkey home page Code Monkey logo

Comments (3)

danopia avatar danopia commented on May 25, 2024

Here's the useful part of what id3 says about pizzarolls.mp3:

{ ULT: 
   { id: 'ULT',
     size: 1979,
     description: 'Unsychronized lyric/text transcription',
     data: { language: 'eng', descriptor: '', text: [Object] } },
  PIC: 
   { id: 'PIC',
     size: 403401,
     description: 'Attached picture',
     data: 
      { format: 'PNG',
        type: '32x32 pixels \'file icon\' (PNG only)',
        description: '\tPNG\r\n\u001a\n' } },
  TT2: 
   { id: 'TT2',
     size: 22,
     description: 'Title/Songname/Content description',
     data: 'Pizza Rolls (mashup)' },
  TP1: 
   { id: 'TP1',
     size: 13,
     description: 'Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group',
     data: 'sssShawnnnn' },
  TP2: 
   { id: 'TP2',
     size: 13,
     description: 'Band/Orchestra/Accompaniment',
     data: 'sssShawnnnn' },
  TYE: { id: 'TYE', size: 6, description: 'Year', data: '2013' },
  TBP: 
   { id: 'TBP',
     size: 5,
     description: 'BPM (Beats Per Minute)',
     data: '110' },
  TCO: 
   { id: 'TCO',
     size: 13,
     description: 'Content type',
     data: 'Pizza party' },

from node-mp3info.

bendi avatar bendi commented on May 25, 2024

Hi Daniel

first of all thanks for your input - unfortunately I have to disappoint you: mp3info project is quite old and hasn't been updated to handle id3 v.2 tags, so it won't handle images or tag data in encoding other than ascii.

So the only reason I decided to write native bindings is that it handles mp3 duration with variable bitrates really good.

For my maracuya-jukebox (https://github.com/bendi/maracuya-jukebox) project I decided to use a combination of already mentioned id3 library by Tim Smart and mp3info to get mp3 duration in seconds.

It turned out that id3 has issues on its own - eg. it handles latin1 strings incorrectly, but for the time being it's just a small obstacle so probably in future I'll do some fork/patch of id3 library.

You can check my metadata retrieval and db insert in here: https://github.com/bendi/maracuya-jukebox/blob/master/src/util/insert_track.js

Marek

from node-mp3info.

bendi avatar bendi commented on May 25, 2024

Daniel - small follow up :)

I finally got time to patch id3 (v. 0.0.3 with my patch is out: https://npmjs.org/package/id3) library so it can handle latin1 charset properly. In combination with node-mp3info you should do just fine.

from node-mp3info.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.