LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 03-17-2007, 10:04 PM   #1
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Intigrate Mp3 files in Website


I run a website for a radio station and do weekly uploads of radio programmes(mp3) and then make a .ram file (actually a text file) that links to the mp3 which when clicked, launches a player to stream the mp3. The problem with this is, that I have to update every .ram file individually and also change the date in the website. i.e.:
RadioProgramme March 17, 2007 (link to RadioProgramme.ram).

What I would want is to make a cron job that would send the programmes via ftp to the server and then they would automatically be available to the listeners via an online player and/or a clickable url to stream it via an external player.
I'm open to suggestions.
 
Old 03-18-2007, 04:54 AM   #2
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,138

Rep: Reputation: 49
don't you mean .m3u?
Aren't .ram's for real media?

Last edited by oskar; 03-18-2007 at 04:56 AM.
 
Old 03-18-2007, 07:55 PM   #3
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Original Poster
Rep: Reputation: 50
Well, your player really doesn't care which one, they both are just text files (in my case) that link to the .mp3, although that is kind of irrelevant to this post. I just want a solution/alternative to the current situation described above.
 
Old 03-20-2007, 10:27 AM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I fail to see the point of the ram file..... I clicked on one from your site and Firefox didn't know what to do with it..... Why can't you link directly to the mp3? Or are you wanting to have your own custom streamer on the site?

Are you wanting to do something like this guy has? http://digitalmedia.oreilly.com/2005...mp3_embed.html

If you are wanting to not have to edit the page everyday, then maybe you could integrate a database in there somehow along with a cron job to automatically upload the mp3s and use a little php magic to show the latest programs.
 
Old 03-20-2007, 10:49 AM   #5
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by benjithegreat98
I fail to see the point of the ram file..... I clicked on one from your site and Firefox didn't know what to do with it..... Why can't you link directly to the mp3? Or are you wanting to have your own custom streamer on the site?

Are you wanting to do something like this guy has? http://digitalmedia.oreilly.com/2005...mp3_embed.html

If you are wanting to not have to edit the page everyday, then maybe you could integrate a database in there somehow along with a cron job to automatically upload the mp3s and use a little php magic to show the latest programs.
Now were talking. Yeah, I want something like that guy has. As to doing this automatically, I'd love to but haven't the least idea how I would do it, hence this thread. Do you know of a guide on how to do that?
 
Old 03-20-2007, 11:20 AM   #6
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
As for a guide on how to specifically do that, I doubt one would exist. You would need to start researching things like how to build a database, how to use php. Mysql comes with about every linux distro, so you could definitely start playing with that. I would start with learning the in and outs of databases and tables and the SQL language that can query the database.

As for php, there are many tutorials to get you started on that. I think there is a good one at http://www.w3schools.com/php/

Actually, come to think of it you may not even need a database. You could use a naming convention for the files that involves the date and time. PHP would be able to sort the files in a directory or use only the files that have a certain file name in relation to that days date. You'll just have to play with it.
 
Old 03-20-2007, 11:36 AM   #7
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Original Poster
Rep: Reputation: 50
Well, now that I think of it, I really don't want to learn something new. I just want to put something up quick and forget about it. At least till it breaks. I think I'll just link it straight to the MP3 and see wha tpeople say about it. Thanks for the help and if there are any more specific suggestions, I'm still all ears.
 
  


Reply

Tags
radio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone recommend some good software to convert *.wav files into *mp3 files? Tom "Techno" Earl Linux - Software 4 10-12-2006 04:03 PM
Converting MP3 Files into WAV files MariAnt Linux - Software 3 08-31-2006 09:39 AM
Portable MP3 player with corrupted mp3 files today53 Suse/Novell 1 05-22-2006 09:24 AM
For people how want to play WMA files without converting MP3 files waelaltaqi Linux - Software 15 11-17-2005 08:30 AM
Able to write files to MP3 player but no files written into actual device? olnex Linux - Hardware 0 11-11-2005 06:32 AM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration