LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2003, 01:27 PM   #1
hydro
Member
 
Registered: Feb 2003
Distribution: Slackware 9.0
Posts: 82

Rep: Reputation: 15
Streaming mp3s?


How would i go on steaming mp3s?

This is for a ecommerce company, we have tracks we would like to stream to the users.

What are the choices?

Thanks in advance
 
Old 09-02-2003, 01:34 PM   #2
phoenixofwater
LQ Newbie
 
Registered: Aug 2003
Distribution: Debian
Posts: 27

Rep: Reputation: 15
Take a look

Take a look at Netjuke
 
Old 09-02-2003, 01:36 PM   #3
hydro
Member
 
Registered: Feb 2003
Distribution: Slackware 9.0
Posts: 82

Original Poster
Rep: Reputation: 15
Ekk thats a whole script heh. Before I attempt to strip it and try to see how it works, is there a eaiser method of streaming?


We need to have our own thing, where a user clicks on listen and it starts the script, i jsut need to know what methods it uses so i can create my own, i dont know where to start

Last edited by hydro; 09-02-2003 at 01:45 PM.
 
Old 09-03-2003, 04:37 AM   #4
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
u r lucky m,an that i saw this script.. i have spend 2 months trying to do the same but found no help.. netjuke does not do realtime streaming.. it actually downloads the song and then does streaming (care to see the cookies).. this script below is working for me but for mp3 streaming, not for playlist streaming.. i m developing script for playlist streaming.. u can contact me if u require one at
visheshonly@hotmail.com
and i won't mind a thanks either if it works for u.



if ($_GET["mp3file"] !="" || $_GET["stream"] !="" )
{
$BASE_URL = "$ServerIP$PHP_SELF";

$CONFIG["base_dir"] = "/var/www/html/songs/";

if(isset($_GET["mp3file"])) play_single($user);
elseif(isset($_GET["stream"])) stream();
}

function play_single($user) {
global $BASE_URL;

$file_name_dec = $_GET["mp3file"].".m3u";

header("Content-Type: audio/x-mpegurl");
header("Content-Disposition: filename=\"$file_name_dec\"");

echo "http://$BASE_URL?stream=".$_GET["mp3file"]."&user=$user";

}

function stream() {
global $CONFIG;

$extension = trim(substr(strrchr($file_list[$_GET["stream"]], "."),1));
$file_name_dec=$_GET["stream"];
$fp=fopen($CONFIG["base_dir"]."$file_name_dec", "r");

header("Content-Disposition: filename=$file_name_dec");
header("Content-Length $file_size");

fpassthru($fp);
fclose($fp);
}
 
Old 09-03-2003, 02:22 PM   #5
hydro
Member
 
Registered: Feb 2003
Distribution: Slackware 9.0
Posts: 82

Original Poster
Rep: Reputation: 15
Thanks, I will expierement with this script later on. If you need help in creating playlist, lmk, il help, as I will be making one too
 
Old 09-05-2003, 02:20 AM   #6
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
yes, help is required

yes, some help with stremaing playlist, without downloading is required.
any kind of help is welcome.

regards
Xing
 
Old 09-05-2003, 04:05 AM   #7
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Shoutcast!!!!

Stream realtime mp3's. It's used by Internet radio stations and most importantly Digitally Imported.

http://www.digitallyimported.com


You host the mp3's and it broadcasts them.

http://www.shoutcast.com/ Brought to you by Nullsoft!!!

Even comes with Linux instructions.
 
Old 09-05-2003, 04:05 AM   #8
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Shoutcast!!!!

Stream realtime mp3's. It's used by Internet radio stations and most importantly Digitally Imported.

http://www.digitallyimported.com


You host the mp3's and it broadcasts them.

http://www.shoutcast.com/ Brought to you by Nullsoft!!!

Even comes with Linux instructions.
 
Old 09-05-2003, 04:14 AM   #9
charaf
LQ Newbie
 
Registered: Sep 2003
Location: France
Posts: 1

Rep: Reputation: 0
Hi everybody,

I am trying to run configure with OpenLDAP 2.1.22 (install) on an linux-Mandrake-systeme
system (9.0.3) and am getting some errors.

I am running configure as follows: In compile file I run the following

cd ${HOME}/openldap-2.1.22
export CC="gcc"
export CFLAGS="-O -g"
export CPPFLAGS="-I${HOME}/sasl/include -I${HOME}/openssl/include
-I${HOME}/bdb/include"
export LDFLAGS="-L${HOME}/sasl/lib -L${HOME}/openssl/lib
-L${HOME}/bdb/lib -R${HOME}/sasl/lib -R${HOME}/openssl/lib -R${HOME}/bdb/lib"
./configure --prefix=${HOME}/openldap --enable-debug --with-tls --with-cyrus-sasl
--enable-spasswd --with-wrappers.

and receiving the errors during config.status phase of configure:

sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/back-monitor/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/back-null/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/back-passwd/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/back-perl/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/back-shell/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/back-sql/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/shell-backends/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slapd/tools/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating servers/slurpd/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating tests/Makefile
sed: file conftest.s1 line 9: Unterminated `s' command
creating tests/progs/Makefile

Question:

How should the lines in the conftest.s1 look like, and what
might be causing this? Am I looking in the right location?


Thanks for help,

Charaf
 
Old 09-05-2003, 05:02 AM   #10
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
hi charaf,

u posted in an on-going discussion w/c is irrelevant to your inquiry. better delete/edit yourpost here and start a new one preferably under General or Software.
 
  


Reply


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
streaming MP3s jsheffie Linux - Software 1 03-24-2005 12:29 PM
mp3s from different HD Fr4@k Linux - Newbie 3 10-09-2003 01:42 PM
streaming MP3s thesnaggle Linux - Newbie 4 09-25-2003 05:26 PM
streaming mp3s Syncrm Linux - General 4 01-24-2003 08:21 PM
rippers, mp3s and mp3s.... (?) bxb32001 Linux - General 0 07-14-2001 01:53 PM


All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration