|
|
#1 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Almost there. but....
Over the past few days I have been installing Shoutcast to a Dedicated Linux Server that I have remote access to.
I have followed the docs and the shoutcast server is running properly. However, this is my problem and where I am lacking understanding. I basically want to upload a bunch of mp3s to the content directory on my Dedicated Server and then link to a file where the mp3's will stream. The individual files stream properly as you can see a test here http://207.234.145.214:8014/content/test1.pls And from what I have learned, all I do is link to the listen.pls file and shoutcast will stream the files that are in the content directory in whatever order it decides. But, when I try to open up http://207.234.145.214:8014/listen.pls or http://207.234.145.214:8014/content/listen.pls But Listen.pls doesnt seem to work for me. I get an error that states "unsupported document" In real player but I know that Real Player supports shoutcast streams and the individual streamed mp3s played fine in it. Does anyone know - what I may be doing wrong? It seems like a simple concept for on demand audio. You install the Shoutcast Server then upload the mp3s into the content directory and pull up the listen.pls file and it streams.... Is this incorrect? Do I also have to run Winamp on my personal computer with the dsp plug in installed? I'm a little confused - thanks for the help.
|
|
|
|
|
|
#2 |
|
Forum King
|
Could be because I see nothing in the playlist file. The first one only shows:
[playlist] NumberOfEntries=1 File1=http://207.234.145.214:8014/ There is nothing to play in the file itself. I do get a 'Service Unavailable' error so it may be offline. The second file for some reason even though the link is a .pls file it keeps trying to download as a HTML file. Real Player would reject both for these reasons although the first one looks like it should work if you were online. 1001. FM - Megarock Radio - St. Louis Since 1998! Tune In Now! Corporate Radio Sucks! No suits, all rock! |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Thanks for the tip. I have figured out one of my problems. WHen I run ./sc_serv.conf it shows that everything is working properly. But when I disconnect from my telnet connection and try to run it gives the "error opening source socket another device is using this port". So I go in to the config file and change the port number to something else. I run ./sc_serv and it works great. THen I disconnect/reconnect and try to run it again and the error pops up again. Does anyone have a clue what could be causing this?
|
|
|
|
|
|
#4 |
|
Forum King
|
If yours runs like mine does it continues to run after I disconnect. I use SSH shell which is similar to telnet and even though I disconnect the program continues to run so if I were to log back in again and try to run it again I would get the same error because in reality it is still running and therefore still using the port. The only way to know for sure is when you log back in to reboot the server and then try running it.
1001. FM - Megarock Radio - St. Louis Since 1998! Tune In Now! Corporate Radio Sucks! No suits, all rock! |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
ahhhhhh. Ok that makes sense because that test file is still streaming fine. http://www.fireonthealtar2.net:8014/content/test1.pls
In reference to your first reply. I have two mp3s in my content directory - test1.mp3 and test2.mp3. You mentioned that I have nothing in my playlist file. I thought that the listen.pls autmoatically generates whatever is in my content directory? Is there a way to add to my listen.pls files? I really appreciate the help. Thanks man. |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Hey, one more quick note. - I want to make sure that what I want to do is possible with Shoutcast.
Can I upload mp3s to the content directory on a dedicated Linux server that I have remote access to and stream the station from there WITHOUT having to run Winamp and the dsp effect on my own personal computer? I am assuimng all I do is upload mp3's to my content directory and then pull up listen.pls and it streams the mp3's randomaly from my content file. WITHOUT me having to run Winamp on my personal computer. Am I right???? |
|
|
|
|
|
#7 |
|
Forum King
|
I've never actually used the on-demand streaming but I always assumed you just linked directly to the file. Maybe someone who uses it can be more helpful in that aspect but I do know you don't have to run any local servers to accomplish it.
1001. FM - Megarock Radio - St. Louis Since 1998! Tune In Now! Corporate Radio Sucks! No suits, all rock! |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Thanks for the help Rob. I will keep poking around. I can't remember a time when I did so much reading in just a few days. I am determined to get this up though. Right now, I am running sc_trans_040 on the Linux server and I am getting an error when it tries to read the mp3s in my playlist. It says "skipped". Plus I am still unable to pull up my listen.pls file. I will get back on this tomorrow. Time to go play outside or I may get cabin fever and go a little crazy if I stare at this computer screen any longer
Thanks for all the help and everyone who posts so much info to the forums. I definitely would not have made it this far without evryone's generous replies to those of us stumbling around a little! The FAQ is really good along with the two guides to On Demand Audio. Thanx for al the Support!
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
I have been reading through posts this morning and making changes to my files, but still can't get this to work. I installed the Shoutcast server in a directory I named "Shoutcast" I installed SC_Trans within that directory. Here is the error I continue to get when I run sc_trans_linux
<06/11/04@07:57:07> [MAIN] Error opening /shoutcast/content/SILENTNIGHT.mp3, ski pped <06/11/04@07:57:07> [MAIN] Error opening /shoutcast/content/SILENTNIGHT.mp3, ski pped I have tried several different mp3 files at different bitrates and I always get a skipped error like this. Here is what my playlist in example.lst looks like (my playlist is located in the same directory as sc_trans_linux) /shoutcast/content/martyrsprayer.mp3 /shoutcast/content/SILENTNIGHT.mp3 Here is a link to one of the files individualy that streams at 128K http://207.234.145.214:8014/content/martyrsprayer.pls It works on my end - please let me know if it does not work for you. My big problem though is that I still am unable to get http://207.234.145.214:8014/listen.pls to function. You can click and see for yourself. Anyone who has some experience with sc_trans and getting it to function correctly on a dedicated server (linux) - I would LOVE some help!!!! Thanks. |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Nov 2003
Posts: 262
|
Are the mp3's located in the /shoutcast/content/ directory?
|
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Jun 2004
Posts: 3
|
I'm having problems full stop with streaming mp3's from a content dir
Although I am using the WIN32 build of sc_serv. I cant seem to get the server to start reading from the content dir on demand, or at all for that matter. Help a newbie out :P |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Yes - the mp3's are in the shoutcast/content directory.
Cranz - Did you read through the two guides to "On Demand Audio" under the FAQ? |
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Jun 2004
Posts: 3
|
surely have,
keep getting "Invalid Resource" though. What I am trying to do, which I think I've realised isnt possible, is that people can still connect with the dsp plugin and stream music from their computers via the server, but if no one is streaming, it will stream from the webserver? |
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Nov 2003
Posts: 262
|
check the file permissions of the mp3s
|
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Hi - I just tried to chmod the two mp3 files to 775, 755 and even 555 and I still get the same error. MP3 skipped. Does anyone know what else could be causing this???? The files are 128 KB 44,1 - But I have tried several different mp3 formats....
Cranz - I have no idea. It seems to me I remember a post on that issue though, but I don't recall if the isse was solved or not. Sorry for the lack of help. I am having a difficult enough time just getting mp3 files to stream in a folder on a dedicated server. |
|
|
|
|
|
#16 |
|
Senior Member
Join Date: Nov 2003
Posts: 262
|
post your sc_trans.conf file
|
|
|
|
|
|
#17 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
OK - here it is... Thanks for helping out!
sc_trans accepts the following signals: ; HUP - flush logfiles (close and reopen) -- will make console logging stop ; WINCH - jump to next song ; USR1 - reload playlist off disk (will not interrupt current playing stream) ; USR2 - toggle shuffle on/off ; TERM - normal sc_trans shutdown (clean) ; PlaylistFile (required EVEN IF RELAYING) - playlist file (to create, use ; find /path/to/mp3/directory -type f -name "*.mp3" > playlist_filename.lst PlaylistFile=example.lst ; find /path/to/mp3/directory -type f -name "*.mp3" > playlist_filename.lst PlaylistFile=example.lst ; ServerIP/ServerPort are the target server to send to ServerIP=http://207.234.145.214 ServerPort=8014 ; Password is the password on the sc_serv you're sending to. Password=+++++ ; StreamTitle/URL/Genre define the data that appears on the directory and in the ; stream info. StreamTitle=Cross StreamURL=http://www.generationfire.com Genre=genres go here ; Logfile optionally denotes a text file to log sc_trans to. a kill -HUP ; will force a close and re-open of this file (but will also cease logging to ; the console) LogFile=sc_trans.log ; Shuffle the playlist Shuffle=1 ; Bitrate/SampleRate/Channels recommended values: ; 8kbps 8000/11025/1 ; 16kbps 16000/11025/1 ; 24kbps 24000/22050/1 ; 32kbps 32000/22050/1 ; 64kbps mono 64000/44100/1 ; 64kbps stereo 64000/22050/2 ; 96kbps stereo 96000/44100/2 ; 128kbps stere0 128000/44100/2 Bitrate=64000 SampleRate=44100 Channels=5 SampleRate=44100 Channels=5 ; Quality is from 1-10. 1 is best, 10 is fastest. Quality=5 ; Mode=0 for none, 1 for 100/100->100/0, 2 for 0/100->100/0 CrossfadeMode=1 ; Length is ms. CrossfadeLength=8000 UseID3=0 ; Public determines whether or not this station will show up in the directory Public=1 |
|
|
|
|
|
#18 |
|
Senior Member
Join Date: Nov 2003
Posts: 262
|
try setting the channels to channels=1
other than that it looks good |
|
|
|
|
|
#19 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
Hi - I set the Channels to 1 and Im still getting the same error. Does anyone know what else can cause this mp3 skip error??? really appreciate all of the responses.
|
|
|
|
|
|
#20 |
|
Junior Member
Join Date: Jun 2004
Posts: 15
|
If you get a second could you test these files and see if they work for you. I am confident this one will work for anyone
http://207.234.145.214:8014/content/martyrsprayer.pls But I am having a hard time getting this url to work which is the one that is really needed http://207.234.145.214:8014/listen.pls Any tipe anyone can give me on what could casue the errors with my Listen.pls file would be greatly appreciated. Also, if I am unable to get Shoutcast to work. Does anyone know another way that I can stream mp3's from a single folder off of a dedicated linux server? I hate to go to something else because I am so close, but I don't know what else to do to these files to get SC_Trans to work properly? Thanks for the help! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|