Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 14th January 2009, 18:26   #1
JimTrail
Junior Member
 
Join Date: Nov 2008
Posts: 11
sc_serv found introfile at startup but get error message when try to play

Hello;

I am having difficulty getting the introfile to play. When I try to play the introfile with the RealPlayer I get the following message:
Quote:
RealPlayer says this:

The clip cannot be played.
It contains unexpected data and may be corrupt.
The directory path is ok I think.

I am pretty sure that I have got the directory path to the introfile right. The startup found the introfile on my PC when I started the sc_serv from the command line. Here's the line from the logfile:

Quote:
<01/14/09@11:46:03> [main] introfile: c:\My Documents\radio\shoutcast\intro24.mp3
Here is a line from the logfile showing that there is an error trying to open the introfile:

Quote:
<01/14/09@11:30:28> [client: c:\My Documents\radio\shoutcast\intro24.mp3] Error opening intro file
I have saw from other threads in this forum that the samplerate/bitrate is an issue with the introfile. I don't know if that is my problem or not. If it is I don't see how to set the right samplerate/bitrate.

I have got the 5.31 version of Winamp. At the Encoder I have got the settings at 24kbps, 22.050kHz, Mono. I think that this is the bitrate. But I don't see anywhere how to set the samplerate.

Does anybody have any suggestions about how I can solve my problem?

Thanks.
JimTrail is offline   Reply With Quote
Old 14th January 2009, 22:06   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
Try encoding the intro file to what you stream at. Most audio software can change the sample rate for you. Audacity is a great free program that can do this for you.

Oh, your sample rate is 22.050 kHz.
fc*uk is offline   Reply With Quote
Old 15th January 2009, 02:59   #3
JimTrail
Junior Member
 
Join Date: Nov 2008
Posts: 11
fc*uk;

Thanks for responding to my question. I'll give it a try. I have already got the Audacity on my PC.

I'll do that tomorrow morning.

Thanks again.
JimTrail is offline   Reply With Quote
Old 18th January 2009, 16:10   #4
JimTrail
Junior Member
 
Join Date: Nov 2008
Posts: 11

.
.

I'm still having difficulties. (I changed the introfile to intro32.mp3 instead of intro24.mp3) Here is the Audacity program with the introfile:



.
.

Here is the drop down menu showing that the introfile is at 32 bits:



.
.

Here is the drop down showing it at 22050 Hz:



.
.

Here is the Winamp encoder showing 32kbps; 22.050 kHz; Mono



.
.

Here is Winamp showing the input a 22050 Hz



(image hosting courtesy Photobucket dot com)

.
.

The only difference I see is the Winamp encoder says 22.050 kHz and the Audacity rate says 22020 Hz - but I think that they mean the same thing.

The SHOUTcast broadcasts live just fine. It's just that I can't get the introfile to work.

I would appreciate any suggestions that anyone might have.

Thanks.
JimTrail is offline   Reply With Quote
Old 18th January 2009, 17:05   #5
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,140
Then I would guess that the problem you are having is going to be related to the path of the intro file. Start out easy and drop it your root C:\ directory and see if it works.
fc*uk is offline   Reply With Quote
Old 19th January 2009, 11:35   #6
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Just a side note,Its been a while since i used realplayer but i remember that it did not play the intro file of a shoutcast stream for some reason.

This may have been fixed over the years but try winamp with the stream and if it plays fine then realplayer still stucks .

But as fc*uk says for the other problem drop your intro into c:\ or the same folder where the sc_serv binary is located.
Jkey is offline   Reply With Quote
Old 21st March 2009, 17:48   #7
Slinkyfm
Junior Member
 
Join Date: Mar 2009
Posts: 2
This is a problem that we are aware of as well with Realplayer. However the problem has been around fro a while so I would not expect a fix anytime soon to Realplayer.
Slinkyfm is offline   Reply With Quote
Old 10th November 2009, 11:13   #8
coskel
Junior Member
 
Join Date: Feb 2007
Posts: 11
Linux server and intro file?

where would the intro file be located on a remote linux box?

IntroFile=C:\intro%d.mp3

is for Windows.

My web host suggested /usr/local/mp3, /var/ or /backup/ but none of those worked.

any suggestions? a search of the archives brought up this message and some Windows users, not Linux
coskel is offline   Reply With Quote
Old 12th November 2009, 11:30   #9
coskel
Junior Member
 
Join Date: Feb 2007
Posts: 11
SOLUTION - using intro.mp3 file on Linux

Hi all -

This is for those of you who have Shoutcast remotely on a Linux box and want to use the
IntroFile= C:\intro%d.mp3 to play a small promo, announcement, etc.

Most Linux distros have you install Shoutcast in the usr/local/ directory, and make a folder for Shoutcast.

Ex: usr/local/shoutcast - this is your "path" in Linux.

inside the shoutcast folder would be your sc_serv.conf file which you need to edit.

Line 33 - Change ;IntroFile=C:\intro%d.mp3

to

IntroFile=intro.mp3

and place the mp3 file INTO the usr/local/shoutcast directory, this means the mp3 file sits in the same folder as the sc_serv.conf file.

FTP the new verison of sc_serv.conf up.

RESTART SHOUTCAST.

NOTE: the mp3 MUST be the same bitrate as your stream - if your stream in SAM is 96kbps/44.1k, then the mp3 has to match or this will not work.
coskel is offline   Reply With Quote
Old 6th May 2016, 09:46   #10
drechami
Junior Member
 
Join Date: May 2016
Posts: 1
Hi all,
I noticed allot of issues with the intro file on Ubuntu/linux in this forum. Have to say that for me the only thing that worked is to edit the intro file in NERO Wave Editor® and save it as mp3PRO in the same samplerate/channels you stream in. Audiacity® did not work for me.
Place the intro file into the same dir as your sc_serv.conf file (usually the /server dir)
Edit your sc_serv.conf file and put this line "streamintrofile=intro128.mp3 " (without the quotes) In my case, my stream is 128kb/44.1
Restart the DNAS and works like a charm!! :-D
drechami is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump