Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   DNAS2.0-14 => No config file passed (http://forums.winamp.com/showthread.php?t=326997)

helios399 7th February 2011 10:50

DNAS2.0-14 => No config file passed
 
Dear SHOUTcast team,

According to the recent post http://forums.winamp.com/showthread.php?t=326380&highlight=include
the "include=" in sc_trans has been fixed in DNAS V2 build 14 ?

But I encounter the following problem after tests...

I want to change the encoder with API. For the changes to take effect i need to restart sc_trans.
When I modify one parm with API (or not) and restart sc_trans with API, sc_trans.conf write the line "include=" in the config file and sc_trans fails at restart.
I declare configwrite = 1 and I have no "include=" in the original sc_trans file.

Secondly
I included an empty include.conf (for testing) in the sc_trans.conf file : include=./include.conf
When I restart sc_trans, the current config was writen into the include.conf but not into the original sc_trans.conf.
More...I wrote a single line in my include.conf "xfade=2" and the result was the same, the configuration was written in the include.conf.
Is this the normal behaviour ? Something wrong ?

My config : Windows7 x64 - DNAS V2 build 14 - SC_TRANS 2 beta 40

log file : Warning & Error
Quote:

msg:<***> version 0.2.0.0 build 0.0.40.0
msg:<***>
W msg:[CONFIG] Could not find `' - loading will be aborted
I msg:*******************************************************************************
I msg:** TRANScast Distributed Network Audio Content Provider
I msg:** Copyright (C) 2000-2010 Nullsoft, Inc. All Rights Reserved.
I msg:** Use "sc_trans filename.conf" to specify a config file.
I msg:*******************************************************************************
...
E msg:[MAIN] No config file passed
I msg:[SOURCERELAY] Thread starting
I msg:[SOURCERELAY] Thread exiting
I msg:<***> Logger shutdown

Let me known what happen ?

Many thanks

DrO 7th February 2011 15:45

you're getting confused as you're referring to changes in the DNAS which are not present in the Transcoder - also the posts you've linked to are over a month later than the last Transcoder build.

the Transcoder is internally fixed to not output the include= aspect and i believe the second issue you've raised is resolved as well since there were some quirks with how the transcoder tracks the config file passed to work on the last included file instead of the first file passed on the command-line. there's no eta on a new transcoder drop at the moment as i've some DNAS work which bumps Transcoder work down the list.

-daz

helios399 7th February 2011 20:36

thk
 
Thanks for reply DrO ;)

When I read your reply I thought that I forgot something or doing wrong with path or sc_serv/sc_trans names (because I renamed files) or call method.

I'm a newbie with shoutcast, but fortunately API's are simple to use.
Everything works great except this "include=" line !

I tested for hours again and I'm really lost :(

I checked the API and there's no parm for "name" just 'restart' (2.25 of API specification)
because I thought I forgot it.

I run sc_serv (x64) and sc_trans with the windows x64 console
%windir%\SysWoW64\cmd.exe (windows7 x64)
After I run sc_serv (x32) and sc_trans with the windows console cmd.exe

Is this the right method ?

c:/shoutcast/sc_serv sc_serv.conf
c:/shoutcast/sc_trans sc_trans.conf

I run the API (simple code) with no error

Quote:

<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>restart</title>
<script type="text/javascript" src="./jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
function restartENCODER() {
$.ajax({
type: "POST",
username: 'admin',
password: 'xxx',
url: 'http://localhost:8100/api',
data: {op:"restart",seq:14},
success: function(data) {
alert('SUCCESS');
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert('SERVER ERROR ' + '\n\n' + XMLHttpRequest + '\n' + textStatus + '\n' + errorThrown) },
async:false

});
}
</script>
</head>
<body>
<input id="BTsubmit" type="button" value="Restart" onClick="restartENCODER();">
</body>
</html>
I attached the sc_trans_before.conf.txt (before restart) and sc_trans_after.conf.txt (after restart), and sc_trans.log.txt (log sc_trans after restart)

Did I miss something important ???

Sorry for my broken english !
Thank you for your help


All times are GMT. The time now is 14:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.