WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > SHOUTcast > SHOUTcast Technical Support > sc_trans_040 Ubuntu Problems
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
glenndrives
Junior Member

Registered: Aug 2009
From:

sc_trans_040 Ubuntu Problems

Hello,
I have installed sc_trans_040 on two different Ubuntu 9.04 machines and am having the same problem. When I start the application i get the following messages:

*********************************************

<08/13/09@17:16:24> [TRANSCast] DNAS/posix v0.400-LAME (Mar 4 2003) starting up...
<08/13/09@17:16:24> [MAIN] PID: 20421
<08/13/09@17:16:24> [MAIN] Loaded config from sc_trans.conf
<08/13/09@17:16:24> [MAIN] Loading playlist (example.lst)
<08/13/09@17:16:24> [MAIN] Found (2) entries in playlist
<08/13/09@17:16:24> [MAIN] Playlist decoder thread starting
<08/13/09@17:16:24> [DECODE] Opened 01 Viva Las Vegas.mp3
<08/13/09@17:16:24> [CONFIG] WARNING: No InputSamplerate defined, assuming 44100!
<08/13/09@17:16:24> [CONFIG] WARNING: No InputChannels defined, assuming 2!
<08/13/09@17:16:24> Warning: input file samplerate is -1208206136 Hz, must be 44100!
<08/13/09@17:16:24> [DECODE] Opened 01 Viva Las Vegas.mp3
<08/13/09@17:16:24> [MAIN] Streaming thread starting
<08/13/09@17:16:24> [STREAM] Creating stream socket
<08/13/09@17:16:27> [MAIN] Title Updated

****************************************************

It does update the title on the Shoutcast server but does not stream the audio. As you can see the program is complaining about the InputSampleRate and InputChannels but I have them set in the sc_trans.conf file, below:

****************************************************

; Sample sc_trans/0.35-j config file
; j.frankel 12/05/00
; t.pepper 10/31/00
; (relays not supported, yo)
;
; sc_trans operates in one of two modes, either reading mp3s off disk, decoding,
; re-encoding, and then broadcasting them, or relaying from a shoutcast server,
; transcoding to a lower bitrate, and broadcasting to a new server.

; 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

; ServerIP/ServerPort are the target server to send to
ServerIP=XXX.XXX.XXX.XXX
ServerPort=80

; Password is the password on the sc_serv you're sending to.
Password=not_likely
; StreamTitle/URL/Genre define the data that appears on the directory and in the
; stream info.
StreamTitle=Something Here
StreamURL=http://www.help.com
Genre=need help

; 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=1
; Quality is from 1-10. 1 is best, 10 is fastest.
Quality=1


; 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

; Put stuff here for user interaction (AOL IM, ICQ, IRC)
AIM=AIMHandle
ICQ=
IRC=shoutcast

*****************************************************

and the playlist file:

*****************************************************

# on linux, you may specify a playlist item of DSP:/dev/soundcard, where soundcard
# is the name of your audio device. It's usually /dev/audio. doing so will allow
# you to broadcast from a line input feed instead of mp3s on disk.
#
# the playlist ignores the first valid line. Don't ask why.
# Your playlist must have at least 2 entries. if you only want to stream one file
# over and over again, then list it twice, including DSP sources.
#
# the following 2 lines are sample playlist lines. you should replace them with
# actual mp3 files, being sure to adhere to all the content guidelines set forth in
# the .conf file!
#/home/sctrans/content/test_1.mp3
#/home/sctrans/content/test_2.mp3
/home/*****/sc_trans_040/music/01 Viva Las Vegas.mp3
/home/*****/sc_trans_040/music/01 Viva Las Vegas.mp3

*********************************************************

Here is the output in the sc_trans_log file:

*********************************************************

<08/13/09@17:16:24> [TRANSCast] DNAS/posix v0.400-LAME (Mar 4 2003) starting up...
<08/13/09@17:16:24> [MAIN] PID: 20421
<08/13/09@17:16:24> [MAIN] Loaded config from sc_trans.conf
<08/13/09@17:16:24> [MAIN] Loading playlist (example.lst)
<08/13/09@17:16:24> [MAIN] Found (2) entries in playlist
<08/13/09@17:16:24> [MAIN] Playlist decoder thread starting
<08/13/09@17:16:24> [DECODE] Opened 01 Viva Las Vegas.mp3
<08/13/09@17:16:24> [CONFIG] WARNING: No InputSamplerate defined, assuming 44100!
<08/13/09@17:16:24> [CONFIG] WARNING: No InputChannels defined, assuming 2!
<08/13/09@17:16:24> Warning: input file samplerate is -1208206136 Hz, must be 44100!
<08/13/09@17:16:24> [DECODE] Opened 01 Viva Las Vegas.mp3
<08/13/09@17:16:24> [MAIN] Streaming thread starting
<08/13/09@17:16:24> [STREAM] Creating stream socket
<08/13/09@17:16:27> [MAIN] Title Updated

*******************************************************

Any help is greatly appreciated.

Glenn

Quick Link | Report this post to a moderator | IP: Logged

glenndrives is offline Old Post 08-13-2009 09:32 PM
Click Here to See the Profile for glenndrives Click here to Send glenndrives a Private Message Click Here to Email glenndrives Find more posts by glenndrives Add glenndrives to your buddy list Edit/Delete Message Reply w/Quote
fc*uk
Moderator

Registered: Dec 2005
From: Detroit

First update to the beta 5 version of sc_trans: http://forums.winamp.com/showthread...threadid=302747

Second ... can you post your DNAS logs, maybe sc_trans is not connecting to it?

__________________
last.fm | UK Hard House | Progressive House | Are You Hard?

Quick Link | Report this post to a moderator | IP: Logged

fc*uk is offline Old Post 08-14-2009 12:16 PM
Click Here to See the Profile for fc*uk Click here to Send fc*uk a Private Message Find more posts by fc*uk Add fc*uk to your buddy list Edit/Delete Message Reply w/Quote
glenndrives
Junior Member

Registered: Aug 2009
From:

Turns out that it is an issue being behind a home router and that we are using port 80 as the connection port to the DNAS server. I can connect fine from inside the corporate network and stream from either a playlist or line-in.

Any help on port forwarding for the router would be great.

I did download the beta drop but trying to run the "sc_trans" file in the Linux folder results in just returning to the command prompt. There is no activity and nothing is placed in the logs.

Thanks for the help, Glenn.

Quick Link | Report this post to a moderator | IP: Logged

glenndrives is offline Old Post 08-14-2009 04:10 PM
Click Here to See the Profile for glenndrives Click here to Send glenndrives a Private Message Click Here to Email glenndrives Find more posts by glenndrives Add glenndrives to your buddy list Edit/Delete Message Reply w/Quote
fc*uk
Moderator

Registered: Dec 2005
From: Detroit

are you loading the config with the beta drop as well? You can actually use your 040 config for the beta drop if you really want to be lazy

As for port forwarding, check out www.portforward.com and look for the specific router that you have and how to set it up with SHOUTcast.

__________________
last.fm | UK Hard House | Progressive House | Are You Hard?

Quick Link | Report this post to a moderator | IP: Logged

fc*uk is offline Old Post 08-14-2009 04:44 PM
Click Here to See the Profile for fc*uk Click here to Send fc*uk a Private Message Find more posts by fc*uk Add fc*uk to your buddy list Edit/Delete Message Reply w/Quote
glenndrives
Junior Member

Registered: Aug 2009
From:

I just tried starting the beta drop with the 040 config and got the following:

*********************************************************

2009-08-14 12:47:36 I msg:<***> Logger startup
2009-08-14 12:47:36 I msg:<***> version 0.2.0.0 build 0.0.25.0
2009-08-14 12:47:36 D msg:<***>
2009-08-14 12:47:36 W msg:[conf] Invalid item on line 55
2009-08-14 12:47:36 W msg:[conf] Invalid item on line 59
2009-08-14 12:47:36 W msg:[conf] Invalid item on line 61
2009-08-14 12:47:36 W msg:[conf] Invalid item on line 63
2009-08-14 12:47:36 I msg:[VUPush] 0 VU images loaded
2009-08-14 12:47:36 I msg:[VUPush] 0 VU images loaded
2009-08-14 12:47:36 I msg:[playlistMgr] playlist load from file example.lst
2009-08-14 12:47:36 W msg:[playlistMgr]The playlist entry DSP:/dev/audio generated no entries
2009-08-14 12:47:36 W msg:[playlistMgr]The playlist entry DSP:/dev/audio generated no entries
2009-08-14 12:47:36 I msg:[playlistMgr] Caching playlist example.lst
2009-08-14 12:47:36 I msg:[playlistMgr] load complete
2009-08-14 12:47:36 I msg:*****************************************************************
**************
2009-08-14 12:47:36 I msg:** TRANScast Distributed Network Audio Content Provider
2009-08-14 12:47:36 I msg:** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
2009-08-14 12:47:36 I msg:** Use "sc_trans filename.conf" to specify a config file.
2009-08-14 12:47:36 I msg:*****************************************************************
**************
2009-08-14 12:47:36 I msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.25.0 (Feb 3 2009) starting up...
2009-08-14 12:47:36 I msg:[MAIN] PID: 3365
2009-08-14 12:47:36 I msg:[MAIN] Loaded config from sc_trans.conf
2009-08-14 12:47:36 I msg:[MAIN] Streaming thread starting
2009-08-14 12:47:36 I msg:[resampler] resampling 44100/2 == 22050/1
2009-08-14 12:47:36 I msg:[MAIN] Encoder thread 0 starting
2009-08-14 12:47:36 I msg:[MAIN] broadcast thread 0 starting
2009-08-14 12:47:36 I msg:[STREAM] 248481435 giving replay gain calculator a head start
2009-08-14 12:47:36 I msg:[rgCalc] thread running
2009-08-14 12:47:36 I msg:[STREAM] 248481435 running
2009-08-14 12:47:36 I msg:[STREAM] 248481435 Creating stream socket
2009-08-14 12:47:36 I msg:[STREAM] 248481435 Connected to host server
2009-08-14 12:47:36 I msg:[AAC] encoder config: sample rate=22050 channelMode=Mono sbrMode=Off bitRate=24000 signalType=Default
2009-08-14 12:47:36 I msg:[MAIN] Playlist decoder thread starting
2009-08-14 12:47:36 I msg:[decode] giving replay gain calculator a head start
2009-08-14 12:47:36 I msg:[decode] begin decoding
2009-08-14 12:47:36 W msg:[playlist] playlist Directory (/export/home/friends/playlist/) does not exist
2009-08-14 12:47:36 I msg:[playlistMgr] deactivating playlist example id=-1
2009-08-14 12:47:36 E msg:[decode] Playlist has run dry
2009-08-14 12:47:36 I msg:[decode] Exiting decoder thread
2009-08-14 12:47:36 I msg:[AAC] encoder stream type: bsFormat=ADTS bsConfig=adifConfig=bOriginalCopyBit=0 bHomeBit=0 adtsConfig=bWriteAdtsCRCheck=0 bOriginalCopyBit=0 bHomeBit=0 numSubFrames=1 bMp2AdtsPce=0 sendAdtsPceInterval=1 sendAdtsPceOffset=0 latmLoasConfig=bSendMuxConfigInBand=1 bWriteCRCheck=0 numSubFrames=1 sendConfigDataInterval=1 sendConfigDataOffset=0 ascConfig=signallingMode=Implicit bWriteSbrCrc=0 sendSbrHeaderInterval=1 sendSbrHeaderOffset=0
2009-08-14 12:47:36 I msg:[MAIN] Exiting loop
2009-08-14 12:47:36 E msg:[calendarMgr] Could not open file.
2009-08-14 12:47:36 I msg:[AAC] encoder configuration: qualityMode=Highest allowNarrowing=1 allowTns=1 allowPns=0 requestedBandwidth=0 codecDelay=1687 effectiveBandwidth=7200
2009-08-14 12:47:36 I msg:[AAC] aac setup complete
2009-08-14 12:47:36 I msg:[AAC] Exiting encoder thread
2009-08-14 12:47:37 I msg:[rgCalc] thread exiting
2009-08-14 12:47:41 I msg:[resampler] tIn=0 tOut=0 bIn=0 bOut=0
2009-08-14 12:47:41 I msg:[crossfader] in=0 out=0
2009-08-14 12:47:41 I msg:<***> Logger shutdown

