Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Audio


Commercial message

Audio In the audio forum you can discuss things like streaming audio, the best audio speaker, gets tips for your car audio and how to read an audio book



Reply
 
Thread Tools
Old 04-02-2004   #26 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 6
Simple rename the mp2 or mp3 collection as a .aud. A file merger can pack all the files together for you. IN all reality the .aud is just a giant mp2 or mp3 with a code name.
bukleme is offline   Reply With Quote
Old 04-02-2004   #27 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
I recently aquired one such Starbucks disc. As has been stated, it is no problem to play the monsterous .AUD file in WinAmp. What has not been addressed, to my knowledge, is how the cut up the .AUD file into individual .MP3 files with matching ID3 tags from the data.txt file. I like the music, but not all of it...

Any help would be appreciated.
TonyDennis is offline   Reply With Quote
Old 06-02-2004   #28 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 9
Reply to TonyDennis and bukleme

TonyDennis, I think you'll find this completely sufficient for your needs:

http://prdownloads.sourceforge.net/m...2.zip?download (Download page)

http://mp3splt.sourceforge.net/ (Homepage)

It's a command line utility, here's what you need to enter:

mp3splt -s playdisc.aud

assuming you have "playdisc.aud" in the same folder as mp3splt, otherwise just as any other command line utility:

mp3splt -s c:\windows\desktop\playnetwork\playdisc.aud

etc...

the "-s" refers to splitting in silence detection mode.

--

Bukleme, I'm not entirely certain how to conduct a file merger? On my most recent test cd I appended the files together as a ZIP with no compression using WinRar, and that seemed to work fine - at least, the player is playing the cd.

However, and a big however! The player is having fits reading the "data.txt" file. It has one program with 33 songs - is the lack of songs perhaps causing the problem?

Below is my index file for you to check if you're interested.

Peace,

twisted logik

[Playlist]
Version=3.1
ID=437968
Title=#61 TEST02 03.02.04
Programs=1
Songs=33
ProgramAdvance=1
SongAdvance=1
Expiration=2004/09/27

[Program1]
ID=23316
Title=GOD MADE ME FUNKY
ProgramPlay=Next
MaxPlayTime=0
SongPlay=Random
Songs=33
Commercials=0

[Song1]
ID=513243.WAV
Title=Aqualung - Strange And Beautiful
Artist=see above
Start=65
Length=2096327

[Song2]
ID=42151.WAV
Title=Bic Runga - Sway
Artist=see above
Start=2096392
Length=2628964

[Song3]
ID=494107.WAV
Title=Bill Withers- Ain't No Sunshine
Artist=see above
Start=4725356
Length=1267984

[Song4]
ID=93553.WAV
Title=Bobby Darin - Beyond the Sea
Artist=see above
Start=5993340
Length=1735054

[Song5]
ID=300520.WAV
Title=Bruce Springsteen - Streets of Philadelphia
Artist=see above
Start=1735054
Length=2570972

[Song6]
ID=93959.WAV
Title=Chris Isaak - Wicked Game
Artist=see above
Start=10299366
Length=2425992

[Song7]
ID=513535.WAV
Title=Dan Mackenzie - Wake Up
Artist=see above
Start=12725358
Length=2394384

[Song8]
ID=162876.WAV
Title=Dido - White Flag
Artist=see above
Start=15119742
Length=2416066

[Song9]
ID=162880.WAV
Title=Dusted - If I Had A Child
Artist=see above
Start=17535808
Length=2112262

[Song10]
ID=93977.WAV
Title=Elliot Smith - Between The Bars
Artist=see above
Start=19648070
Length=1399380

[Song11]
ID=42143.WAV
Title=Elliot Smith - Say Yes
Artist=see above
Start=21047450
Length=1334074

[Song12]
ID=513472.WAV
Title=Eric Clapton - Layla (Acoustic)
Artist=see above
Start=22381524
Length=2861976

[Song13]
ID=224033.WAV
Title=Everlast - Ends
Artist=see above
Start=25243500
Length=2736066

[Song14]
ID=513280.WAV
Title=Fugees - No Woman, No Cry
Artist=see above
Start=27979566
Length=2557649

[Song15]
ID=69654.WAV
Title=Gomez - I Donated Myself to the Mexican Army
Artist=see above
Start=30537215
Length=3430401

[Song16]
ID=393758.WAV
Title=Interpol - Untitled
Artist=see above
Start=3430401
Length=2366956

[Song17]
ID=513471.WAV
Title=Jimi Hendrix - Angel (Acoustic)
Artist=see above
Start=36334572
Length=1926009

[Song18]
ID=494106.WAV
Title=Jimi Hendrix - The Wind Cries Mary
Artist=see above
Start=38260581
Length=2047739

[Song19]
ID=269047.WAV
Title=Kylie Minogue & Nick Cave - Where The Wild Roses Grow
Artist=see above
Start=40308320
Length=2371135

[Song20]
ID=512797.WAV
Title=Michael Nyman - Impromptu for 12 Fingers
Artist=see above
Start=42679455
Length=1785209

[Song21]
ID=513529.WAV
Title=Natalie Imbruglia - Torn (Acoustic)
Artist=see above
Start=44464664
Length=1909290

[Song22]
ID=92673.WAV
Title=Nina Simone- Sinnerman
Artist=see above
Start=46373954
Length=6195723

[Song23]
ID=93570.WAV
Title=Pachelbel - Canon In D Major
Artist=see above
Start=52569677
Length=1706841

[Song24]
ID=40377.WAV
Title=Roy Orbison - She's A Mystery To Me
Artist=see above
Start=54276518
Length=2576980

[Song25]
ID=92679.WAV
Title=Roy Orbison - You Got It
Artist=see above
Start=56853498
Length=2090841

[Song26]
ID=269044.WAV
Title=Ryan Adams - Wonderwall
Artist=see above
Start=58944339
Length=2802241

[Song27]
ID=92846.WAV
Title=Salmonella Dub - For The Love Of It
Artist=see above
Start=61746580
Length=3071739

[Song28]
ID=494110.WAV
Title=Sarah McLachlan - Angel
Artist=see above
Start=64818319
Length=2704980

[Song29]
ID=494097.WAV
Title=Shigeru Umebayashi - Yumeji's Theme
Artist=see above
Start=67523299
Length=1813421

[Song30]
ID=513466.WAV
Title=Space Raiders - Beautiful crazy
Artist=see above
Start=69336720
Length=2260376

[Song31]
ID=92715.WAV
Title=Space Raiders - Beautiful crazy
Artist=see above
Start=71597096
Length=1438825

[Song32]
ID=494098.WAV
Title=The Corries - Will Ye Go lassie Go
Artist=see above
Start=73035921
Length=2864849

[Song33]
ID=494098.WAV
Title=Travis - Baby One More Time
Artist=see above
Start=75900770
Length=2108866

[ProgramAll]
ID=437967
Title=All Programs
ProgramPlay=Next
MaxPlayTime=0
SongPlay=Random
Songs=33

[Song1]
ID=513243.WAV
Title=Aqualung - Strange And Beautiful
Artist=see above
Start=65
Length=2096327

[Song2]
ID=42151.WAV
Title=Bic Runga - Sway
Artist=see above
Start=2096392
Length=2628964

[Song3]
ID=494107.WAV
Title=Bill Withers- Ain't No Sunshine
Artist=see above
Start=4725356
Length=1267984

[Song4]
ID=93553.WAV
Title=Bobby Darin - Beyond the Sea
Artist=see above
Start=5993340
Length=1735054

[Song5]
ID=300520.WAV
Title=Bruce Springsteen - Streets of Philadelphia
Artist=see above
Start=1735054
Length=2570972

[Song6]
ID=93959.WAV
Title=Chris Isaak - Wicked Game
Artist=see above
Start=10299366
Length=2425992

[Song7]
ID=513535.WAV
Title=Dan Mackenzie - Wake Up
Artist=see above
Start=12725358
Length=2394384

[Song8]
ID=162876.WAV
Title=Dido - White Flag
Artist=see above
Start=15119742
Length=2416066

[Song9]
ID=162880.WAV
Title=Dusted - If I Had A Child
Artist=see above
Start=17535808
Length=2112262

[Song10]
ID=93977.WAV
Title=Elliot Smith - Between The Bars
Artist=see above
Start=19648070
Length=1399380

[Song11]
ID=42143.WAV
Title=Elliot Smith - Say Yes
Artist=see above
Start=21047450
Length=1334074

[Song12]
ID=513472.WAV
Title=Eric Clapton - Layla (Acoustic)
Artist=see above
Start=22381524
Length=2861976

[Song13]
ID=224033.WAV
Title=Everlast - Ends
Artist=see above
Start=25243500
Length=2736066

[Song14]
ID=513280.WAV
Title=Fugees - No Woman, No Cry
Artist=see above
Start=27979566
Length=2557649

[Song15]
ID=69654.WAV
Title=Gomez - I Donated Myself to the Mexican Army
Artist=see above
Start=30537215
Length=3430401

[Song16]
ID=393758.WAV
Title=Interpol - Untitled
Artist=see above
Start=3430401
Length=2366956

[Song17]
ID=513471.WAV
Title=Jimi Hendrix - Angel (Acoustic)
Artist=see above
Start=36334572
Length=1926009

[Song18]
ID=494106.WAV
Title=Jimi Hendrix - The Wind Cries Mary
Artist=see above
Start=38260581
Length=2047739

[Song19]
ID=269047.WAV
Title=Kylie Minogue & Nick Cave - Where The Wild Roses Grow
Artist=see above
Start=40308320
Length=2371135

[Song20]
ID=512797.WAV
Title=Michael Nyman - Impromptu for 12 Fingers
Artist=see above
Start=42679455
Length=1785209

[Song21]
ID=513529.WAV
Title=Natalie Imbruglia - Torn (Acoustic)
Artist=see above
Start=44464664
Length=1909290

[Song22]
ID=92673.WAV
Title=Nina Simone- Sinnerman
Artist=see above
Start=46373954
Length=6195723

[Song23]
ID=93570.WAV
Title=Pachelbel - Canon In D Major
Artist=see above
Start=52569677
Length=1706841

[Song24]
ID=40377.WAV
Title=Roy Orbison - She's A Mystery To Me
Artist=see above
Start=54276518
Length=2576980

[Song25]
ID=92679.WAV
Title=Roy Orbison - You Got It
Artist=see above
Start=56853498
Length=2090841

[Song26]
ID=269044.WAV
Title=Ryan Adams - Wonderwall
Artist=see above
Start=58944339
Length=2802241

[Song27]
ID=92846.WAV
Title=Salmonella Dub - For The Love Of It
Artist=see above
Start=61746580
Length=3071739

[Song28]
ID=494110.WAV
Title=Sarah McLachlan - Angel
Artist=see above
Start=64818319
Length=2704980

[Song29]
ID=494097.WAV
Title=Shigeru Umebayashi - Yumeji's Theme
Artist=see above
Start=67523299
Length=1813421

[Song30]
ID=513466.WAV
Title=Space Raiders - Beautiful crazy
Artist=see above
Start=69336720
Length=2260376

[Song31]
ID=92715.WAV
Title=Space Raiders - Beautiful crazy
Artist=see above
Start=71597096
Length=1438825

[Song32]
ID=494098.WAV
Title=The Corries - Will Ye Go lassie Go
Artist=see above
Start=73035921
Length=2864849

[Song33]
ID=494098.WAV
Title=Travis - Baby One More Time
Artist=see above
Start=75900770
Length=2108866
twisted logik is offline   Reply With Quote
Old 06-02-2004   #29 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
Does this method require me to rename and insert the ID3 tag on each generated MP3? \
TonyDennis is offline   Reply With Quote
Old 06-02-2004   #30 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 9
Unfortunately, yes.

But that's not because of the program, it's because the files contained within playdisc.aud don't contain any ID3 tag data.

So, yes, you're going to have to do all the tagging yourself!

Also, enter this:

mp3splt -e playdisc.aud

-e refers to Error Mode, check the man.html file in the mp3splt archive. Much faster than Silence Mode and very effective.
twisted logik is offline   Reply With Quote
Old 06-02-2004   #31 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
This probably isn't a popular medium, but I do a lot of "shell scripting" using mIRC (Windows doesn't really have a shell scripting language, so mIRC suits me just fine). I remember reading about a DLL that allowed mIRC to edit the ID3 tags of MP3s. If it was a command line alias, perhaps I can script something to parse the data.txt file and set the apropriate tags (and rename the files, I imagine).

If there's any interest, I'll post the code.
TonyDennis is offline   Reply With Quote
Old 07-02-2004   #32 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 6
Your list looks just like the real ones. How did you compile it. I am having the same problem, so if somebody gets a clue that'd be cool. I use a program to merge the files "FileMerger.exe" after this i run the entire new file through tmpegenc so that it truely becomes one file with no tag. I have had success with only a two song disc. Also take a look at the disk, just for those who care, this is copywrited material.
txt files can be saved as many different types, i haven't tried them all, tab'd space'd and many others, so you'll might want to give that a try.
\/
bukleme is offline   Reply With Quote
Old 08-02-2004   #33 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
I tried mp3splt -e, but it is off by about 20 songs. I'm in the process of using the -s auto option, but it's taking quite a bit of time. I'll edit this post with my results, but they haven't been very promising.

Are there any tools that would be able to parse the list for the Start and Length entries, and cut the file appropriately? If it's a simple matter of bytes, is it possible to just edit the file in binary mode, i.e.

read(startbyte, endbyte);
read(65, 2096327);
fopen(newfile);
write(data_to_newfile);

That would be the ideal way to rip the disc.

edit: the -s auto option was off by 15 songs. Closer than -e, but still...
TonyDennis is offline   Reply With Quote
Old 08-02-2004   #34 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
Alright. Anyone running mIRC 5.91+ (http://mirc.co.uk/) can use this script. It takes the large .aud file and the data.TXT file and splits the file by the bytes indicated in the data file. One small note, though, make sure in the data file you remove all the extra Programs. Only use the [ProgramAll] section. You can delete everything else.

I scripted two commands, audData and audSplt. audData parses the data file and verifys the artist's name. (I name my files a la "FirstName LastName - Song", Starbucks uses "LastName, First Name".) The commandd is mildly intelligent, as in it will assume you want to switch what is after the comma with what is before, but on some of the songs with multiple artists it messes up and you have to rename the artist yourself (by click No and entering it). I recommend you run the command even if you don't want to rename the files because some of the artists (multiple artist songs) have /'s in them, and you can't have a filename with a /. Also, some of the song titles have invalid characters in them. You may wish to manually (via notepad) search and find those characters (such as quotes, question marks, etc).

audSplt goes through the aud file and splits it according to the Start and Length parameters of the datafile, then renames the file to Artist - Title.mp3.

Syntax:
/audData start_song end_song "c:\file\data.txt"
/audSplt start_song end_song "c:\file\data.txt" "c:\file\playdisc.aud" "c:\output\"

Example:
Code:
/audData 1 295 "C:\Documents and Settings\Tony Dennis\Desktop\data.TXT
/audSplt 1 295 "C:\Documents and Settings\Tony Dennis\Desktop\data.TXT" "C:\Documents and Settings\Tony Dennis\Desktop\playdisc.aud" "C:\Documents and Settings\Tony Dennis\Desktop\output\"

If any of the paths have a space in it, you have to use quotes on all three paths. Otherwise you don't need the quotes.

Here is the code that you need to paste into your aliases (alt+a):
Code:
sleep {
  var %a = $ticks $+ .wsf
  write %a <job id="js"><script language="jscript">WScript.Sleep( $+ $$1 $+ );</script></job>
  .comopen %a WScript.Shell
  if !$comerr { .comclose %a $com(%a,Run,3,bstr,%a,uint,0,bool,true) }
  .remove %a
}
audData {
  if ($3) {
    var %first_song = $1
    var %last_song = $2
    if ($chr(34) isin $3-) {
      var %datafile = $gettok($3-, 1, 34)
    }
    else {
      var %datafile = $3
    }
  }
  else {
    echo -a 04audData, error: invalid parameters. (audSplt first_song last_song "data file")
    return
  }
  if (%last_song < %first_song) { 
    echo -a 03audData, warning: last_song comes before first_song, switching... 
    var %switch = %first_song
    var %first_song = %last_song
    var %last_song = %switch
  }
  if ($readini(%datafile,n,Song $+ %last_song,Start) == $null) { echo -a 04audDataerror: last_song does not exist, aborting... | return }
  var %i = %first_song
  while (%i <= %last_song) {
    var %artist = $readini(%datafile, Song $+ %i, Artist)
    var %newartist = %artist
    if ($chr(44) isin %artist) {
      var %first_name = $gettok(%artist,2,44)
      var %last_name = $gettok(%artist,1,44)
      var %newartist = %first_name %last_name
    }
    var %okay = $?!="Is this the artist? $crlf $crlf %artist to $crlf %newartist "
    if (%okay == $false) {
      var %newartist = $?="Rename artist: %artist "
    }
    writeini -n " $+ %datafile $+ " Song [ $+ [ %i ] ] Artist %newartist
    inc %i
  }
}

audSplt { 
  echo -a 02audSplt: beginning... | var %start_ticks = $ticks
  if ($3) {
    var %first_song = $1
    var %last_song = $2
    if ($chr(34) isin $3-) {
      var %datafile = $gettok($3-, 1, 34)
      var %audiofile = $gettok($3-, 3, 34)
      var %output_dir = $gettok($3-, 5, 34)
    }
    else {
      var %datafile = $3
      var %audiofile = $4
      var %output_dir = $5
    }
  }
  else {
    echo -a 04audSplt, error: invalid parameters. (audSplt first_song last_song "data file" "audio file" "output_dir)
    return
  }
  if (%last_song < %first_song) { 
    echo -a 03audSplt, warning: last_song comes before first_song, switching... 
    var %switch = %first_song
    var %first_song = %last_song
    var %last_song = %switch
  }
  if ($readini(%datafile,n,Song $+ %last_song,Start) == $null) { echo -a 04audSplt, error: last_song does not exist, aborting... | return }
  if ($isdir(%output_dir) == $false) { echo -a 04audSplt, error: output_dir does not exist, aborting... | return }
  if ($right(%output_dir,1) != \) { var %output_dir = %output_dir $+ \ }
  echo -a 02audSplt: entering ripping process...
  var %i = %first_song
  while (%i <= %last_song) {
    var %start_byte = $readini(%datafile,Song $+ %i, Start)
    var %end_byte = $calc($readini(%datafile,Song $+ %i, Length) + %start_byte)
    var %title = $readini(%datafile,Song $+ %i, Title)
    var %artist = $readini(%datafile,Song $+ %i, Artist)
    var %output_file = %output_dir $+ %artist - %title $+ .mp2
    .remove " $+ %output_file $+ "
    bread " $+ %audiofile $+ " %start_byte 1 &contents
    bwrite " $+ %output_file $+ " 0 1 &contents
    %cur_byte = $calc(%start_byte + 1)
    while (%cur_byte < %end_byte) {
      if ($calc(%cur_byte + 8192) > %end_byte) {
        var %byte_inc = $calc(%end_byte - %cur_byte)
      }
      else { var %byte_inc = 8192 }
      bread " $+ %audiofile $+ " %cur_byte %byte_inc &contents
      bwrite " $+ %output_file $+ " -1 -1 &contents
      inc %cur_byte %byte_inc
    }
    echo -a 02audSplt: finished track %i $+ ,02 %title by02 %artist
    /sleep 1
    inc %i
  }
  echo -a 02audSplt: all done! completed in $round($calc($calc($ticks - %start_ticks) / 1000),2) secs.
}
Perhaps I will simply make a .mrc file that you can /load. Anyway, good luck. If you need any help using it, you can either message me on *edit*.

Edit: Changed .mp3 extention to .mp2, as that is what it seems to be. I used winLAME to convert from .mp2->mp3.

Last edited by C0deKing; 04-03-2006 at 12:51.
TonyDennis is offline   Reply With Quote
Old 09-02-2004   #35 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 9
I only tried mp3splt -e on one file, it worked okay by me, so not sure what happened there. Don't matter now that you've posted that code though! (Of which I am yet to try...)

TonyDennis, are you more interested in listening to the music from the cd's than creating your own? It appears your programming expertise is needed in creating the data.txt file. Seems both bukleme and I have been experiencing the same problems with tracks not playing etc...

peace

twisted logik
twisted logik is offline   Reply With Quote
Old 10-02-2004   #36 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
Quote:
Originally posted by twisted logik
TonyDennis, are you more interested in listening to the music from the cd's than creating your own? It appears your programming expertise is needed in creating the data.txt file. Seems both bukleme and I have been experiencing the same problems with tracks not playing etc...
Correct. I only wished to listen to the music. Well, actually, that was accomplished by splitting the file and/or changing the extention. I, however, wanted to play it on my MP3 CD player in my car, so I had to go the extra step and use winLAME to convert them to true MP3s.

If I understand the format of the data.txt correctly, all you have to do is join the MP2 files (you'll need to convert them from your MP3s, I don't know of a program that will convert MP3->MP2. You need them to be 44KHz and 80kbps, mono), then plug in the byte positions in the data.txt file. For example:

[Song1]
ID=12345.WAV
Title=Angie
Artist=Rolling Stones
Start=2048
Length=2735804

equates to the song Rolling Stones - Angie. Its byte position in playdisc.aud is from 2048 to 2737852 (2048+2735804). I assume the next song would start at byte position 2737853, but I may be wrong. Also, the length is the size of the file in bytes. That may be of some use to you.

What you could do, I think, would be to write a similar script as I have above, except instead of cutting up the file at defined intervals you inject them at given intervals. Or you join the files via mIRC and then record the intervals. I don't have much interest in doing this, as I won't have access to the Playnetwork machine for much longer (my last day is on the 13th), and I'd probably get in trouble for playing my own music (my managers are lame).

Plus I don't know where to get an MP2 encoder. Finding the MP2->MP3 encoder was a big enough pain for me.

Kudos.
TonyDennis is offline   Reply With Quote
Old 10-02-2004   #37 (permalink)
CDFreaks Resident
 
Chriso's Avatar
 
Join Date: Apr 2003
Location: Liverpool, England
Posts: 2,062
Would tooLAME do the job?

http://www.afterdawn.com/software/au...rs/toolame.cfm
__________________
Videos of me playing piano, would be nice to have feedback from you all!

[23:49] <Chriso> !seen Boobies
[23:49] <JuPiLeR> I found 430 matches to your query; please refine it to see any output.


OS: openSUSE 10.3 and Windows XP SP2
PSU: Enermax Liberty 400w - Modular
Mobo: Jetway V266B
CPU: AMD AthlonXP 2000+
RAM: 256MB Crucial PC2100 + 512MB Corsair Value Select PC2100
HDD: 120GB Maxtor ATA133 8MB Cache + 320GB Western Digital "RAID Edition" ATA100 8MB Cache
Gfx Card: NVIDIA GeForce 6200 passive cooled
Sound Card: SB Live 1024
DVD-ROM Drive: Asus E-616
CD-RW: LiteON 52246S
DVD-RW: NEC ND2510A in external Firewire enclosure (Prolific chipset)
USB2 Card: ALI chipset (got an NEC chipset one waiting to go in)
Firewire Card: Not sure of chipset...but it seems to work
D-Link Network Card

My old Voodoo 3 2000 PCI has now retired, still in perfect working order though!

Get Firefox!
Join CDFreaks

Chriso is offline   Reply With Quote
Old 10-02-2004   #38 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
No, but a combination of winLAME and tooLAME would. Use winLAME to convert the MP3 to WAV, then use tooLAME to convert the WAV to MP2.

This is really difficult for me to test, so I'm afraid I won't be able to help with this venture.
TonyDennis is offline   Reply With Quote
Old 11-02-2004   #39 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
I may not be able to physically help you guys with this project, as I won't be able to test things myself, but I can certainly help you conceptually.

I was thinking about while I was at work today, and I think this is how it would go:

1) Use winLAME to convert all of your MP3s to WAV files
2) Use tooLAME to convert all the generated WAV files into MP2 files
3) Open up each file in WinAmp and check the header information, write down the header location and file size in bytes for each MP2 file
4) Use either a homegrown script or a program (I'd be leary, as they might distort the information by adding/removing "unnecessary" information (read: optimizing)) to join the MP2 files into one large file, then rename it to playdisc.aud
5) Create a data.TXT file with the song title, artist, start, and length fields (Don't know that you need ID, but you might want to put some random characters there anyway).
5a) The start and length will be determined by a few things. The length field should be the size of the file in bytes minus the location of the header. A running tally of the entire file's size should be the start location. For example, if you have a song with a header located at 1 and a length of 10 and a second song with a header of 2, then your start position will be 13 for the second song.
6) Burn playdisc.aud and data.TXT to a blank CD-R and enjoy.

That's my understanding of the system, anyway.
TonyDennis is offline   Reply With Quote
Old 11-02-2004   #40 (permalink)
New on Forum
 
Join Date: Feb 2004
Location: Southern California, USA
Posts: 4
Tutorial

Hey folks,
I wrote a small tutorial on converting the starbucks cds to mp3 files. Check it out on my site (http://www.socklabs.com), the article is here (http://www.socklabs.com/index.php?op...d=112&blogId=2). I hope this helps everyone.
~ Nick <nick@socklabs.com >
__________________
Guns don't kill people, ninjas do.
Sock is offline   Reply With Quote
Old 13-02-2004   #41 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 4
so has anybody successfully created a customized cd that actually worked in the playnetwork machine?
almich is offline   Reply With Quote
Old 13-02-2004   #42 (permalink)
New on Forum
 
Join Date: Feb 2004
Location: Southern California, USA
Posts: 4
expired songs

The most i've done is changed the data.txt so that the songs don't expire.
__________________
Guns don't kill people, ninjas do.
Sock is offline   Reply With Quote
Old 14-02-2004   #43 (permalink)
New on Forum
 
Join Date: Feb 2004
Location: Southern California, USA
Posts: 4
starcd2mp3 script

Hey folks,
I created a script that automates the process of sifting through the data.txt file and creating mp3s, mpeg1 layer 3, out of the .aud file and then sorting them by the program they are in. I started a new thread on it.
~ Nick
__________________
Guns don't kill people, ninjas do.
Sock is offline   Reply With Quote
Old 14-02-2004   #44 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 9
I have managed to get a customized cd playing, however (and a big however) it doesn't play properly - plays the first four songs chronologically (even though in data.txt it's set to random) and keeps jumping back to the first track.

The "playdisc.aud" file I created works like a dream (details of how I did this below) so I'm certain it isn't that.

Possibilities include:

1. The number of songs and programs. The cd (#61 BLUES & JAZZ) I was using as a template has 115 songs and 2 programs. The cd I created had 33 songs and 1 program.

2. I saved "data.txt" with ANSI encoding. I don't know the difference between ANSI, Unicode etc... or even if that could be the cause of the trouble, but thought I should mention it. Any idea how to check the encoding of the original "data.txt"?

3. Perhaps I cannot see some sneaky spaces or tabs within "data.txt" and am deleting/not including them unintentionally?

Here's how I created "playdisc.aud" using open source software (with the exception of speek's freeware Multi frontend):

1. Decoded to wav the music I wanted with CDex.
http://cdexos.sourceforge.net/

2. Encoded the wav's to MP2 with TooLAME and speek's Multi frontend. The variables I entered are:
-a -b 80 -e
-a = downmix from stereo to mono (if you don't do this, the encoding sound TERRIBLE!)
-b 80 = bitrate 80kbps
-e = error checking
TooLAME: http://www.doom9.org/index.html?/software2.htm
GUI: http://home.wanadoo.nl/~w.speek/multi.htm

3. Wrapped the MP2's with 7-Zip, creating a zip archive on storage (no compression) then renamed the file "playdisc.aud"
http://www.7-zip.org/

You're all good to go! (as far as the audio file goes anyway...)

twisted logik

ps. TonyDennis, I will be taking advantage of the info you posted about splitting and renaming the files with the script you created for mIRC, but two things:

Is there a free or open source alternative to mIRC that could be used?

Could you make it easier for the plebs amongst us? (Like me! - I don't understand that code one bit!)

peace
twisted logik is offline   Reply With Quote
Old 14-02-2004   #45 (permalink)
New on Forum
 
Join Date: Jan 2004
Posts: 9
One other thing I forgot to add, the readme for TooLAME can be found here:

http://mikecheng.d2.net.au/layer2/readme.html
twisted logik is offline   Reply With Quote
Old 14-02-2004   #46 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
You don't know how to "install" it or you don't know how to use it? Also, I edited the /audData command so that whenever you enter a new artist name, it scans the entire file and does a search/replace. That way you don't have to reenter a bunch of names.

I'll probably edit it a bit more to a) automatically rename the songs except when there are multiple artists and b) fix the song titles (remove invalid characters).

If you need help with the script, either e-mail me or message me on *edit*. I won't really be checking this thread anymore.

Last edited by C0deKing; 04-03-2006 at 12:50.
TonyDennis is offline   Reply With Quote
Old 15-02-2004   #47 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 10
mIRC is free. It just pops open a link to the author's website every now and again. There's plenty of open source IRC clients, but there's only one mIRC scripting language.

I may learn perl, python or java, but even if I do, I doubt it will be anytime soon; nor will I port this to any of those languages, so it's pretty much a moot point, anyway. This was mostly a personal venture, sorry.
TonyDennis is offline   Reply With Quote
Old 15-02-2004   #48 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 4
Quote:
Originally posted by twisted logik
I have managed to get a customized cd playing, however (and a big however) it doesn't play properly - plays the first four songs chronologically (even though in data.txt it's set to random) and keeps jumping back to the first track.

The "playdisc.aud" file I created works like a dream (details of how I did this below) so I'm certain it isn't that.

Possibilities include:

1. The number of songs and programs. The cd (#61 BLUES & JAZZ) I was using as a template has 115 songs and 2 programs. The cd I created had 33 songs and 1 program.

2. I saved "data.txt" with ANSI encoding. I don't know the difference between ANSI, Unicode etc... or even if that could be the cause of the trouble, but thought I should mention it. Any idea how to check the encoding of the original "data.txt"?

3. Perhaps I cannot see some sneaky spaces or tabs within "data.txt" and am deleting/not including them unintentionally?

Here's how I created "playdisc.aud" using open source software (with the exception of speek's freeware Multi frontend):

1. Decoded to wav the music I wanted with CDex.
http://cdexos.sourceforge.net/

2. Encoded the wav's to MP2 with TooLAME and speek's Multi frontend. The variables I entered are:
-a -b 80 -e
-a = downmix from stereo to mono (if you don't do this, the encoding sound TERRIBLE!)
-b 80 = bitrate 80kbps
-e = error checking
TooLAME: http://www.doom9.org/index.html?/software2.htm
GUI: http://home.wanadoo.nl/~w.speek/multi.htm

3. Wrapped the MP2's with 7-Zip, creating a zip archive on storage (no compression) then renamed the file "playdisc.aud"
http://www.7-zip.org/

You're all good to go! (as far as the audio file goes anyway...)

twisted logik

ps. TonyDennis, I will be taking advantage of the info you posted about splitting and renaming the files with the script you created for mIRC, but two things:

Is there a free or open source alternative to mIRC that could be used?

Could you make it easier for the plebs amongst us? (Like me! - I don't understand that code one bit!)

peace

i will create a cd and try it tomorrow morning. hope it works. i'll report back later.
almich is offline   Reply With Quote
Old 15-02-2004   #49 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 4
AMAZING! IT WORKED! the .aud file is indeed an mp2 and not an mp3, although i am still confused why winamp identified most of them as an mp3. The audio played beautifully. now all we need to do is really figure out how to write the playlist. I remember one of the playlists i made was unreadable by the playnetwork machine. As twisted logic mentioned in an earlier post, it probably does depend on an amount of characters as the for the title and band. check out this screen shot of my data.txt and tell me if you think it is true. http://s87001843.onlinehome.us/playlist.gif
it seems like according to my playlist, there must be 40 characters including spaces for the title and and 41 characters including spaces for the band. i might be wrong, but i'm sure we will all figure this out in no time. but if you do not really care about the orders and naming the songs, then you can just use and existing playlist, but be sure to change the track change method to NEXT instead of RANDOM.

oh yea, as far as playing the cd in the store, i highly suggest that you do not let any customers know that it is a customized cd or even brag about it to other stores. once the district manager finds out, there will probably be an urgent message in the stupid scoop to notify all managers. My manager was actually cool about it, and she even played the cd during store hours!

Last edited by almich; 16-02-2004 at 10:01.
almich is offline   Reply With Quote
Old 24-02-2004   #50 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 5
Thanks to twisted logik, I got a Chemical Brothers CD made for my fiancee to listen to at Starbucks.

The only hard part is the data.txt file creation, so I hammered one out real quick that makes it easy to do.

It's about as pre-alpha as one can get.
=========================================
Features:
Makes data.txt
Works

Bugs:
No error checking
Can't customize indivdual tracks (yet)
Not very pretty
You have to make sure your files are named juuust right.
Inability to specify where data.txt goes
=========================================


Directions for use:
Follow twisted logik's instructions on everything up until you get to the mp2 wrapping

Run datamkr.exe

Click "Add File(s)"
-Select the mp2s

Choose whether you want the tracks to be Random, or Normal
Enter the CD's Title
Enter the Artists name

Click "Do It"

And you just made data.txt. It appears in the root directory (C:\).

Keep in mind the order that's listed in datamkr will be the order the files are listed in data.txt.

Now all you have to do is join the mp2s and burn it all to a CD.

I personally recommend Simple File Joiner. It doesn't add any "excess" info to the file.

That's about it... ENJOY!

PS- It may not work on all systems. It definitely works on XP. That and I'm not much of a real coding genius. I know enough to do stupid little things like this.

EDIT: Forgot to put the file here... http://www.askachick.com/datamkr.exe
plik is offline   Reply With Quote
 
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nero CD-DVD Speed "erase" vs "format" Ux-3 Nero & InCD 1 26-06-2006 17:51
playdisk.AUD Format coupled with playdisc.AUC file condonethis Audio 0 30-11-2005 06:31
covers "serious beats 31" "wamdue project" "tiesto-magic5" ??? djrolo Dutch: De Woonkamer 7 04-06-2000 23:20


All times are GMT +2. The time now is 20:52.