Old 6th March 2012, 17:56   #1
Deleted #33
Guest
 
Posts: n/a
Transcoder Error

I don't understand this error:

./sc_trans_simple.conf: line 1: syntax error near unexpected token `;'
./sc_trans_simple.conf: line 1: `; NOTE: for any relative paths specified are relative to'

Got the server running okay but then I had this transcoder issue. I'm stuck.

Also, where do I put the unlock name and key?

Please help...

Note:

Sorry in advance because I posted twice.
  Reply With Quote
Old 6th March 2012, 18:26   #2
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,012
Send a message via Skype™ to thinktink
Auth hashes go into the DNAS.

MP3 Unlock Name/Code goes into the Transcoder.

Copy and paste the very first line from your Transcoder configuration into your next post so we can diagnose it.
thinktink is offline   Reply With Quote
Old 6th March 2012, 19:40   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by notchfiend View Post
Also, where do I put the unlock name and key?
is mentioned at http://wiki.winamp.com/wiki/SHOUTcas...eaming_License and http://wiki.winamp.com/wiki/SHOUTcas...tream_Encoding (not including the same copy which is also present in the install / archive).

as for the error, there is nothing directly in sc_trans which will even show that. i'd go as far to suspect you're not running sc_trans correctly (as that looks more like a command line error message).

-daz
DrO is offline   Reply With Quote
Old 6th March 2012, 19:43   #4
Deleted #33
Guest
 
Posts: n/a
The first for lines of my simple config files are:

; NOTE: for any relative paths specified are relative to
; sc_trans and not to where the conf file is being stored
(space)
(space)


The (spaces) are mine and denote actual, blank returns.

I edited the transcoder file with TextEditor (Mac) then uploaded it to my CentOS server. I know the TextEditor part probably doesn't matter. Just being thorough.

Previously, before I upped the Transcoder, I was able to get the Server to work. Now it gives the exact, same error as the Transcoder. I realize they're dependent on each other if one wishes to broadcast in MP3 (I do).

I hope this helps.

TIA
  Reply With Quote
Old 6th March 2012, 20:47   #5
Deleted #33
Guest
 
Posts: n/a
DrO.
I should have specified. Where in the Transcoder config file does the unlock go? Does it matter, top or bottom?

As to the command issue, when I use the line:
./sc_serv sc_trans_simple.conf (as written in the Linux 64-bit 'getting_started.txt'; cut and pasted into the command prompt)
I, naturally, get the error
-bash: ./sc_serv: No such file or directory

Using the command:
./sc_trans_simple.conf
I get the error I mentioned in my very first post on this subject.

I am running both the Server and the Transcoder in the root directory of my server. They are separate folders.

I'm doing all of this manually. Should I use the config_builder?
  Reply With Quote
Old 6th March 2012, 21:24   #6
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,012
Send a message via Skype™ to thinktink
Odd.

(Re)download the 64 bit version of the tools and install to the same folder. Just to eliminate the possibility of some kind of weird 32 to 64 bit incompatibility on your system (have seen it before with whacked linux installs.)

Make sure you are in the same directory/folder as where the tools are installed into before issuing the commands to start the DNAS or Transcoder.

It may not have set the permissions correctly to allow running the tools. To make sure, issue the following commands:
code:
chmod 755 sc_serv
code:
chmod 755 sc_trans


Then try:
./sc_serv sc_serv_simple.conf

./sc_trans sc_trans_simple.conf

[EDIT/]
If all else fails, wipe the install folder(s) and then have a look here, just to get you over the hump.
http://forums.winamp.com/showthread....86#post2842186

[EDIT2/]
Almost forgot, it doesn't matter exactly where in the configuration you put the MP3 Unlock Name/Key, top, bottom, middle, anywhere. Just anywhere in the configuration is fine.
thinktink is offline   Reply With Quote
Old 6th March 2012, 22:10   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by notchfiend View Post
Where in the Transcoder config file does the unlock go? Does it matter, top or bottom?
anywhere will do - as long as it's in there then it will be read.

Quote:
Originally Posted by notchfiend View Post
As to the command issue, when I use the line:
./sc_serv sc_trans_simple.conf (as written in the Linux 64-bit 'getting_started.txt'; cut and pasted into the command prompt)
I, naturally, get the error
-bash: ./sc_serv: No such file or directory

Using the command:
./sc_trans_simple.conf
I get the error I mentioned in my very first post on this subject.
i've highlighted two parts in red which i think are your issue.

with the first one if you're trying to start sc_trans than it needs to be ./sc_trans sc_trans_simple.conf (is a typo in the docs though i'd have hoped that would have been noticed and corrected instead of just copy+pasting). i've updated the online version, the shipped version will be updated the next time there is a sc_trans update.

with the second one, i was right and it is from the shell throwing the error since sc_trans isn't even included (as per my note for the first issue).

-daz
DrO is offline   Reply With Quote
Old 6th March 2012, 23:07   #8
Deleted #33
Guest
 
Posts: n/a
thinktink

All that worked except I get this msg when I tried the server:
msg:Error opening port 8000 because Could not bind to :8000 because Address already in use

Doesn't that mean there is already an instance of the Server open?

Furthermore, when I try the Transcoder, I get the error:
I msg:[STREAM] 202292916 Creating stream socket
2012-03-06 18:32:48 I msg:[STREAM] 202292916 Resolving stream host
2012-03-06 18:32:48 W msg:[STREAM] 202292916 Error resolving stream host [waiting 30s]
2012-03-06 18:33:18 W msg:[STREAM] 202292916 Error connecting to stream host [waiting 30s]

but, I'm assuming, it's because it port isn't available.

I would like to know _exactly_ how to terminate the Server and the Transcoder in *nix. I tried:
# ps -ef|grep sc_serv

will give you the PID of sc_serv... then

# kill [PID]


However, there isn't a command prompt where there should be in the Server/Transcoder window. Subsequently, those commands didn't work.

Three things:

1) I just deleted the Server from my CentOS without closing it (because I couldn't. See here.

2) After re-downloading the Tools and configuring them I went directly to Terminal (Mac) and got the error about the port already being open and the new one the Transcoder gave. Meaning, there were no sidesteps.

3) Unless this is part of the problem that ran the command in one, should I run the Server in one window and the Transcoder in another in the future.

Last edited by Deleted #33; 7th March 2012 at 00:14.
  Reply With Quote
Old 7th March 2012, 00:13   #9
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,012
Send a message via Skype™ to thinktink
I thought you were running the tools on a CentOS linux machine but doing the configurations on a Mac?

If you can open a remote terminal to your CentOS machine you can run the commands from there.

Try:
code:
killall sc_serv
and
code:
killall sc_trans
and try again.
thinktink is offline   Reply With Quote
Old 7th March 2012, 02:16   #10
Deleted #33
Guest
 
Posts: n/a
Thinktink

When I start the Server I get:

sg:[SHOUTcast] DNAS/posix(linux x64) v2.0.0.29 (Jul 31 2011) starting up...
2012-03-06 21:26:55 I msg:[MAIN] PID: 5850
2012-03-06 21:26:55 I msg:[MAIN] Loaded config from sc_serv_simple.conf
2012-03-06 21:26:55 I msg:[MAIN] Calculated CPU count is 2
2012-03-06 21:26:55 I msg:[MAIN] Starting 2 network threads
2012-03-06 21:26:55 I msg:[MICROSERVER] Listening for connection on port 8000
2012-03-06 21:26:55 I msg:[MICROSERVER] Listening for connection on port 8001
2012-03-06 21:30:05 I msg:[SRC 71.214.92.63:25709 sid=1] SHOUTcast 1 source connection.
2012-03-06 21:30:05 E msg:[SRC 71.214.92.63:25709 sid=1] connection rejected. Bad icy header string [icy-genre:]
2012-03-06 21:30:08 I msg:[SRC 71.214.92.63:25710 sid=1] SHOUTcast 1 source connection.
2012-03-06 21:30:08 E msg:[SRC 71.214.92.63:25710 sid=1] connection rejected. Bad icy header string [icy-genre:]
2012-03-06 21:30:11 I msg:[SRC 71.214.92.63:25711 sid=1] SHOUTcast 1 source connection.
2012-03-06 21:30:11 E msg:[SRC 71.214.92.63:25711 sid=1] connection rejected. Bad icy header string [icy-genre:]
2012-03-06 21:30:14 I msg:[SRC 71.214.92.63:25714 sid=1] SHOUTcast 1 source connection.
2012-03-06 21:30:14 E msg:[SRC 71.214.92.63:25714 sid=1] connection rejected. Bad icy header string [icy-genre:]
2012-03-06 21:30:26 I msg:[SRC 71.214.92.63:25715 sid=1] SHOUTcast 1 source connection.
2012-03-06 21:30:26 E msg:[SRC 71.214.92.63:25715 sid=1] connection rejected. Bad icy header string [icy-genre:]


When I try the Transcoder:

2012-03-06 21:29:24 I msg:[MAIN] TRANSCast/posix(linux x64) v2.0.0.54 (Oct 7 2011) starting...
2012-03-06 21:29:24 I msg:[MAIN] PID: 5913
2012-03-06 21:29:24 I msg:[MAIN] Loaded config from sc_trans_simple.conf
2012-03-06 21:29:24 I msg:[MAIN] TimeMultiplier = 1, TimeShift = 0
2012-03-06 21:29:24 I msg:[VUPUSH] 101 VU images loaded for left channel
2012-03-06 21:29:24 I msg:[VUPUSH] 101 VU images loaded for right channel
2012-03-06 21:29:24 I msg:[PLAYLISTMGR] Playlist load from file playlists/main.lst
2012-03-06 21:29:24 I msg:[PLAYLISTMGR] Caching playlist playlists/main.lst
2012-03-06 21:29:24 I msg:[PLAYLISTMGR] Load complete
2012-03-06 21:29:24 I msg:[MAIN] Streaming thread starting
2012-03-06 21:29:24 I msg:[SOURCERELAY] Thread starting
2012-03-06 21:29:24 I msg:[RESAMPLER] Deactivated 44100/2 == 44100/2
2012-03-06 21:29:24 I msg:[SOURCEANDENDPOINTMANAGER] Encoder thread 1 starting
2012-03-06 21:29:24 I msg:[SOURCEANDENDPOINTMANAGER] Broadcast thread 1 starting
2012-03-06 21:29:24 I msg:[MP3ENC] 123662524/44100/2/128000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2012-03-06 21:29:24 I msg:Using internal encoder sample rate of 44100 Hz, bandwidth 15804 Hz, MDCT low pass active

2012-03-06 21:29:24 I msg:[MP3ENC] 123662524/44100/2/128000 MP3 setup complete
2012-03-06 21:29:24 I msg:[STREAM] 1586560178 Giving replay gain calculator a head start
2012-03-06 21:29:24 I msg:[MAIN] Playlist decoder thread starting
2012-03-06 21:29:24 I msg:[RGCALC] Thread running
2012-03-06 21:29:24 I msg:[STREAM] 1586560178 Running
2012-03-06 21:29:24 I msg:[STREAM] 1586560178 Creating stream socket
2012-03-06 21:29:24 I msg:[STREAM] 1586560178 Resolving stream host
2012-03-06 21:29:24 I msg:[DECODE] Giving replay gain calculator a head start
2012-03-06 21:29:24 I msg:[DECODE] Begin decoding
2012-03-06 21:29:24 I msg:[DECODE] Next file is ./playlists/../music/shoutcast.mp3
2012-03-06 21:29:24 W msg:[STREAM] 1586560178 Error resolving stream host [waiting 30s]
2012-03-06 21:29:24 I msg:[DECODE] Next file is ./playlists/../music/shoutcast.mp3



Now I'm completely lost. Does the first msg have to do the Hash? I ask because I haven't entered it yet. I thought I had to have a readable connection before I could.

The Transcoder error has me so confused I'm not even going to try deciphering it.

I don't know if this means anything to you but I'm using Nicecast with iTunes to test. Bizarre enough, my Nicecast shows itself as being "On-Air". I then try to touch the CentOS Shoutcast server and I am told I do don't have the proper password. All while Nicecast appears on-air. I checked the simple config files and pw's seemed to be okay.

In summation, here's what I'd ultimately like to do:

RadiologikDJ/Nicecast as my source on my laptop. Throw that signal to the Linux Shoutcast Server/Transcoder or Transcoder/Server (I'm still sure which reads the signal first). Then the listener picks it up on my website.

I've done this before Shoutcast Server 2 was introduced. This is my first time using a transcoder too.

Rather than get nostalgic, I am going to say I'm almost getting 2 to work.

Any ideas? If so please share.
  Reply With Quote
Old 7th March 2012, 10:14   #11
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by notchfiend View Post
When I start the Server I get: ...
2012-03-06 21:30:26 I msg:[SRC 71.214.92.63:25715 sid=1] SHOUTcast 1 source connection.
2012-03-06 21:30:26 E msg:[SRC 71.214.92.63:25715 sid=1] connection rejected. Bad icy header string [icy-genre:][/I]
it's nothing to do with the authhash.

the source you are trying to use to connect to the DNAS is not specifying the genre. I'm pretty sure Nicecast (as mentioned later on) has an option for entering that hidden away somewhere though where i cannot remember at the moment.

Quote:
Originally Posted by notchfiend View Post
When I try the Transcoder: ...
2012-03-06 21:29:24 W msg:[STREAM] 1586560178 Error resolving stream host [waiting 30s][/I]
is 'inheritconfig' in the config file you're trying to use? if so then you'll need to uncomment it, and set serverip=127.0.0.1 (assuming this is all on the same host) as well as entering password=<password from sc_serv conf file>. this is due to a bug in the inheritconfig option which doesn't preserve the serverip.


Quote:
Originally Posted by notchfiend View Post
Throw that signal to the Linux Shoutcast Server/Transcoder or Transcoder/Server (I'm still sure which reads the signal first). Then the listener picks it up on my website.
what you appear to be aiming for is RadiologikDJ/Nicecast -> Transcoder -> DNAS Server (the DNAS server is always at the end and acts as the middle-man between the source(s) and client(s) with additional handling of the YP if enabled.

-daz
DrO is offline   Reply With Quote
Old 7th March 2012, 15:04   #12
Deleted #33
Guest
 
Posts: n/a
DrO

Before I try anything you suggested let me say that no they are not on the same host. The RadiologikDJ/Niceecast is on my Mac laptop home in Idaho and the CentOS server is in New Jersey. So, cross-country. I know this affects the serverip but tell me how exactly. I'm guessing I replace 127.0.0.1 with the server IP.

To the inhertconfig:

I haven't manipulated it. By comment it out do you mean make the value blank? Or, do I make it zero? The serverip and the password go anywhere on the Transcoder's simpl.conf, right? I know exactly where the Genre in Nicecast is.

I'm writing backwards in the post but will be working as per your suggestions.

Right now, I have to get something to eat.

BBL
  Reply With Quote
Old 7th March 2012, 18:26   #13
Deleted #33
Guest
 
Posts: n/a
DrO

I tried what you said (re:serverip/password/Genre). Here's what happened.

The Server gave the msg:
msg:[SRC 71.214.92.63:19722 sid=1] SHOUTcast 1 source connection.
2012-03-07 12:37:12 E msg:[YP2] No authhash found for stream config #1. Aborting registering stream with YP.
2012-03-07 12:37:37 E msg:[SRC 71.214.92.63:19722 sid=1] Remote socket closed while waiting for stream data


So, I generated a Hash and that solved the AutoHash problem.

The Transcoder then gave this message:
msg:[MAIN] TRANSCast/posix(linux x64) v2.0.0.54 (Oct 7 2011) starting...
2012-03-07 12:40:12 I msg:[MAIN] PID: 19660
2012-03-07 12:40:12 I msg:[MAIN] Loaded config from sc_trans_simple.conf
2012-03-07 12:40:12 I msg:[MAIN] TimeMultiplier = 1, TimeShift = 0
2012-03-07 12:40:12 I msg:[VUPUSH] 101 VU images loaded for left channel
2012-03-07 12:40:12 I msg:[VUPUSH] 101 VU images loaded for right channel
2012-03-07 12:40:12 I msg:[PLAYLISTMGR] Playlist load from file playlists/main.lst
2012-03-07 12:40:12 I msg:[PLAYLISTMGR] Caching playlist playlists/main.lst
2012-03-07 12:40:12 I msg:[PLAYLISTMGR] Load complete
2012-03-07 12:40:12 I msg:[MAIN] Streaming thread starting
2012-03-07 12:40:12 I msg:[SOURCERELAY] Thread starting
2012-03-07 12:40:12 I msg:[MAIN] Playlist decoder thread starting
2012-03-07 12:40:12 I msg:[RGCALC] Thread running
2012-03-07 12:40:12 I msg:[DECODE] Giving replay gain calculator a head start
2012-03-07 12:40:12 I msg:[DECODE] Begin decoding
2012-03-07 12:40:12 I msg:[DECODE] Next file is ./playlists/../music/shoutcast.mp3


It then begin repeating the 'Next File is' line repeatedly. So, I checked the Server. This is what I got:
2012-03-07 12:40:41 I msg:[ADMINCGI] Title update [Quant - Slide]
This that was playing at the time.

I then tried to touch the Shoutcast Server with Nicecast. Here's is the exact Nicecast message:

Nicecast Server Check: Authorization Failed
The streaming server was contacted, however it did not authorize Nicecast's connection.


The Server said the same:
2012-03-07 12:55:34 E msg:[DST 216.92.192.251:56334 sid=1] SHOUTcast 1 client connection rejected. Stream not available. Nicecast Server Checker
20


In their manual, Nicecast suggest three steps for checking the problem: Checking on the same machine is the first. I did with Qucktime. The Server said:
2012-03-07 12:56:37 E msg:[DST 71.214.92.63:20172 sid=1] SHOUTcast 1 client connection rejected. Stream not available. QuickTime/6.0
2012-0

The manual also says if the first fails then the problem is the Nicecast server's.

Here are my Nicecast server inputs:
Name: Blood in the Mix
Type: Shoutcast
Account:
Password: XXXXXXXXXXXX
Address: 66.23.236.184
Port: 8000
Mountpoint:
Public URL: (a gray NOT black) Automatic


Additionally, Nicecast revealed this on the 'Share' tab:
Internet: http://66.23.236.184:8000/listen.pls
Local: http://66.23.236.184:8000/listen.pls

I don't know what to say about this except to ask shouldn't they be different?

Finally, despite all this I thought I would try logging into the stream with iTunes on another computer. I did this via the Blood in the Mix website. This is the Server message:
2012-03-07 13:09:20 E msg:[DST 71.214.92.63:20226 sid=1] SHOUTcast 1 client connection rejected. Stream not available. iTunes/10.5.2 (Macintosh; PPC Mac OS X 10.5.8) AppleWebKit/534.50.2

Strangely enough, iTunes itself displayed the following message in the top window:
stream/1/
Continuous

I say strange because I know I've seen ''stream/1/' mentioned somewhere in the Tools. Or, am I mistaken?

I should mention that Nicecast showed as "On-Air" once I changed the Hash and despite my not having been able to touch the Shoutcast Server.

Man I feel so close to finishing!
  Reply With Quote
Old 8th March 2012, 04:17   #14
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,012
Send a message via Skype™ to thinktink
Just an update:
Quote:
Originally Posted by notchfiend in PM
Man your script rocks!!! Thanks for all your help yesterday but I don't know why I didn't try yours sooner.

If you can, test it...
Grats to notchfiend on getting server up and running.
thinktink is offline   Reply With Quote
Old 9th March 2012, 02:24   #15
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,012
Send a message via Skype™ to thinktink
It could be just the way you have it but I can see artist and title when I look at it.

I wouldn't worry about it.
Attached Thumbnails
Click image for larger version

Name:	bitmr.jpg
Views:	672
Size:	20.6 KB
ID:	49500  
thinktink 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