Old 17th January 2007, 20:40   #1
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
content (on-demand) not running

subject: content on-demand not running

Hello,

I am an Internet bcast and SHOUTcast newbee.
Have WinAmp, DSP and Server on same XP home machine.
The DSP and server are currently sitting behind a router and firewall, so all testing is very local.
I understand routers and firewalls are not recommended for production operation.
At this point, I'm simply trying to understand the DSP and sc_server concepts, fundamentals and parameters.

The DSP and server are working since I can tune in to the test broadcast from another laptop.
The intro and backup files are working as advertised, and this is 2/3 of the 'broadcast' at this point in testing.
The other 1/3 of the broadcast is an mp3 file in the 'content' folder. This mp3 does not stream after the intro file has finished.

I admit to ignorance at this point and am looking for direction in understanding this very basic funtionality of the server and file type/format/structure requirements before moving to more complex concepts and functionality.

My question regards how to stream the mp3 file in the 'content' folder after the intro file has finished. I am apparently misreading or misunderstanding the sc_serv.ini comments regarding the [ContentDir] parameter.


Question:
How does one config the sc_serv.ini and the DSP to stream an mp3 in the 'content' folder after the intro%d.mp3 has played?

Question:
Is the method of playing a file from the 'content' folder when WinAmp attaches to this steam considered 'on-demand?'


Here's my procedure...

Launch WinAmp
Launch sc_serv.exe
Connect DSP plug-in to server
Play WinAmp

intro%d.mp3 plays
Content mp3 does not play
wait :30 seconds dead air
backup%d.mp3 plays and repeats (perAutoDumpSourceTime parameter)

Stop WinAmp
backup%d.mp3 stops

Play WinAmp
intro%d.mp3 plays
Content mp3 does not play
Disconnect DSP Plug-in
backup%d.mp3 plays and repeats

...

Here's the troubleshoot so far...

DSP SHOUTcast source:
Encoder 2
mp3 Encoder
Encoder setting is 24kbps mono

Files being streamed:
intro%d.mp3, the Content folder mp3 and backup%d.mp3 are SHOUTcast mp3 ads from the DJ section of SHOUTcast downloads.
> intro%d.mp3 is scpromo-radiofreeinet.mp3 named intro24.mp3
> content folder contains scpromo-shiznat.mp3 named scpromo-shiznat24.mp3
> backup%d.mp3 is scpromo-milk.mp3 named backup24.mp3

Found and read a forum thread regarding this very problem: http://forums.winamp.com/showthread....ht=.%2Fcontent

Noted (spaceplay): content folder path for windows conforms to this requirement
Noted: mp3 files should be same bit rate as DSP (24 in my case). I'm assuming that since the SHOUTcast mp3 ads work for intro and backup they should also work for 'content.'
Noted (Sawg): "You still need to be playing something in Winamp. The DNAS does not source it's self."
WinAmp is playing and both intro and backup can be heard.

Noted (Sawg): "The Content directory does not make a live stream."
This is confusing to a beginner. At this point, I wish to stream on-demand a file from the 'content' folder after the intro file has streamed. I will wish to stream live later on, but for now, wish to sample each of the features of the sc_server in the simplest manner possible.

Thanks in advance for any help this forum can provide.

David



sc_serv.ini
-----------
; SHOUTcast Distributed Network Audio Server configuration file
; Copyright (C) 1998-2004 Nullsoft, Inc.
; All Rights Reserved.
; Last modified Mar 17 2004
; sc_serv.exe sc_leet.conf

; ***************************
; Required stuff
; ***************************

MaxUser=5
Password=**********
PortBase=8000

; ***************************
; Optional Parameters
; ***************************

; ***************************
; Logging configuration
; ***************************

LogFile=sc_serv.log
RealTime=1
ScreenLog=1
ShowLastSongs=10
; TchLog=yes
; WebLog=no
W3CEnable=Yes
W3CLog=sc_w3c.log

; ***************************
; Network configuration
; ***************************

SrcIP=ANY
DestIP=ANY
Yport=80

NameLookups=0
; RelayPort=8000
; RelayServer=192.168.1.58

; ***************************
; Server configuration
; ***************************

; AdminPassword=adminpass
AutoDumpUsers=0
AutoDumpSourceTime=30

; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
; ContentDir specifies the directory location on disk of where to stream
; on-demand content from. Subdirectories are supported as of DNAS 1.8.2.
; Default is ./content, meaning a directory named content in the same directory
; as where sc_serv was invoked from.
; ContentDir=./content
ContentDir=C:\Program Files\SHOUTcast\content\
IntroFile=C:\Program Files\SHOUTcast\introfile\intro%d.mp3
BackupFile=C:\Program Files\SHOUTcast\backupfile\backup%d.mp3
; //////////////////////////////////////////////////////////////////////////////


TitleFormat=Title Goes Here: %s
; URLFormat=http://www.server.com/redirect.cgi?url=%s

PublicServer=default
AllowRelay=Yes
AllowPublicRelay=Yes
MetaInterval=8192


; *****************************
; Access Control
; *****************************

; ListenerTimer=600
; BanFile=sc_serv.ban
; RipFile=sc_serv.rip
; RIPOnly=No

; *****************************
; Extended Logging
; *****************************

; ***************************
; Mass Configuration
; ***************************

; Unique=my_server
; Include=/usr/local/shoutcast/common.conf
; Default is not applicable.

; *****************************
; Tweaks
; *****************************
;
; CpuCount=1
; Sleep=833
; CleanXML=No
;
; TAG RULES



sc_serv.log
-----------

<01/16/07@22:33:10> [SHOUTcast] DNAS/win32 v1.9.7 (Jun 23 2006) starting up...
<01/16/07@22:33:10> [main] loaded config from C:\Program Files\SHOUTcast\sc_serv.ini
<01/16/07@22:33:10> [main] initializing (usermax:5 portbase:8000)...
<01/16/07@22:33:10> [main] introfile: C:\Program Files\SHOUTcast\introfile\intro%d.mp3
<01/16/07@22:33:10> [main] No ban file found (sc_serv.ban)
<01/16/07@22:33:10> [main] No rip file found (sc_serv.rip)
<01/16/07@22:33:10> [main] opening source socket
<01/16/07@22:33:10> [main] source thread starting
<01/16/07@22:33:10> [main] opening client socket
<01/16/07@22:33:10> [source] listening for connection on port 8001
<01/16/07@22:33:10> [main] Client Stream thread [0] starting
<01/16/07@22:33:10> [main] client main thread starting
<01/16/07@22:33:18> [source] connected from 127.0.0.1
<01/16/07@22:33:18> [source] icy-name:Title Goes Here: Station Under Construction and Testing ; icy-genre:Talk
<01/16/07@22:33:18> [source] icy-pub:0 ; icy-br:24 ; icy-url:http://www.shoutcast.com
<01/16/07@22:33:18> [source] icy-irc:#shoutcast ; icy-icq:0 ; icy-aim:N/A
<01/16/07@22:33:18> [source] Read 88821 bytes from Intro File
<01/16/07@22:33:18> [source] Read 97161 bytes from Backup File
<01/16/07@22:33:21> [dest: 192.168.1.101] starting stream (UID: 0)[L: 1]{A: WinampMPEG/5.32}(P: 0)
<01/16/07@22:33:58> [source] no data (30s timeout). disconnecting.
<01/16/07@22:34:25> [dest: 192.168.1.101] connection closed (64 seconds) (UID: 0)[L: 0]{Bytes: 256860}(P: 0)
<01/16/07@22:34:28> [source] connected from 127.0.0.1
<01/16/07@22:34:29> [source] icy-name:Title Goes Here: Station Under Construction and Testing ; icy-genre:Talk
<01/16/07@22:34:29> [source] icy-pub:0 ; icy-br:24 ; icy-url:http://www.shoutcast.com
<01/16/07@22:34:29> [source] icy-irc:#shoutcast ; icy-icq:0 ; icy-aim:N/A
<01/16/07@22:34:36> [dest: 192.168.1.101] starting stream (UID: 1)[L: 1]{A: WinampMPEG/5.32}(P: 0)
<01/16/07@22:34:49> [source] source dropped connection. disconnecting.
<01/16/07@22:35:01> [dest: 192.168.1.101] connection closed (26 seconds) (UID: 1)[L: 0]{Bytes: 256859}(P: 0)
David Sadler is offline   Reply With Quote
Old 18th January 2007, 00:37   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,142
I believe that you have misunderstood the use of the ./content directory.

Build a playlist in winamp and play that. Have the dsp connect to dnas and you will be streaming music.

No matter what is playing in winamp, people just tuning in will hear the intro file and then what ever is currently streaming (even if it is half way through it, they will start half way through it).
fc*uk is offline   Reply With Quote
Old 18th January 2007, 18:26   #3
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
Fc*uk: "I believe that you have misunderstood the use of the ./content directory."

Here's the sc_serv.ini ContentDir param comment. It implies that the dnas is going to look at this directory (folder) for content to stream. The comment specifies that subdirectories are also supported. If files are not to be placed in the content directory or folders it might contain, why is it necessary to specify a path to the 'content' folder or even support subdirectories?

; ContentDir specifies the directory location on disk of where to stream
; on-demand content from. Subdirectories are supported as of DNAS 1.8.2.
; Default is ./content, meaning a directory named content in the same directory
; as where sc_serv was invoked from.
; ContentDir=./content

Here is the path for the ContentDir parameter as I have it defined. Is there anything wrong with this path's structure?

ContentDir=C:\Program Files\SHOUTcast\content\

I have defined the paths to IntroFile and BackupFile essentially the same as for ContentDir except a specific file is specified for the intro and backup. These work under specific conditions which I will describe later.

IntroFile=C:\Program Files\SHOUTcast\introfile\intro%d.mp3
BackupFile=C:\Program Files\SHOUTcast\backupfile\backup%d.mp3

So my questions regarding the function of the ContentDir parameter are ...

If a file or files are not to be placed in the 'content' folder,
1) why is there any need to specify the path to this folder?
2) why is there any need to support subdirectories in this folder?
3) where is the pointer data element (field, selection) in the DSP that points to this folder? Perhaps this setting needs to be repointed???
4) what is the specific function of the ContentDir parameter?

Thanks, Fc*uk for your interest in this matter. Following posts will point out other specific problems I am having getting the dsp/dnas to work for me in a very simple test environment. These will relate to your suggestions to get the playlist to play from WinAmp.
David Sadler is offline   Reply With Quote
Old 18th January 2007, 18:41   #4
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,548
You are mistaken. FC is correct.

The files in the contentdir are for a special DNAS function called On Demand -- you can specify these files to play, one at a time by calling them by /contentdir/mp3filename.pls (replace .mp3 with .pls) -- the single file will be delivered to a listener and will play from beginning to end, then stop. If you want to do that, you do not need WinAMP, but these "plays" to not count as listeners, and there is no way to chain the files into a playlist -- The DNAS status is "down" when there is no source like WinAMP providing a continuous DSP-encoded stream. On Demand is independent of the DSP.
djSpinnerCee is offline   Reply With Quote
Old 18th January 2007, 22:16   #5
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
--- Renaming the content file & editing the ContentDir path ---

djSpinnerCee: "/contentdir/mp3filename.pls"

I tried nameing "scpromo-shiznat.mp3" as "ondemand24.pls" and specified the path as this...
ContentDir=C:\Program Files\SHOUTcast\content\ondemand%d.pls

I also tried nameing "scpromo-shiznat.mp3" as "ondemand.pls" and specified the path as this...
ContentDir=C:\Program Files\SHOUTcast\content\ondemand.pls

The dnas was restarted after each .ini edit.
The dps was disconnected before reconnecting to the dnas.

...
I tried to connect to the server from the server's IE browser like this...
http://192.168.1.101:8000/content/ondemand24.pls

and like this...
http://192.168.1.101:8000/content/ondemand.pls

In both instances, IE 7 displayed "invalid resource" and nothing was heard.


Next...

I launched the dnas and connected the dsp.
I connected to the dnas from the IE browser like this...

http://192.168.1.101:8000/listen.pls

This launched WinAmp.

In both instances, the intro file was heard on connect.
In both instances, the backup file was heard on timeout.
In both instances, the '/content/ondemand.pls' file was NOT heard.

I note in the log that both the intro file and the backup file are being 'Read' by the dnas.
I see no entry in the log for 'reading' the 'content' file.

<01/18/07@13:35:30> [source] Read 88821 bytes from Intro File
<01/18/07@13:35:30> [source] Read 97161 bytes from Backup File
<01/18/07@13:35:32> [dest: 192.168.1.101] starting stream (UID: 0)[L: 1]{A: WinampMPEG/5.32}(P: 0)
<01/18/07@13:36:08> [source] no data (30s timeout). disconnecting.

Suggestions on how to hear on-demand an .mp3 renamed as .pls and residing in the ContentDir?


--- Leaving WinAmp (and the DSP) out of the loop ---

djSpinnerCee: "the single file will be delivered to a listener and will play from beginning to end, then stop. If you want to do that, you do not need WinAMP ..."


Question: But do we still need the DSP to be connected to the DNAS?
Question: Can the DSP be launced without launching WinAmp?

I started the dnas but did not connect the dsp.
I attempted to connect to the /content/ondemand.pls directly from the browser...

http://192.168.1.101:8000/content/ondemand24.pls

... where ContentDir=C:\Program Files\SHOUTcast\content\ondemand%d.pls

and recieved an "invalid resourse" browser error.


djSpinnerCee: "...The DNAS status is "down" when there is no source like WinAMP providing a continuous DSP-encoded stream. On Demand is independent of the DSP."

With the dnas running but the dsp disconnected, I browsed to the admin page...
http://192.168.1.101:8000/
and, indeed, the server status was down.

I then clicked listen. Nothing was heard.

I then connected the dsp to the dnas and browsed to http://192.168.1.101:8000/ again. This time, when I clicked 'listen' the intro file played on connect and the backup file played on timeout.

Question: When you say the dsp is not required for on-demand streaming from a server, do you mean the dsp does not need to be connected to the dnas? Based on this test, I am confused and still haven't been able to experience on-demand streaming from the dnas.

...
Finally, I noted that on several occassions, the IE 7 address bar changed to this address...

http://192.168.1.101:8000/content/music.pls

I did not specify this address or path anywhere so I changed the name of the on-demand .pls file to "music.pls" and edited the .ini ContentDir param to both...

ContentDir=C:\Program Files\SHOUTcast\content\

... and ...

ContentDir=C:\Program Files\SHOUTcast\content\music.pls

Neither change produced an on-demand stream from ContentDir.

Can you actually make this work on your machine?

Thanks,
David Sadler is offline   Reply With Quote
Old 18th January 2007, 22:20   #6
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,142
dude. listen to us. please. I believe you my have misunderstood the last post...

The content directory is for on demand streaming. You want to do live streaming. Two different things. Thus, that content directory will NOT work for what you are trying to do.

The winamp DSP connects to DNAS... and nothing else really. without winamp running you can not stream music to dnas. end of story.

I hope this helps.
fc*uk is offline   Reply With Quote
Old 18th January 2007, 23:02   #7
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
Fc*uk: "The content directory is for on demand streaming."

