Streamripper .cue and .mp3 files

Events happening in the community are now at Drupal community events on www.drupal.org.
skyl1ne's picture

Can anyone help me decode the date/time syntax for Streamripper's .cue and .mp3 files?

For example:

1171573200.cue
1171573200.mp3

are for a 02/15/2007 stream ripped at 14:00.

If I wanted to rename somefile.mp3 to a certain date/time i.e. 1234567.mp3 to 02/16/2005 18:00 what syntax would I use?

Also, is it 'always' necessary to go in and manually delete the .cue files prior to import?

The reason I ask is that 'sometimes' the .cue files are removed automatically, but often they are not.

Thank you.

Comments

they're UTC timestamps. feed

drewish's picture

they're UTC timestamps. feed that into php's date() function. and yeah if the .cue file isn't delete it won't be imported, it assumes that the file is till being written to.

.cue Files Not Always Deleting

skyl1ne's picture

What would cause the .cue files not to be deleted automatically when the ripping has been completed?

In other words, the streams are being ripped every hour using the default 62 minutes, and then proceeds to rip the next hour(s) leaving the old .cue files behind.

I suspect it is in the meta tags of the stream.

if all the files are the

drewish's picture

if all the files are the correct length, i'd say that the ripper script is being interrupted some how. i don't have any better advice than keep an eye on it. you could remove the -q switch from the ripper script and it'd display output which would then be emailed to you by cron.

UTC timestamps demystified

skyl1ne's picture

Let's say I was having problems with the server and was ripping the streams on my desktop and wanted to upload them to /station/archive/import/ and wanted to convert somename.mp3 to xxxxxxx.mp3 to match
the UTC timestamps for 02/16/2007 18:00, 02/16/2007 19:00, etc. prior to upload.

Thank you.

take a look at strtotime()

drewish's picture

take a look at strtotime()

I have a problem. After

skyl1ne's picture

I have a problem. After upgrading station module, I overwrote the ripper.inc file and therefore streamripper did run this morning. However, I was recording the audio stream on my desktop.

What I would like to do is change 03-09-2007-05.mp3 (created 3/9/2007 at 5 am) to the the correct UTC filename for 3/9/2007 5 am and then upload it to the import directory and then run cron so it is placed into the station archive.

For example:

1173459600.mp3 equals 03-09-2007-09.mp3 for 3/9/2007 9 am.

What would I change 03-09-2007-05.mp3 in UTC format so that it goes/imports into the 3/9/2007 5 am time slot after I upload it into the import directory and run cron?

In other words, 03-09-2007-05.mp3 equals what ?????????.mp3 in UTC format.

Thank you.

strtotime()

drewish's picture

take a look at strtotime() it'll let you convert to UTC timestamps.

Thanks. In researching

skyl1ne's picture

Thanks. In researching strtotime() I ran across this which might help others:

Date/Epoch Converter

you can hack the

drewish's picture

you can hack the station_archive to automatically rename the files. it used to do that but i changed it because if you ever need to re-import the files it's best to keep the names as date stamps.

Radio

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week