Page 1 of 4 1234 LastLast
Results 1 to 10 of 33

Thread: Playlists and ID3 tags in VB?

  1. #1
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Post Playlists and ID3 tags in VB?

    Hey guys, I'm wondering what the best method of reading ID3 tags, and opening m3u files in VB is?

    Any OCX's or such?

    Thanks

    BJ
    BjBlaster! Car MP3 & Carputer!
    bjblaster.com

    "The solution to one problem is only the beginning of another"

  2. #2
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436

    Post

    hey BJ, as far as m3u files go that is really easy to work out.... just open as a text file in VB, the first line ignore - m3u headder ID.

    second line is the time of the track in seconds (easy to work out mins/secs from that in VB) after the comma is the mp3 title/ID3 tag, etc.

    And the third line is the filename relative to the saved location of the m3u playlist.


    make sense? or would a small code snippet I wrote help?
    Project - GAME OVER :(

  3. #3
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Wink

    Easy! I always look at the simple stuff from a tuff way first

    thanks

    Bj
    BjBlaster! Car MP3 & Carputer!
    bjblaster.com

    "The solution to one problem is only the beginning of another"

  4. #4
    FLAC
    Join Date
    Aug 1999
    Location
    Upper Marlboro, MD 20772
    Posts
    1,311

    Post

    watch how quickly VB will crap out on u doing that with a huge file. Your best choice is to use c/c++ for this type of operation.
    abcd-1
    Author of CobraI,II,III and now CobraIV.
    You can contact me on AOL instant messenger....nick is cenwesi or cenwesi3

  5. #5
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436

    Post

    Originally posted by Charles Enwesi:
    <STRONG>watch how quickly VB will crap out on u doing that with a huge file. Your best choice is to use c/c++ for this type of operation.</STRONG>

    how big is a playlist gonna get seriously? Im using this method for playlist in excess of 500+ tracks no problems. I think the issue of VB's speed with this operation is not critical in the slightest.
    Project - GAME OVER :(

  6. #6
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436

    Post

    not gettin worked up Charles..... go easy on VB..... it aint all bad eh?!
    Project - GAME OVER :(

  7. #7
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Post

    10 thousand mp3's in a list......no probs
    BjBlaster! Car MP3 & Carputer!
    bjblaster.com

    "The solution to one problem is only the beginning of another"

  8. #8
    FLAC
    Join Date
    Apr 2001
    Location
    Here, There, Everywhere
    Posts
    1,436

    Post

    Originally posted by Bj:
    <STRONG>10 thousand mp3's in a list......no probs </STRONG>
    thats your aim, or is that what you have tested. if tested, thats a sweet amount of playlist crunchin!
    Project - GAME OVER :(

  9. #9
    Bj
    Bj is offline
    Variable Bitrate
    Join Date
    Aug 2000
    Location
    Perth W.A Australia
    Posts
    290

    Post

    True. Tested at 9973 to be closer to the truth....it loads them within 5 secs or so. It takes 12 minutes for Winamp to make me the playlist though

    Hey The only thing I can't suss, is how the hell do you get a listbox to display the extracted name, but when you click on it, refer it to the actual song file location? I can get a list full of nicely edited mp3 tags in the listbox, it's just I'm not too sure how to get the songs to reference to the actual location.....
    Any ideas?

    bj
    BjBlaster! Car MP3 & Carputer!
    bjblaster.com

    "The solution to one problem is only the beginning of another"

  10. #10
    Retired Admin Aaron Cake's Avatar
    Join Date
    Jan 2000
    Location
    London, Ontario, Canada
    Posts
    2,464

    Post

    Originally posted by Bj:
    <STRONG>Hey The only thing I can't suss, is how the hell do you get a listbox to display the extracted name, but when you click on it, refer it to the actual song file location? I can get a list full of nicely edited mp3 tags in the listbox, it's just I'm not too sure how to get the songs to reference to the actual location.....
    Any ideas?
    bj</STRONG>
    Store everything in a collection, and as you populate the list box, add the filename and index (from the listbox) to the collection. Then when you need to get the filename, just loop through the collection with the index.

    For what it's worth, VB can handle arrays up to 64 Gig, so I doubt that it will have much of a problem dealing with even the largest MP3 playlist.
    Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
    Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
    "If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."

Page 1 of 4 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •