Old 22nd November 2012, 11:00   #1
rustymetal
Junior Member
 
Join Date: Jul 2011
Posts: 8
sc_trans playlist/calendar broken under x64

I have done a plethora of testing, and only can get sc_trans playlist/calendar system to work correctly under a x86 system.

Under a x64 system, the playlist(or calendar) system has a complete failure.

CentOS 6.3 x64 Log
The problem is sc_trans cannot load a playlist file. Regardless of path or file name or any config settings, this will always display.
PHP Code:
msg:[PLAYLISTMGRCould not activate playlist `' because no playlist file found 
fulllog
PHP Code:
    2012-11-22 11:30:03     I       msg:[MAINLogger updating log file to use
    
2012-11-22 11:30:03     I       msg:[MAINLoaded config from ./sc_trans.conf
    2012
-11-22 11:30:03     I       msg:[MAINTimeMultiplier 1TimeShift 0
    2012
-11-22 11:30:03     I       msg:[CALENDARMGRAdding DJ eventm_djName=dj  m_archive=0  m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
    2012
-11-22 11:30:03     I       msg:[CALENDARMGRAdding playlist eventm_playlist=main m_loopAtEnd=1 m_priority=2 m_shuffle=0  m_id=2 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=1 m_repeat=62
    2012
-11-22 11:30:03     I       msg:[VUPUSH101 VU images loaded for left channel
    2012
-11-22 11:30:03     I       msg:[VUPUSH101 VU images loaded for right channel
    2012
-11-22 11:30:03     D       msg:[PLAYLISTMGRRegistering playlist : : 0
    2012
-11-22 11:30:03     D       msg:[PLAYLISTMGRPlaylist registrynamepath:
    
2012-11-22 11:30:03     D       msg:[PLAYLISTMGRActivating playlistid=-1 loop=1 prior=0 shuffle=1 dur=0 curt=0
    2012
-11-22 11:30:03     I       msg:[PLAYLISTMGRPlaylist load from file
    2012
-11-22 11:30:03     D       msg:[PLAYLISTMGRRoot path is
    2012
-11-22 11:30:03     E       msg:[PLAYLISTMGRCould not activate playlist `' because no playlist file found
    2012-11-22 11:30:03     D       msg:[PLAYLISTMGR] Playlist queue:
    2012-11-22 11:30:03     I       msg:[MAIN] Streaming thread starting
    2012-11-22 11:30:03     I       msg:[SOURCERELAY] Thread starting
    2012-11-22 11:30:03     I       msg:[RESAMPLER] Deactivated 44100/2 == 44100/2
    2012-11-22 11:30:03     I       msg:[SOURCEANDENDPOINTMANAGER] Encoder thread 1 starting
    2012-11-22 11:30:03     I       msg:[SOURCEANDENDPOINTMANAGER] Broadcast thread 1 starting
    2012-11-22 11:30:03     I       msg:[MAIN] Playlist decoder thread starting
    2012-11-22 11:30:03     I       msg:[STREAM] 611816717 Giving replay gain calculator a head start
    2012-11-22 11:30:03     I       msg:[MP3ENC] 1716862611/44100/2/128000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
    2012-11-22 11:30:03     I       msg:[MICROSERVER] Listening for connection on port 8005
    2012-11-22 11:30:03     I       msg:Using internal encoder sample rate of 44100 Hz, bandwidth 15804 Hz, MDCT low pass active
     
    2012-11-22 11:30:03     I       msg:[RGCALC] Thread running
    2012-11-22 11:30:03     I       msg:[STREAM] 611816717 Running
    2012-11-22 11:30:03     I       msg:[STREAM] 611816717 Creating stream socket
    2012-11-22 11:30:03     I       msg:[STREAM] 611816717 Connected to host server
    2012-11-22 11:30:03     E       msg:[MAIN] Error opening port 8005 because Could not bind to :8005 because Address already in use
    2012-11-22 11:30:03     I       msg:[DECODE] Giving replay gain calculator a head start
    2012-11-22 11:30:03     I       msg:[DECODE] Begin decoding
    2012-11-22 11:30:03     I       msg:[MP3ENC] 1716862611/44100/2/128000 MP3 setup complete
    2012-11-22 11:30:03     E       msg:API server startup error. Could not bind to :7999 because Address already in use
    2012-11-22 11:30:03     I       msg:[MP3ENC] 1716862611/44100/2/128000 Exiting encoder thread
    2012-11-22 11:30:04     I       msg:[RGCALC] Thread exiting
    2012-11-22 11:30:04     W       msg:[DECODE] Playlist is empty
    2012-11-22 11:30:04     E       msg:[DECODE] Playlist has run dry
    2012-11-22 11:30:04     I       msg:[DECODE] Exiting decoder thread
    2012-11-22 11:30:04     I       msg:[RESAMPLER] tIn=0 tOut=0 bIn=0 bOut=0
    2012-11-22 11:30:04     I       msg:[CROSSFADER] in=0 out=0
    2012-11-22 11:30:04     I       msg:<***> Logger shutdown 
Using the playlistfilename_# definitions in the config 100% results in failure.
Using the playlistfile definition in the config works with the exact same path as used in the calendar definition.

CentOS 6.3 x64 Log using playlistfile definition.
PHP Code:
2012-11-22 11:47:23    I    msg:<***> Logger startup
2012
-11-22 11:47:23    D    msg:<***> 
2012-11-22 11:47:23    I    msg:***************************************************************
2012-11-22 11:47:23    I    msg:** TRANScast Distributed Network Audio Content Provider
2012
-11-22 11:47:23    I    msg:** Copyright (C2000-2011 NullsoftInc.  All Rights Reserved.
2012-11-22 11:47:23    I    msg:** Use "sc_trans filename.conf" to specify a config file.
2012-11-22 11:47:23    I    msg:***************************************************************
2012-11-22 11:47:23    I    msg:[MAINTRANSCast/posix(linux x86v2.0.0.54 (Oct  7 2011starting...
2012-11-22 11:47:23    I    msg:[MAINPID1329
2012
-11-22 11:47:23    I    msg:[MAINLoaded config from /home/sc_trans/sc_trans.conf
2012
-11-22 11:47:23    I    msg:[MAINTimeMultiplier 1TimeShift 0
2012
-11-22 11:47:23    I    msg:[CALENDARMGRAdding DJ eventm_djName=dj  m_archive=0  m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
2012
-11-22 11:47:23    I    msg:[CALENDARMGRAdding playlist eventm_playlist=main m_loopAtEnd=1 m_priority=2 m_shuffle=0  m_id=2 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=1 m_repeat=62
2012
-11-22 11:47:24    I    msg:[VUPUSH101 VU images loaded for left channel
2012
-11-22 11:47:24    I    msg:[VUPUSH101 VU images loaded for right channel
2012
-11-22 11:47:24    D    msg:[PLAYLISTMGRRegistering playlist playlist:playlist.lst 0
2012
-11-22 11:47:24    D    msg:[PLAYLISTMGRPlaylist registryname:playlist path:playlist.lst
2012
-11-22 11:47:24    D    msg:[PLAYLISTMGRActivating playlist=playlist id=-1 loop=1 prior=0 shuffle=1 dur=0 curt=0
2012
-11-22 11:47:24    I    msg:[PLAYLISTMGRPlaylist load from file playlist.lst
2012
-11-22 11:47:24    D    msg:[PLAYLISTMGRRoot path is 
2012
-11-22 11:47:24    D    msg:[PLAYLISTMGR] New entry /home/sc_trans/music/Porter Robinson Spitfire The State Original Mix.mp3 
Now before you blame my calendar or playlist file..
calendar
PHP Code:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">dj</dj>
<calendar/>
</event>

<event type="playlist">
<calendar repeat="62"/>
<playlist loopatend="1" shuffle="0" priority="2">main</playlist>  
</event>
</eventlist>
playlist.lst
PHP Code:
/home/sc_trans/music/*.mp3 

cliff notes
Using
PHP Code:
playlistfilename_1=main
playlistfilepath_1
=playlists.lst 
WILL NOT WORK UNDER A x64 SYSTEM

using
PHP Code:
playlistfile=playlists.lst 
works.

Tested with CentOS 5.8 x86, CentOS 6.3 x64, Tested with absolute paths. Same error always results.
rustymetal is offline   Reply With Quote
Old 22nd November 2012, 11:18   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
for sc_trans to work properly with the current build available, it needs to have a main playlist specified (via playlistfile) which has at least one valid entry in it otherwise the calendar events (via playlistfilepath_x) will not start reliably.

-daz
DrO is offline   Reply With Quote
Old 22nd November 2012, 11:30   #3
rustymetal
Junior Member
 
Join Date: Jul 2011
Posts: 8
Quote:
Originally Posted by DrO View Post
for sc_trans to work properly with the current build available, it needs to have a main playlist specified (via playlistfile) which has at least one valid entry in it otherwise the calendar events (via playlistfilepath_x) will not start reliably.

-daz
That seemed to fix the problem I described, however, still under centOS 5.8 x86 I do not have a problem using the calendar/playlistfilename_# without a playlistfile.
rustymetal is offline   Reply With Quote
Old 22nd November 2012, 11:36   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
it's luck more than anything in why it's working for you on x86 as it shouldn't be working without a main playlist for any version.

-daz
DrO is offline   Reply With Quote
Old 22nd November 2012, 11:40   #5
rustymetal
Junior Member
 
Join Date: Jul 2011
Posts: 8
Thank you for the quick assistance!
rustymetal 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