Allrighty then, thnx. I'll try..
I have a strange issue with this add-on and radio add-on. Both of them take up to 5 minutes to start playing an audio stream. This happens on all 3 of my Windows XBMC installs. Any idea what could cause this?
Code:
12:41:28 T:5476 DEBUG: CFileCache::Open - opening <service> using cache
12:41:28 T:5476 DEBUG: CurlFile::Open(0C9E9F10) http://192.168.0.4:8866/service?method=recording.list&filter=pending&sid=b5adc62014cc4c20bedcf41e6c672419
12:41:29 T:4332 NOTICE: Thread CFileCache start, auto delete: false
12:41:29 T:4332 INFO: CFileCache::Process - Hit eof.
12:41:29 T:4332 DEBUG: Thread CFileCache 4332 terminating
....
12:43:38 T:6056 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/libmad.dll)
12:43:38 T:6056 DEBUG: CFileCache::Open - opening <> using cache
12:43:38 T:6056 DEBUG: CurlFile::Open(0CD98548) http://94.23.56.161:80/
12:43:39 T:6056 DEBUG: CurlFile - file <http://94.23.56.161:80/> is a shoutcast stream. re-opening
12:43:39 T:6056 DEBUG: File::Open - redirecting implementation for http://94.23.56.161:80/
12:43:39 T:6056 DEBUG: CurlFile::Open(0CB03B68) http://94.23.56.161:80/
12:43:39 T:6324 NOTICE: Thread Shoutcast file start, auto delete: false
12:43:39 T:3772 NOTICE: Thread CFileCache start, auto delete: false
12:43:40 T:6056 INFO: AudioDecoder: File is queued
12:43:40 T:6056 INFO: CSoftAE::MakeStream - AE_FMT_S32NE, 44100, FL,FR
12:43:40 T:7052 DEBUG: CSoftAE::Run - Sink restart flagged
12:43:40 T:7052 INFO: CSoftAE::LoadSettings - Stereo upmix is enabled
12:43:40 T:7052 DEBUG: CAESinkDirectSound::IsCompatible: Formats compatible - reusing existing sink
12:43:40 T:7052 INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_FLOAT, FL,FR, 44100hz
12:43:40 T:7052 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
12:43:40 T:7052 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 3528
12:43:40 T:7052 DEBUG: AERemap: Downmix normalization is disabled
12:43:40 T:7052 DEBUG: CSoftAEStream::CSoftAEStream - Converting from AE_FMT_S32NE to AE_FMT_FLOAT
12:43:40 T:6056 DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 0.000000
12:43:40 T:6056 INFO: PAPlayer::PrepareStream - Ready
12:43:40 T:6688 NOTICE: Thread PAPlayer start, auto delete: false
12:43:40 T:6688 DEBUG: PAPlayer::Process - Playback started
12:43:40 T:7052 DEBUG: CSoftAE::Run - Sink restart flagged
12:43:40 T:7052 INFO: CSoftAE::LoadSettings - Stereo upmix is enabled
12:43:40 T:7052 DEBUG: CAESinkDirectSound::IsCompatible: Formats compatible - reusing existing sink
12:43:40 T:7052 INFO: CSoftAE::InternalOpenSink - keeping old sink with : AE_FMT_FLOAT, FL,FR, 44100hz
12:43:40 T:7052 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 2.0
12:43:40 T:7052 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 3528
12:43:40 T:6056 DEBUG: CGUIInfoManager::SetCurrentSong(http://94.23.56.161:80)
12:43:40 T:6056 INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://94.23.56.161
12:43:40 T:6056 DEBUG: CCurlFile::GetMimeType - http://94.23.56.161:80/ -> audio/mpeg
12:43:40 T:6056 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
12:43:40 T:6056 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
12:43:40 T:6056 DEBUG: CGUIInfoManager::SetCurrentSong(http://94.23.56.161:80)
12:43:41 T:6056 DEBUG: CCurlFile::GetMimeType - http://94.23.56.161:80/ -> audio/mpeg
12:43:41 T:6056 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
12:43:41 T:6056 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
12:43:41 T:6056 DEBUG: waiting for python thread 6 (D:\HTPC\Xbmc\portable_data\addons\plugin.audio.shoutcast\addon.py) to stop
12:43:41 T:6056 DEBUG: python thread 6 (D:\HTPC\Xbmc\portable_data\addons\plugin.audio.shoutcast\addon.py) destructed
12:43:41 T:6056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avutil-51.dll)
12:43:41 T:6056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avcodec-53.dll)
12:43:42 T:6056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avformat-53.dll)
12:43:42 T:6056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/swscale-2.dll)
12:43:43 T:6056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/swresample-0.dll)
12:43:43 T:6056 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/players/dvdplayer/avfilter-2.dll)
In the above log snippet you can see where it took ~2 minutes to start playing the stream.
After some testing it appears that my using a MySQL music database causes my issue. When I remove that from my advancedsettings.xml file the streams playback within seconds. The question now would be, why does this happen?
(2013-02-16, 19:47)kricker Wrote: [ -> ]After some testing it appears that my using a MySQL music database causes my issue. When I remove that from my advancedsettings.xml file the streams playback within seconds. The question now would be, why does this happen?
I'm suffering the same issue but have used a MySQL music database for quite sometime. The problem with the delay in opening a radio stream began 1 - 2 weeks ago. I mostly listen to shoutcast nowadays so maybe I'll discontinue use of the MySQL database for music.
I would say that the delay started occurring around the same time as when I updated to the latest XBMC (Frodo), but couldn't say for certain...
I can't say either. I'll need to install an old build and see how it behaves.
I don't think that the issue you describe is really add-on related. I know that XBMC saves some data in the database when you start playback.
After figuring out what the issue is I agree. I need to investigate elsewhere.
I tried your method of removing the MySQL music database and Shoutcast was a bit quicker but it still took 20-30 seconds to load each step in finding a station (by genre, choose genre, choose station).
I've also tried pinging shoutcast.com from my XBMC computer and another computer (on the same network) and neither of them return a ping in a satisfactory amount of time. I can go to
www.shoutcast.com with no delay, but pinging doesn't work. Can a domain disallow pings??
Fantastic Plugin. thank you!!!
Just a side note I noticed while playing stations, I don't know if this is an xbmc thing or not, but if I play a station and click on another station to play, it will not play the station but rather it will add it to the queue. I flipped over to the now playing/queue and the station id number is listed for both stations but I have to click on the second station to play it from there. Is there any way to allow each radio station to play once I click on it and not have it queue the station so I have to perform the aformentioned steps, from within the add-on? This is a minor user interface thing, overall very good design and layout!
Thanks and keep up the solid work sphere, love to see what you can do next!
@
Jules
Don't you have Queue Songs On Selection enabled under Audio in settings?
(2013-02-19, 21:56)schumi2004 Wrote: [ -> ]@Jules
Don't you have Queue Songs On Selection enabled under Audio in settings?
Yes it is checked, would this be why it is doing that? If I am currently listening to a station and I want to listen to another station, when I click on the other station it queues it directly but does not play the new station until I go into the queue and click on it. I do not want to lose the queue functionality elsewhere/.