I am trying to test that functionality.
Show me by example how to stream one of the SHOUTcast mp3 ads from the 'content' directory.
I will need to see the path entered into the sc_serv.ini ContentDir parameter.
I will also need to see the file name in the broadcaster's 'content' directory.

I have followed the comments for the ContentDir parameter.
I have modified those instructions per jdSpinnerCee in this thread and spaceplay's instructions in the thread found here...
http://forums.winamp.com/showthread...ght=.%2Fcontent

I worked diligently to provide as much exact information as I could and to show that I tried to perform per the instructions being given.

I know, Fc*uk, that I am misunderstanding much as I am a beginner, but I am being specific in what I have tried, why I tried it and the results of the trial.

You must admit that the ContentDir comments on how the parameter works are very inadequate when compared to the IntroFile and BackupFile parameter comments. Those two functions worked immediately on the server laptop, but the ContentDir param has yet to deliver an on-demand stream. Why is that?

Which instruction from djSpinnerCee did not not follow correctly?

...

Fc*uk: "You want to do live streaming."

I will provide live broadcasts and canned podcasts. Neither of these actually will use the on-demand function of the SHOUTcast DNAS. However, since I am trying to understand the functionality of the DNAS and its parameters, I wish to successfully experience on-demand streaming before I try live streaming and live streaming before I try relay serving.


Fc*uk: "The winamp DSP connects to DNAS ... without winamp running you can not stream music [anything] to dnas."

That too is my understanding. Without the DSP running, there is no source for the DNAS to stream. I understand at least that much.

What I don't understand at present is why the intro and backup files work as advertised when listened to from the server, but the ContentDir functionality does not work. I'm sure this is user error in the declaration of the ContentDir parameter and/or the misnaming of the file to be steamed on-demand. All three functions are controlled by the dnas, so why is ContentDir not working?

I'm just asking someone to show me [by example] what I am doing wrong given that I have provided my platform configs, OS and software versions, network config, sc_serv.ini parameter declarations and DSP settings.

I appreciate any help provided and I do appreciate the interest you and djSpinnerCee have shown.
David Sadler is offline   Reply With Quote
Old 18th January 2007, 23:18   #8
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,142
Alright....

If you want on demand specify:
ContentDir=C:\Program Files\SHOUTcast\content\

Say you have a file in there called: TheBestMusic.mp3.

Do nothing to TheBestMusic.mp3 file.

Tell DNAS the content directory is: ContentDir=C:\Program Files\SHOUTcast\content\TheBestMusic.pls (yes, I know, it does not really exist. Just tell DNAS it is there).

After the intro plays, that one single file will be played and then the stream will stop.

Does this make it a little more clear for you....

[opinion]

If this is something that you never forsee yourself using, then I personally would not spend time trying to figure out how it works....

[/opinion]
fc*uk is offline   Reply With Quote
Old 19th January 2007, 01:16   #9
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
Much more clear, Fc*uk. Thanks.

Fc*uk: "Tell DNAS the content directory is: ContentDir=C:\Program Files\SHOUTcast\content\TheBestMusic.pls"

--- from sc_serv.ini ---
ContentDir=C:\Program Files\SHOUTcast\content\scpromo-dotcom.pls


Fc*uk: "you have a file in there called: TheBestMusic.mp3 ... it [the .pls extension] does not really exist. Just tell DNAS it [TheBestMusic.pls] is there ..."

--- from server C: drive ---
C:\Program Files\SHOUTcast\content\scpromo-dotcom.mp3


Fc*uk: "After the intro plays, that one single file will be played and then the stream will stop."

Edit made to sc_serv.ini ContentDir parameter path to specify .pls extension.
ini file saved and closed.
DNAS killed.
Double check: content folder's physical file extension is .mp3.
DNAS restarted.
DSP connected.

From server, browse to...
http://192.168.1.101:8000/

Click 'Listen' link...

Intro plays on connection.
:30 of dead air. On-demand content does not play.
Backup plays and loops.

The log is below.

The reason this is important is to verify the integrity of the install and the configuration of the initialization scripts and settings. Not to mention my understanding of the basic operations of this DNAS since I will be the sysadmin in the beginning.

What are your thoughts and [opinion] now?

I will try live stream with a mic into server laptop tomorrow.


--- log ---
<01/18/07@17:49:14> [SHOUTcast] DNAS/win32 v1.9.7 (Jun 23 2006) starting up...
<01/18/07@17:49:14> [main] loaded config from C:\Program Files\SHOUTcast\sc_serv.ini
<01/18/07@17:49:14> [main] initializing (usermax:5 portbase:8000)...
<01/18/07@17:49:14> [main] introfile: C:\Program Files\SHOUTcast\introfile\intro%d.mp3
<01/18/07@17:49:14> [main] No ban file found (sc_serv.ban)
<01/18/07@17:49:14> [main] No rip file found (sc_serv.rip)
<01/18/07@17:49:14> [main] opening source socket
<01/18/07@17:49:14> [main] source thread starting
<01/18/07@17:49:14> [main] opening client socket
<01/18/07@17:49:14> [main] Client Stream thread [0] starting
<01/18/07@17:49:14> [source] listening for connection on port 8001
<01/18/07@17:49:14> [main] client main thread starting
<01/18/07@17:49:19> [source] connected from 127.0.0.1
<01/18/07@17:49:20> [source] icy-name:This Title from DNAS TitleFormat parameter: This description is from WinAmp DSP Yellow Pages Description ; icy-genre:Talk
<01/18/07@17:49:20> [source] icy-pub:0 ; icy-br:24 ; icy-url:http://www.shoutcast.com
<01/18/07@17:49:20> [source] icy-irc:#shoutcast ; icy-icq:0 ; icy-aim:N/A
<01/18/07@17:49:20> [source] Read 88821 bytes from Intro File
<01/18/07@17:49:20> [source] Read 97161 bytes from Backup File
<01/18/07@17:49:27> [dest: 192.168.1.101] starting stream (UID: 0)[L: 1]{A: WinampMPEG/5.32}(P: 0)
<01/18/07@17:50:03> [source] no data (30s timeout). disconnecting.
David Sadler is offline   Reply With Quote
Old 19th January 2007, 01:27   #10
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,548
No. FC made a typo:

ContentDir is always a path, never a file so:

ContentDir=C:\...\SHOUTcast\content\scpromo-dotcom.pls

cannot be right. it should look lile

ContentDir=C:\...\SHOUTcast\content\

You request the .mp3 file in that directory using a URL:

http://yordnas:port/content/scpromo-dotcom.pls

the DNAS will send a pls containing File= parameter for scpromo-dotcom.mp3 that will be loaded by the listener.

That's it -- nothing more here.

If you really want a radio forget about ContentDir, it all happens in WinAMP+DSP.

Open WinAMP, Create a [New] playlist -- add some .mp3s and press play, the playlist should be set to loop [repeat]. The DSP should be selected as the only DSP [if not, the DSP is not gonna work] -- config the DSP for your DNAS server -- fill in all tabs, Connection and Yellowpages -- this defines your radio station. Connect to the DSP -- if your connection settings are correct it will start streaming, the DNAS will also start displaying messages -- now you're On-Air.
djSpinnerCee is offline   Reply With Quote
Old 19th January 2007, 02:20   #11
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
djSpinnerCee: "ContentDir is always a path, never a file so ... it should look like
ContentDir=C:\...\SHOUTcast\content\"

--- from sc_serv.ini ---
ContentDir=C:\Program Files\SHOUTcast\content\

--- from server C: drive ---
C:\Program Files\SHOUTcast\content\scpromo-dotcom.mp3



djSpinnerCee: "You request the .mp3 file in that directory using a URL:
http://yordnas:port/content/scpromo-dotcom.pls"


--- call from server based IE 7 browser ---
http://192.168.1.101:8000/content/scpromo-dotcom.pls


This call gave an "invalid resource" browser error.


--- call from server based IE 7 browser ---
http://192.168.1.101:8000/

Click "Listen" link...

You know the rest.
intro plays on connect.
:30 dead air. No content played.
backup plays and loops.


Have you guys tried this to see if it works?
Have either of you ever seen ContentDir work?

...

djSpinnerCee: "If you really want a radio forget about ContentDir, it all happens in WinAMP+DSP.
Open WinAMP,
Create a [New] playlist,
add some .mp3s,
the playlist should be set to loop [repeat],
press play,
The DSP should be selected as the only DSP [if not, the DSP is not gonna work]"

Of course I will try that just to test the basic functions out.
But I will be feeding through a sound card connected to an audio interface connected to a mixer connected to a mic or two and a digital telephone hybrid for taking phone calls on the air.

Where does one set or select the DSP as "the only DSP?"
What DSP tab is this on?
What setting?
This sounds important, and I haven't see anything along these lines.
Neither did I see such a setting in the demos at StreamSolutions.

Thanks, djSpinnerCee, for your willingness to help.
David Sadler is offline   Reply With Quote
Old 19th January 2007, 13:59   #12
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,548
OK:

Yes, I have gotten ContentDir to work:

http://djspinnercee.servemp3.com:100...nt/scpromo.pls

This works without specifying the option at all, with scpromo.mp3 in the DNAS ./content directory.

; ContentDir=./content

with the option commented out it defaults to the content directory that's already there.

----

If the DSP window is open and you can see it, it's the only DSP selected.
djSpinnerCee is offline   Reply With Quote
Old 20th January 2007, 08:28   #13
David Sadler
Junior Member
 
Join Date: Apr 2006
Location: Illinois, USA
Posts: 9
djSpinnerCee: "If the DSP window is open and you can see it, it's the only DSP selected."

Roger that. Thanks.

...

djSpinnerCee: "I have gotten ContentDir to work:
http://djspinnercee.servemp3.com:10001/content/scpromo.pls
This works without specifying the option at all, with scpromo.mp3 in the DNAS ./content directory.
; ContentDir=./content
with the option commented out it defaults to the content directory that's already there."

Congratulations! That's thinking out of the box! It certainly shows the comment regarding its use in the sc_serv.ini is a bit misleading.

Unfortunately, replicating the same on my system gives me the "invalid resource" error in the IE7 browser. Are you using IE7?

Your link works. I listened to it. So I'm wondering now about my install or config. Since I can access the server admin page and 'Listen' to the intro and backup file being streamed from the server laptop, a connection to the dnas is being made. I still can not put into words the exact problem, however. I can only report the symptoms.

From the local client laptop, nothing plays except the intro file then the connection to the server is dropped even though the playlist is being played.

<01/20/07@01:06:51> [SHOUTcast] DNAS/win32 v1.9.7 (Jun 23 2006) starting up...
<01/20/07@01:06:51> [main] loaded config from C:\Program Files\SHOUTcast\sc_serv.ini
<01/20/07@01:06:51> [main] initializing (usermax:5 portbase:8000)...
<01/20/07@01:06:51> [main] introfile: C:\Program Files\SHOUTcast\introfile\intro%d.mp3
<01/20/07@01:06:51> [main] No ban file found (sc_serv.ban)
<01/20/07@01:06:51> [main] No rip file found (sc_serv.rip)
<01/20/07@01:06:51> [main] opening source socket
<01/20/07@01:06:51> [main] source thread starting
<01/20/07@01:06:51> [main] opening client socket
<01/20/07@01:06:51> [source] listening for connection on port 8001
<01/20/07@01:06:51> [main] Client Stream thread [0] starting
<01/20/07@01:06:51> [main] client main thread starting
<01/20/07@01:07:26> [source] connected from 127.0.0.1
<01/20/07@01:07:26> [source] icy-name:This Title from DNAS TitleFormat parameter: This description is from WinAmp DSP Yellow Pages Description ; icy-genre:Talk
<01/20/07@01:07:26> [source] icy-pub:1 ; icy-br:24 ; icy-url:http://www.shoutcast.com
<01/20/07@01:07:26> [source] icy-irc:#shoutcast ; icy-icq:0 ; icy-aim:N/A
<01/20/07@01:07:26> [source] Read 88821 bytes from Intro File
<01/20/07@01:07:26> [source] Read 97161 bytes from Backup File
<01/20/07@01:07:27> [dest: 207.200.98.1] starting stream (UID: 0)[L: 1]{A: SHOUTcast Directory Tester}(P: 0)
<01/20/07@01:07:38> [dest: 207.200.98.1] connection closed (0 seconds) (UID: 0)[L: 0]{Bytes: 98304}(P: 0)
<01/20/07@01:07:39> [yp_add] yp.shoutcast.com added me successfully
<01/20/07@01:07:40> [dest: 192.168.1.102] starting stream (UID: 1)[L: 1]{A: iTunes/7.0.2 (Windows; N)}(P: 0)
<01/20/07@01:07:49> [dest: 192.168.1.102] connection closed (9 seconds) (UID: 1)[L: 0]{Bytes: 1159****(P: 0)
<01/20/07@01:08:01> [source] source dropped connection. disconnecting.
<01/20/07@01:08:01> [main] connecting to yp.shoutcast.com to remove myself [no source]
<01/20/07@01:08:02> [yp_rem] yp.shoutcast.com removed me!
<01/20/07@01:09:39> [main] shutting down via UI.
<01/20/07@01:09:39> [main] connecting to yp.shoutcast.com to remove myself before I die...

My config and settings are on-line at this url:

http://www.david-sadler.org/radio/page/tech/shoutcast/frame.htm
David Sadler is offline   Reply With Quote
Old 20th January 2007, 14:06   #14
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,142
Quote:
; ContentDir specifies the directory location on disk of where to stream
; on-demand content from. Subdirectories are supported as of DNAS 1.8.2.
; Default is ./content, meaning a directory named content in the same directory
; as where sc_serv was invoked from.
; ContentDir=./content
; ContentDir=C:\Program Files\SHOUTcast\content\

IntroFile=C:\Program Files\SHOUTcast\introfile\intro%d.mp3
BackupFile=C:\Program Files\SHOUTcast\backupfile\backup%d.mp3
Bold lines have something to do with it I'll bet. Only specify the content directory once. Secondly, if there is a semicolon (;) before the line that tells dnas to ignore that parameter. I know that, for a default value leaving the line commented out can also tell dnas to use the default....

However, just try to remove one of the lines and uncomment the line using the default (./content) and see if that works for you.
fc*uk is offline   Reply With Quote
Old 20th January 2007, 15:14   #15
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,548
Some other things to consider:

I had to tweak the scpromo.mp3 because it was so short -- I had to add 10 seconds of silence to the end so that the whole thing [all 8 secs.] would play.

/content/scpromo.pls

Don't get too tricky with .mp3 filenames -- you will almost certainly have trouble with filenames containing chars that need to be URL-escaped -- spaces, symbols, international chars, and punctuation may break the process of generating the .pls file with a proper .mp3 target File=.

The trailing slash, or the absence of it in the ContentDir specification may also make a difference -- the default has no trailing slash. Also notice the direction of the slashes -- "/" or "\" may be important.

The best thing is to start with the default and get it to work, the see how easy it is to break -- that's why ths feature is not often used or even talked about around here. There are just too many limitations on how useful it can be.
djSpinnerCee 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