*******************************************************

I'll dig through and see if I can get it going and let you know the progress.

Thanks again for all the help!

Glenn

Quick Link | Report this post to a moderator | IP: Logged

glenndrives is offline Old Post 08-14-2009 04:51 PM
Click Here to See the Profile for glenndrives Click here to Send glenndrives a Private Message Click Here to Email glenndrives Find more posts by glenndrives Add glenndrives to your buddy list Edit/Delete Message Reply w/Quote
nradisch
Shoutcast Dev Team

Registered: Jun 2008
From: Weston, CT

The only error in that log that really matters is

E msg:[decode] Playlist has run dry.

It cannot find the playlist, or perhaps the entries in the playlist. Depending on how the application is run, you may need to provide complete paths to these entities.

--Neil

Quick Link | Report this post to a moderator | IP: Logged

nradisch is offline Old Post 08-16-2009 01:12 PM
Click Here to See the Profile for nradisch Click here to Send nradisch a Private Message Find more posts by nradisch Add nradisch to your buddy list Edit/Delete Message Reply w/Quote
luca066
Junior Member

Registered: Aug 2009
From:

excuse me, sctrans can be used with live streams?

Thanks a lot.

Last edited by luca066 on 08-16-2009 at 02:58 PM

Quick Link | Report this post to a moderator | IP: Logged

luca066 is offline Old Post 08-16-2009 02:34 PM
Click Here to See the Profile for luca066 Click here to Send luca066 a Private Message Click Here to Email luca066 Find more posts by luca066 Add luca066 to your buddy list Edit/Delete Message Reply w/Quote
glenndrives
Junior Member

Registered: Aug 2009
From:

You can take the inout audio from a sound/capture card and encode it on the fly. In the play list make the first two entries /dev/dsp or whatever your capture device entry in the /dev directory is and it will be encoded.

That is how this system will be configured and I am currently testing 040.

Glenn

Quick Link | Report this post to a moderator | IP: Logged

glenndrives is offline Old Post 08-16-2009 04:55 PM
Click Here to See the Profile for glenndrives Click here to Send glenndrives a Private Message Click Here to Email glenndrives Find more posts by glenndrives Add glenndrives to your buddy list Edit/Delete Message Reply w/Quote
nradisch
Shoutcast Dev Team

Registered: Jun 2008
From: Weston, CT

The newer sc_trans has a different mechanism. You set the following in your config file (see docs.txt)

capture
capturedevice
captureinput
capturesamplerate
capturechannels

The Ajax API will let you turn capture on or off on the fly.

--Neil

Quick Link | Report this post to a moderator | IP: Logged

nradisch is offline Old Post 08-17-2009 10:05 AM
Click Here to See the Profile for nradisch Click here to Send nradisch a Private Message Find more posts by nradisch Add nradisch to your buddy list Edit/Delete Message Reply w/Quote
glenndrives
Junior Member

Registered: Aug 2009
From:

Hello All,
I am working on this again with the beta drop and I am having problems with the Live Capture. I have the live capture configured in the sc_trans.conf file and I have a valid playlist.pls file. The problem is that sc_trans only sees the music in the playlist and is not streaming the audio from the line input.

I am including the sc_trans.conf file here:

;; VU Images

;vuimagedirectory=C:\Documents and Settings\nradisch\My Documents\programming\shoutcast\current\sc_trans\vuimages\



;; ENCODER OPTIONS

encoder=mp3

bitrate=96000

samplerate=44100

channels=2



;;; NETWORK OPTIONS

outprotocol=1

serverip=xxx.xxx.xxx.xxx

serverport=80
80
password=notlikely





;;;; LOGGING OPTIONS:

;where does the log file go

logfile=sc_trans.log

; 1 to do screen logging else 0

screenlog=1



;;;;;; METADATA CONTROL

; my stream name

streamtitle=Some Title

; url related to my stream

streamurl=http://www.URL submitted by user.

; my genre

genre=
; other assorted stuff

;aim=myaimaddr

;irc=myirc

;icq=myicq

; register with yp

public=1



;;;; PLAYLIST CONTROL

; your playlist

playlistfile=playlist.lst

; by default we shuffle the playlist. Lets turn that off

shuffle = 0

; set our crossfade time to 2 seconds. zero means no xfade

xfade=2

; file must be at least 20 seconds or we don't crossfade

xfadethreshold=20

; drop folder for priority playlists

;playlists=c:\sc_trans\playlists\

; where finished priority playlists get copied

;archive=c:\sc_trans\playlists\archive\



;;; LIVE CAPTURE:

; don't capture

capture=1

; set capture parameters

capturedevice=/dev/hw:0,0

;captureinput=Line-In

capturesamplerate=44100

capturechannels=2



;;;; DJ SUPPORT:

; dj listen port

djport=9876

; dj password

djpassword=leavenow

; idle time until auto-dump

autodumpsourcetime=30

; record dj broadcasts here

djbroadcasts=c:\sc_trans\recorded\





;; REPLAY GAIN CONTROL:

applyreplaygain=0

calculatereplaygain=0



;;; OTHER:

adminport=5555

adminuser=admin

adminpassword=goaway

Quick Link | Report this post to a moderator | IP: Logged

glenndrives is offline Old Post 09-24-2009 08:18 PM
Click Here to See the Profile for glenndrives Click here to Send glenndrives a Private Message Click Here to Email glenndrives Find more posts by glenndrives Add glenndrives to your buddy list Edit/Delete Message Reply w/Quote
nradisch
Shoutcast Dev Team

Registered: Jun 2008
From: Weston, CT

All I do under Unix is issue an "open" on the value of capturedevice. Most likely open("/dev/hw:0,0") is failing.
I've never seen a device setup like that. Usually a unix device is /dev/audio or /dev/dsp. The ":0,0" is probably part of the problem.

You can test by using "cat". If /dev/hw:0,0 is a valid device you should be able to "cat" it. You'll get a screen full of continuous junk if it works.

--Neil

Quick Link | Report this post to a moderator | IP: Logged

nradisch is offline Old Post 09-24-2009 10:41 PM
Click Here to See the Profile for nradisch Click here to Send nradisch a Private Message Find more posts by nradisch Add nradisch to your buddy list Edit/Delete Message Reply w/Quote
glenndrives
Junior Member

Registered: Aug 2009
From:

I tried both /dev/dsp and /dev/audio and they both failed. sc_trans wouldn't even open the playlist.

With /dev/hw:0,0 sc_trans would go to the playlist and start playing the songs.

Glenn

Quick Link | Report this post to a moderator | IP: Logged

glenndrives is offline Old Post 09-24-2009 10:58 PM
Click Here to See the Profile for glenndrives Click here to Send glenndrives a Private Message Click Here to Email glenndrives Find more posts by glenndrives Add glenndrives to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 08:47 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > SHOUTcast > SHOUTcast Technical Support > sc_trans_040 Ubuntu Problems
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON