View Single Post
Old 28th September 2016, 12:17   #1
Junior Member
Join Date: Sep 2016
Posts: 1
sc_trans - long delay when reloading new playlist


I am new to SHOUTCast and I am turning to the community to find a solution to the following challenge:
I am streaming a default playlist and upon some trigger I would like to play another playlist (with one or two MP3 files) and then switch back to the default playlist. E.g. music is playing by default and then some voice starts playing and when it is finished the music would continue. (It does not matter where the music resumes playing.)

I have tried the following approaches:

When the triggering condition happens, I changed the content of the playlist file and issued a SIGUSR1 signal to sc_trans to reload the updated playlist. The problem is that it takes more than 40 seconds for the new playlist to start playing. I can see from the sc_trans logs that it receives the signal, loads the updated playlist but it is still sending the music from the old playlist for some time and it is only after about 40 seconds that the "new file" is being sent to the server.

I also tried to take advantage of a priority playlist. I set a default playlist with the music and when the triggering condition happens I copy the new playlist with the voices to the priority folder. Again, although sc_trans notices the priority playlist it takes more than 40 seconds for the priority playlist to take effect.

Can you explain to me what causes that delay and if it is possible to make it much shorter. Ideally, I would like that the new playlist starts immediately.

Thanks in advance,
glr is offline   Reply With Quote