Remote ID3 tag extraction

Discussion in 'PHP' started by PromaneX, Jun 5, 2008.

  1. #1
    I have created a set of scripts that basicly
    allow a user to stream mp3 files from the
    usenet to any media player that supports
    streaming mp3 (winamp,vlc,itunes, etc).
    It has a search system that searches
    the usenet for the tracks the user wants
    and then compiles an playlist for them. It
    does it's best to give them decent trackname
    information but sometimes the names and
    descriptions of the files are poor. I would
    like to be able to read the ID3 tag for the
    mp3 files without downloading them, My
    proxy script fully supports resume so
    downloading a specific part of the file is
    possible. Does anyone know where to start on this?

    example link to a streaming mp3 file using the proxy.
    The source for this is easynews's usenet service.

    http://tuneflex.com/proxy/?url=aHR0cDovL2Rvd25sb2Fkcy5tZW1iZXJzLmVhc3luZXdzLmNvbS9uZXdzLzQvMi80LzQyNGM0NWY5ZDRlZTY4ODNiMDEzZWZhMWI3YWE4MDU2MGFhZTJkNTlmLm1wMy8wMy1iZWF0X3NoYWtlcnpfZnRfYWxpY2lhXy1faV9vbmx5XyUyOGNjX2tfdnNfY2x1Yl9iYXp6X3JteF9lZGl0JTI5LXZhbmlsbGEubXAz&fname=03-beat_shakerz_ft_alicia_-_i_only_%28cc_k_vs_club_bazz_rmx_edit%29-vanilla.mp3

    (sorry for the long link, the forum wont let me make "live links")

    the fname param will dicate what the script will
    call the file it sends back to the user.
     
    PromaneX, Jun 5, 2008 IP
    chandan123 likes this.
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    the first 1024 bytes will contain all information you need, try to use google for searching how to extract certain information out of the headers of the file!
     
    EricBruggema, Jun 5, 2008 IP