Skip to Content
It is currently September 2nd, 2014, 11:38 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
PostPosted: July 15th, 2011, 3:29 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
First, I want to let you all know, I've been learning a lot from reading your posts. Is great to see that almost everything is possible to do with Sam and that there's always someone willing to help.
I've been setting up SAM Broadcaster along with ICECAST in windows server 2008 machine using firebird database.
What we are trying to do is to embed the broadcast into our webpage, which we've accomplish successfully to all mayor browsers (except opera for mac ??? ). Right now, we are trying to post a direct link (using html "<a>" tag ) for iPod, iPad or iPhone users. Using other live broadcast stations we successfully accomplish this by making href="http://site'sURL:8000/mp3filename.mp3".
We tried to reproduce this "mp3filename.mp3" using sam's encoders by saving mp3 files directly to a folder in the website, but what happens is:
1) The file keeps growing.
2) The file starts with the song that was playing the moment we started the encoding, not the live broadcast.
3) The file stops playing after the browser stops loading the page (iOS or desktop browsers).
The same things happen if we use the <dump-file> in ICECAST configuration.
Is there a way to produce an mp3 file with the same content of the actual broadcast so it can be played in iPod, iPad or iPhone QT player ?
Thanks in advance
Luis M. Valenzuela
México


Top
 Profile  
 
PostPosted: July 15th, 2011, 3:40 pm 
Offline
SVS Member
SVS Member

Joined: May 8th, 2004, 9:00 am
Posts: 9972
Location: Denver, CO
Why would you want to save it to a file? Would a direct link to your stream be more efficient? For iPhone and iPad it best to use m3u extension. href="http://filename.m3u". where filename.m3u contains a link to your station stream.
Code:
#EXTM3U
http://XXX.XXX.XXX:8000/
That is what I do. Opens the stream right up in the safari browser. It is also highly recommended but not required to offer a lower bit rate stream like 64KAAC+ for iPhone & iPad users.

_________________
- Rob Oyler
- Spacial Volunteer Support (SVS)
Smooth Contemporary Jazz Channel:
Image


Top
 Profile  
 
PostPosted: July 15th, 2011, 3:58 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
First of all, thanks a lot DJ Cassio, for answering my post.
Second, to see if I understood you well, what you suggest is:
1) Using any editor (notepad for instance) make a m3u file
2) Add the following code to the file
Code:
#EXTM3U
http://XXX.XXX.XXX:8000/

3) In my <a> tag change
Code:
 href="http://xxx.xxx.xxx.xxx/live.mp3"
to
Code:
http://xxx.xxx.xxx.xxx/live.m3u


And that would solve my problem ?

If that's the case, you've just become my number one hero !!! :idea:
I've been searching for a solution to this from a long time.
Thanks again
Luis M. Valenzuela


Top
 Profile  
 
PostPosted: July 15th, 2011, 4:28 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
DJ Cassio wrote:
Why would you want to save it to a file? Would a direct link to your stream be more efficient? For iPhone and iPad it best to use m3u extension. href="http://filename.m3u". where filename.m3u contains a link to your station stream.
Code:
#EXTM3U
http://XXX.XXX.XXX:8000/
That is what I do. Opens the stream right up in the safari browser. It is also highly recommended but not required to offer a lower bit rate stream like 64KAAC+ for iPhone & iPad users.

I've tried this as I've told in my last post and didn't work on iPhone or iPad :( . What it does in Mac OSX is open iTunes and starts the stream.
Thanks
Luis M. Valenzuela


Top
 Profile  
 
PostPosted: July 15th, 2011, 10:25 pm 
Offline
New User
New User

Joined: February 11th, 2007, 1:25 pm
Posts: 16
Location: Los Angeles / London
If you just want to embed the broadcast into your website, we use the following for iPhone, iPad & iPod:

Code:
http://sc3.shoutcaststreaming.us:8000/listen.pls

_________________
http://www.shoutcaststreaming.us
A Radio Tool Box Certified Host
A Spacial Affiliate


Top
 Profile  
 
PostPosted: July 18th, 2011, 1:45 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
ShoutcastStreaming wrote:
If you just want to embed the broadcast into your website, we use the following for iPhone, iPad & iPod:

Code:
http://sc3.shoutcaststreaming.us:8000/listen.pls

Thanks for your response.

I guess I'll have the same results. The main problem using the playlist method (either m3u or pls) will be what's inside of the list.
In both cases, I have to put a reference to the actual stream which is
Code:
http://189.254.28.2:8000/live

By trying to view this problem from another sightline, I guess the main problem is how to set the encoder, so if I open the qtplayer in ipod, iphone or ipad and just load the url, the player would start playing the music.
I've seen in other stations (wcpe in north carolina) that inside their playlist they put a reference to an mp3 file, such as
Code:
http://audio-mp3.ibiblio.org:8000/wcpe.mp3
which was the reference I used to test my website on iphone, ipad or ipod.
Hope someone can help


Top
 Profile  
 
PostPosted: July 18th, 2011, 7:02 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 5814
Location: Aachen (Germany)
Shoutcast has a pretty much unkown feature that allows for compatibility with players that expect an mp3 stream to be presented as a dot-mp3 file.

Simply append /;stream.mp3 to the streaming server url (or replace listen.pls by ;stream.mp3 if you want so)
Code:
http://1.2.3.4:8000/;stream.mp3


That helped at least for some flash players I configured lately. Maybe it will fix your iPhone problems too.
No guarantee though, I don't own any iAnything devices, but my android phone can play shoutcast streams with the usual a.b.c.d:8000 format through XiaaLive app.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Problems/Questions | Sourcecode


Top
 Profile  
 
PostPosted: July 18th, 2011, 9:57 pm 
Offline
SVS Member
SVS Member

Joined: October 15th, 2003, 11:59 pm
Posts: 4252
Location: Los Angeles - A Little West Of Nashville
Mastacheatasa wrote:
Simply append /;stream.mp3 to the streaming server url (or replace listen.pls by ;stream.mp3 if you want so)

Code:
http://sc3.shoutcaststreaming.us:8000/;stream.mp3

That didn't work ... on my iPhone, I get:
Safari cannot download this file
and on IE I get:
ICY 200 error


@lmvalenzuela .. That is because
http://audio-mp3.ibiblio.org:8000/wcpe.mp3
is an Icecast stream and wcpe.mp3 is the mount point.
If you just put in:
http://audio-mp3.ibiblio.org:8000
you will see that.

So, I'm also trying to find out how to play a Shoutcast stream on a Android phone directly with no app.

If you find out how, let me know.

_________________
- DJ Dee
- Spacial Volunteer Support (SVS)
- Custom PAL services: www.palscripts.com
- http://www.AlternativeHD.com
- http://www.lahotcountry.com


Top
 Profile  
 
PostPosted: July 19th, 2011, 7:56 am 
Offline
New User
New User

Joined: July 19th, 2011, 7:23 am
Posts: 19
Location: Ohio
As of yet, you can't play a ShoutCast stream without an app. There are many that support radio streaming though, but out of the box, it's a no-go.

I use TuneWiki personally, for both radio and my personal collection on the phone itself.

lmvalenzuela wrote:
I guess I'll have the same results. The main problem using the playlist method (either m3u or pls) will be what's inside of the list.
In both cases, I have to put a reference to the actual stream which is
Code:
http://189.254.28.2:8000/live

By trying to view this problem from another sightline, I guess the main problem is how to set the encoder, so if I open the qtplayer in ipod, iphone or ipad and just load the url, the player would start playing the music.
I've seen in other stations (wcpe in north carolina) that inside their playlist they put a reference to an mp3 file, such as
Code:
http://audio-mp3.ibiblio.org:8000/wcpe.mp3
which was the reference I used to test my website on iphone, ipad or ipod.
Hope someone can help


I guess I don't know what you mean by "whats inside of the list" using the playlist method? What's wrong with referencing a .m3u or .pls over .mp3?

_________________
// Chad Coburn
// The Kraken

W. http://www.revengeofthedevil.com
E. djinsomniac@gmail.com
T. @KrakenRadio


Top
 Profile  
 
PostPosted: July 19th, 2011, 1:36 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
countrywesterndj wrote:
Mastacheatasa wrote:
Simply append /;stream.mp3 to the streaming server url (or replace listen.pls by ;stream.mp3 if you want so)

Code:
http://sc3.shoutcaststreaming.us:8000/;stream.mp3

That didn't work ... on my iPhone, I get:
Safari cannot download this file
and on IE I get:
ICY 200 error


@lmvalenzuela .. That is because
http://audio-mp3.ibiblio.org:8000/wcpe.mp3
is an Icecast stream and wcpe.mp3 is the mount point.
If you just put in:
http://audio-mp3.ibiblio.org:8000
you will see that.

So, I'm also trying to find out how to play a Shoutcast stream on a Android phone directly with no app.

If you find out how, let me know.

Thanks for your answer countrywesterndj :D , I'll try your method hoping Icecast can handle this.
Luis M. Valenzuela


Top
 Profile  
 
PostPosted: July 19th, 2011, 1:45 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
RadChad wrote:
As of yet, you can't play a ShoutCast stream without an app. There are many that support radio streaming though, but out of the box, it's a no-go.

I use TuneWiki personally, for both radio and my personal collection on the phone itself.

lmvalenzuela wrote:
I guess I'll have the same results. The main problem using the playlist method (either m3u or pls) will be what's inside of the list.
In both cases, I have to put a reference to the actual stream which is
Code:
http://189.254.28.2:8000/live

By trying to view this problem from another sightline, I guess the main problem is how to set the encoder, so if I open the qtplayer in ipod, iphone or ipad and just load the url, the player would start playing the music.
I've seen in other stations (wcpe in north carolina) that inside their playlist they put a reference to an mp3 file, such as
Code:
http://audio-mp3.ibiblio.org:8000/wcpe.mp3
which was the reference I used to test my website on iphone, ipad or ipod.
Hope someone can help


I guess I don't know what you mean by "whats inside of the list" using the playlist method? What's wrong with referencing a .m3u or .pls over .mp3?

RadChad:
Thanks for your response, I'm really amazed by the good will for helping others that this forum has, and even, I'm not a full time dj or broadcaster as many of you, all your answers and good will has make me decide that I'll do my best from now on, to collaborate on this forum as far as my abilities might reach.
As for what I meant in the frase " I know what's inside the list" I what I meant, is that I made the list file using a note pad and putting inside the reference to my stream (as it seems to be the general method of doing this). The problem as far as I think is that the main problem is the that the stream itself can't be played on iphone, ipod or ipad (maybe because I'm setting wrong the encoder).
So as a conclusion, there's nothing wrong using the playlist method, my problem is that I've not been able to do it the right way.
Thanks again for all your responses.
Luis M. Valenzuela


Top
 Profile  
 
PostPosted: July 19th, 2011, 2:30 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 5814
Location: Aachen (Germany)
Just had a look at some mac/apple forums and from what I read there, the iPhone / iPod / iPad / iPoo are not capable of playing shouctast streams natively.

The only solution that does not involve third party applications is highly technical, so I'll just outline this very shortly:
With some server side scripting (PHP/Perl/Python etc) you can trick the iPhone into thinking it was playing a single mp3 file.
This would normally result in the stream being played only for a fixed amount of time, but HTTP protocol supports resuming of connections and that can be used to push the stream out to the iPoo.
For a solution in PHP, here's a thread on macrumors describing that in detail: http://forums.macrumors.com/showthread.php?t=356394

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Problems/Questions | Sourcecode


Top
 Profile  
 
PostPosted: July 19th, 2011, 3:42 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
Mastacheata wrote:
Just had a look at some mac/apple forums and from what I read there, the iPhone / iPod / iPad / iPoo are not capable of playing shouctast streams natively.

The only solution that does not involve third party applications is highly technical, so I'll just outline this very shortly:
With some server side scripting (PHP/Perl/Python etc) you can trick the iPhone into thinking it was playing a single mp3 file.
This would normally result in the stream being played only for a fixed amount of time, but HTTP protocol supports resuming of connections and that can be used to push the stream out to the iPoo.
For a solution in PHP, here's a thread on macrumors describing that in detail: http://forums.macrumors.com/showthread.php?t=356394

Thanks a lot Mastacheata, your previous solution worked like magic !!!
Using the following link
Code:
<a href="http://189.254.28.2:8000/;ipod.mp3">Listen here movile users</a>

worked great.
Have to let you know also, that I had to configure a new encoder (mp3 lame, 32kbps, 44100Hz) with Icecast mounting point /;ipod.mp3 so this could work out.
Also I put inside icecast.xml the following to avoid problems with Icecast (2):
Code:
<mount>
  <mount-name>/live</mount-name>
</mount><!--normal mount for desktop users-->
<mount>
  <mount-name>/;ipod.mp3</mount-name>
</mount><!--for mobile users-->

Thanks to every user that response to me. Again, I now feel very committed after seeing the community response.

Luis M. Valenzuela


Top
 Profile  
 
PostPosted: July 19th, 2011, 4:44 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 5814
Location: Aachen (Germany)
Does it work without the semicolon, but with the mp3 ending? If you haven't tried yet, maybe you could check that again, I'm highly curious if that would work.
If this really needs to be with the semicolon, then either Apple built a shoutcast specific thing into their player software or this semicolon is some kind of webstandard I've never seen before.

The semicolon is just a shoutcast thing. There you don't have mountpoints but get the stream at http://hostname:port and for backwards compatibility there is this fake url with /;stream.mp3 attached to the normal url.
Haven't seen any documentation on that one, but have seen that lately in a flash player at a friend's station. (The flash player is normally not capable of playing audio streams, but it works just fine with the semicolon url on shoutcasts)

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Problems/Questions | Sourcecode


Top
 Profile  
 
PostPosted: July 19th, 2011, 5:24 pm 
Offline
New User
New User

Joined: July 15th, 2011, 2:39 pm
Posts: 8
Mastacheata wrote:
Does it work without the semicolon, but with the mp3 ending? If you haven't tried yet, maybe you could check that again, I'm highly curious if that would work.
If this really needs to be with the semicolon, then either Apple built a shoutcast specific thing into their player software or this semicolon is some kind of webstandard I've never seen before.

The semicolon is just a shoutcast thing. There you don't have mountpoints but get the stream at http://hostname:port and for backwards compatibility there is this fake url with /;stream.mp3 attached to the normal url.
Haven't seen any documentation on that one, but have seen that lately in a flash player at a friend's station. (The flash player is normally not capable of playing audio streams, but it works just fine with the semicolon url on shoutcasts)

I've successfully tested it on iphone, ipad and blackberry !!
It worked as a charm !!
If you want, you can test it also in http://189.254.28.2:8000/;ipod.mp3
As I've told earlier, I had to put another encoder instance in SAM just to do this. If you want I can send you screenshots of the encoder config and a copy of my icecast.xml.
Thanks again Mastacheata !! :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group