| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Thu May 01, 2008 12:09 pm Post subject: Re-read ices0.4 playlist without a stop of the broadcasting |
|
|
| Please help me, how to re-read ices0.4 playlist without a stop of the broadcasting? Sometimes I should add some songs, but I cannot stop an announcement because my listeners will be dissatisfied... |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 01, 2008 3:05 pm Post subject: |
|
|
The file is checked each time a filename is wanted, so just modify it. According to the docs you can use the USR1 signal to immediately jump to the next track.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu May 01, 2008 3:43 pm Post subject: |
|
|
Thank you for a lot!
Can you help me, please, how to send this USR1 signal at unix?
Like that? /usr/local/bin/ices -HUP USR1
It may be very userfully for me! |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu May 01, 2008 3:55 pm Post subject: |
|
|
Oh great!
I do this!
| Code: |
#!/bin/sh
kill -USR1 `cat /var/log/ices/ices.pid`
|
|
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu May 01, 2008 4:45 pm Post subject: |
|
|
My idea has crushed!
I was planed to set up a jungle for each hour on my radio station.
Created record in /etc/crontab file whitch run this script:
| Code: |
#!/bin/sh
mv /usr/radio/pl.m3u /usr/radio/pl_songs.m3u
echo "/usr/radio/jingle.mp3" > /usr/radio/pl.m3u
kill -USR1 `cat /var/log/ices/ices.pid`
sleep 3
mv /usr/radio/pl_songs.m3u /usr/radio/pl.m3u
|
But not my jungle, next random song translated after it execution!
Can You help me?
Sorry about my English gramma! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 01, 2008 7:44 pm Post subject: |
|
|
show what the ices log says at the time the script is run.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Fri May 02, 2008 2:54 am Post subject: |
|
|
Was not any errors...
| Quote: |
Playing /usr/radio/tracks/Moon river.mp3
Playing /usr/radio/tracks/Richard Clauderman - When a man loves a women.mp3
|
When i change my playlist by hand ices also not refresh it, play tracks of old it! |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed May 07, 2008 9:22 pm Post subject: |
|
|
| Nobody can help me? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed May 07, 2008 9:37 pm Post subject: |
|
|
If you are doing it correctly then you should be seeing a
"Reopening playlist file" debug message, but without the full log then we can only guess.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat May 10, 2008 3:29 am Post subject: |
|
|
The full log over there:
| Code: |
Logfile opened
DEBUG: Sending following information to libshout:
DEBUG: Stream: 0
DEBUG: Host: fm.sib54.org.ru:8000 (protocol: http)
DEBUG: Mount: /mus_fm, Password: ********
DEBUG: Name: Mus.fm URL: http://fm.sib54.org.ru/
DEBUG: Genre: Pop Desc: fm.sib54.org.ru
DEBUG: Bitrate: 128 Public: 1
DEBUG: Dump file: (null)
DEBUG: Initializing playlist handler...
DEBUG: Initializing builting playlist handler...
DEBUG: Randomizing playlist...
DEBUG: Crossfading 3 seconds between tracks
DEBUG: Startup complete
DEBUG: Builtin playlist handler serving: /usr/radio/mus_fm/misc/Keiko Matsui - Between The Moons.mp3
DEBUG: Filename cleaned up from [/usr/radio/mus_fm/misc/Keiko Matsui - Between The Moons.mp3] to [Keiko Matsui - Between The Moons]
DEBUG: ID3v1: Title: Between The Moons
DEBUG: ID3v1: Artist: Keiko Matsui
DEBUG: ID3v2: version 3.0. Tag size is 1116 bytes.
DEBUG: ID3v2: Artist found: Keiko Matsui
DEBUG: ID3v2: Title found: Between The Moons
DEBUG: MPEG-1 layer III, 128 kbps, 44100 Hz, j-stereo
DEBUG: Ext: 0 Mode_Ext: 0 Copyright: 0 Original: 0
DEBUG: Error Protection: 1 Emphasis: 0 Padding: 1
Playing /usr/radio/mus_fm/misc/Keiko Matsui - Between The Moons.mp3
DEBUG: Updated metadata on mus_fm to: Keiko Matsui - Between The Moons
Mounted on http://fm.sib54.org.ru:8000/mus_fm
DEBUG: Delaying metadata update...
DEBUG: Updated metadata on mus_fm to: Keiko Matsui - Between The Moons
DEBUG: Done sending
DEBUG: Builtin playlist handler serving: /usr/radio/mus_fm/misc/дЦПТДЦЙС Ч НПЙИ НЩУМСИ.mp3
DEBUG: Filename cleaned up from [/usr/radio/mus_fm/misc/дЦПТДЦЙС Ч НПЙИ НЩУМСИ.mp3] to [дЦПТДЦЙС Ч НПЙИ НЩУМСИ]
DEBUG: ID3v1: Title: Джорджия в моих мыслях
DEBUG: ID3v1: Artist:
DEBUG: MPEG-1 layer III, 128 kbps, 44100 Hz, j-stereo
DEBUG: Ext: 0 Mode_Ext: 0 Copyright: 0 Original: 0
DEBUG: Error Protection: 1 Emphasis: 0 Padding: 1
Playing /usr/radio/mus_fm/misc/дЦПТДЦЙС Ч НПЙИ НЩУМСИ.mp3
DEBUG: Updated metadata on mus_fm to: Джорджия в моих мыслях
DEBUG: Done sending
DEBUG: Builtin playlist handler serving: /usr/radio/mus_fm/misc/йЗПТШ лТХФПК - вЕЪ УМПЧ.mp3
DEBUG: Filename cleaned up from [/usr/radio/mus_fm/misc/йЗПТШ лТХФПК - вЕЪ УМПЧ.mp3] to [йЗПТШ лТХФПК - вЕЪ УМПЧ]
DEBUG: ID3v2: version 3.0. Tag size is 69331 bytes.
DEBUG: ID3v2: Artist found: Игорь Крутой
DEBUG: ID3v2: Title found: Без слов
DEBUG: MPEG-1 layer III, 128 kbps, 44100 Hz, j-stereo
DEBUG: Ext: 0 Mode_Ext: 0 Copyright: 0 Original: 0
DEBUG: Error Protection: 1 Emphasis: 0 Padding: 1
Playing /usr/radio/mus_fm/misc/йЗПТШ лТХФПК - вЕЪ УМПЧ.mp3
DEBUG: Updated metadata on mus_fm to: Игорь Крутой - Без слов
DEBUG: Done sending
DEBUG: Builtin playlist handler serving: /usr/radio/mus_fm/misc/Blues.mp3
DEBUG: Filename cleaned up from [/usr/radio/mus_fm/misc/Blues.mp3] to [Blues]
DEBUG: ID3v1: Title: Blues
DEBUG: ID3v1: Artist:
DEBUG: MPEG-1 layer III, 128 kbps, 44100 Hz, j-stereo
DEBUG: Ext: 0 Mode_Ext: 0 Copyright: 0 Original: 0
DEBUG: Error Protection: 1 Emphasis: 0 Padding: 1
Playing /usr/radio/mus_fm/misc/Blues.mp3
DEBUG: Updated metadata on mus_fm to: Blues
DEBUG: Caught SIGUSR1, skipping to next track...
DEBUG: Builtin playlist handler serving: /usr/radio/mus_fm/misc/йЗПТШ лТХФПК - ьЧТЙДЙЛБ-ДЬОУ.mp3
DEBUG: Filename cleaned up from [/usr/radio/mus_fm/misc/йЗПТШ лТХФПК - ьЧТЙДЙЛБ-ДЬОУ.mp3] to [йЗПТШ лТХФПК - ьЧТЙДЙЛБ-ДЬОУ]
DEBUG: ID3v2: version 3.0. Tag size is 69331 bytes.
DEBUG: ID3v2: Artist found: Игорь Крутой
DEBUG: ID3v2: Title found: Эвридика-дэнс
DEBUG: MPEG-1 layer III, 128 kbps, 44100 Hz, j-stereo
DEBUG: Ext: 0 Mode_Ext: 0 Copyright: 0 Original: 0
DEBUG: Error Protection: 1 Emphasis: 0 Padding: 1
Playing /usr/radio/mus_fm/misc/йЗПТШ лТХФПК - ьЧТЙДЙЛБ-ДЬОУ.mp3
DEBUG: Updated metadata on mus_fm to: Игорь Крутой - Эвридика-дэнс |
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat May 10, 2008 12:29 pm Post subject: |
|
|
You'll have to check the code in the playlist directory, and discuss this with whoever is maintaining ices0 these days, brendan maybe able to help.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat May 10, 2008 5:45 pm Post subject: |
|
|
| Thank you! I'll try to contact with Brendan by email.. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jun 11, 2008 10:20 am Post subject: |
|
|
| No help for me!!! |
|
| Back to top |
|
 |
thedeath
Joined: 24 Mar 2009 Posts: 2
|
Posted: Tue Mar 24, 2009 7:13 pm Post subject: |
|
|
This may be why?
| Quote: |
[root@licey17 /usr/ports/audio/ices0]# make deinstall reinstall
===> Deinstalling for audio/ices0
===> Deinstalling ices-0.4_7
pkg_delete: file '/usr/local/etc/ices.conf.dist' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
===> Installing for ices-0.4_8
===> ices-0.4_8 depends on executable: python - found
===> ices-0.4_8 depends on file: /usr/local/bin/perl5.8.8 - found
===> ices-0.4_8 depends on shared library: shout.5 - found
===> ices-0.4_8 depends on shared library: xml2.5 - found
===> ices-0.4_8 depends on shared library: vorbis - found
===> ices-0.4_8 depends on shared library: mp3lame - found
===> Generating temporary packing list
===> Checking if audio/ices0 already installed
Making install in src
gmake[1]: Entering directory `/usr/ports/audio/ices0/work/ices-0.4/src'
Making install in playlist
gmake[2]: Entering directory `/usr/ports/audio/ices0/work/ices-0.4/src/playlist'
gmake[3]: Entering directory `/usr/ports/audio/ices0/work/ices-0.4/src/playlist'
gmake[3]: Nothing to be done for `install-exec-am'.
gmake[3]: Nothing to be done for `install-data-am'.
gmake[3]: Leaving directory `/usr/ports/audio/ices0/work/ices-0.4/src/playlist'
gmake[2]: Leaving directory `/usr/ports/audio/ices0/work/ices-0.4/src/playlist'
gmake[2]: Entering directory `/usr/ports/audio/ices0/work/ices-0.4/src'
if cc -DHAVE_CONFIG_H -I. -I. -I.. -DICES_ETCDIR=\"/usr/local/etc\" -DICES_MODULEDIR=\"/usr/local/etc/modules\" -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/python2.5 -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.8/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -I/usr/local/lib/perl5/5.8.8/mach/CORE -O2 -fno-strict-aliasing -pipe -I/usr/local/include -Wall -I/usr/local/include -D_THREAD_SAFE -MT signals.o -MD -MP -MF ".deps/signals.Tpo" -c -o signals.o signals.c; \
then mv -f ".deps/signals.Tpo" ".deps/signals.Po"; else rm -f ".deps/signals.Tpo"; exit 1; fi
signals.c: In function `ices_signals_setup':
signals.c:57: warning: ISO C90 forbids mixed declarations and code
signals.c: In function `signals_child':
signals.c:92: warning: ISO C90 forbids mixed declarations and code
....
|
| signal.c contains these strings on lines 57,92 wrote: |
57, struct sigaction sa;
92, int stat;
|
| full signal.c code wrote: |
[root@licey** /usr/ports/audio/ices0]# cat work/ices-0.4/src/signals.c
/* signals.c
* - Functions for signal handling in ices
* Copyright (c) 2000 Alexander HavДng
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#include "definitions.h"
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#ifdef HAVE_SYS_SIGNAL_H
#include <sys/signal.h>
#endif
/* Private function declarations */
static RETSIGTYPE signals_child (const int sig);
static RETSIGTYPE signals_int (const int sig);
static RETSIGTYPE signals_hup (const int sig);
static RETSIGTYPE signals_usr1 (const int sig);
/* Global function definitions */
/* Setup signal handlers for some signals that we don't want
* delivered to icecast, and some that we want to handle in
* a certain way, like SIGINT to cleanup and exit, and hup
* to close and reopen logfiles */
void
ices_signals_setup (void)
{
ices_log_debug ("/// ices_signals_setup /// init");
#ifndef _WIN32
ices_log_debug ("/// ices_signals_setup /// #ifndef _WIN32");
struct sigaction sa;
sigemptyset (&sa.sa_mask);
sa.sa_flags = 0;
sa.sa_handler = SIG_IGN;
sigaction (SIGPIPE, &sa, NULL);
sigaction (SIGIO, &sa, NULL);
sigaction (SIGALRM, &sa, NULL);
sa.sa_handler = signals_int;
sigaction (SIGINT, &sa, NULL);
sigaction (SIGTERM, &sa, NULL);
#ifdef SA_RESTART
ices_log_debug ("/// ices_signals_setup /// #ifdef SA_RESTART");
sa.sa_flags = SA_RESTART;
#endif
ices_log_debug ("/// ices_signals_setup /// #endif");
sa.sa_handler = signals_child;
sigaction (SIGCHLD, &sa, NULL);
sa.sa_handler = signals_hup;
sigaction (SIGHUP, &sa, NULL);
sa.sa_handler = signals_usr1;
sigaction (SIGUSR1, &sa, NULL);
}
/* Guess we fork()ed, let's take care of the dead process */
static RETSIGTYPE
signals_child (const int sig)
{
ices_log_debug ("/// signals_child /// /* Guess we fork()ed, let's take care of the dead process */");
int stat;
wait (&stat);
}
/* SIGINT, ok, let's be nice and just drop dead */
static RETSIGTYPE
signals_int (const int sig)
{
ices_log_debug ("Caught signal, shutting down...");
ices_setup_shutdown ();
}
/* SIGHUP caught, let's cycle logfiles and try to reload the playlist module */
static RETSIGTYPE
signals_hup (const int sig)
{
ices_log_debug ("Caught SIGHUP, cycling logfiles and reloading playlist...");
ices_log_reopen_logfile ();
ices_playlist_reload ();
}
/* I'm not sure whether I'll keep this... */
static RETSIGTYPE
signals_usr1 (const int sig)
{
ices_log_debug ("Caught SIGUSR1, skipping to next track...");
ices_stream_next ();
#endif
}
|
Italic lines are "handmade" for debuggin purposes of my.. and does not present in original code
| uname -a wrote: |
FreeBSD licey******* 6.2-RELEASE FreeBSD 6.2-RELEASE #4: Thu Sep 18 06:31:21 IRKST 2008 root@:/usr/src/sys/amd64/compile/biocore amd64 |
| gmake -v wrote: |
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for amd64-portbld-freebsd6.2 |
Researching the signal.c did not explain me solution... I'm silly at the C/C++ programming...)))
Who can say something? |
|
| Back to top |
|
 |
thedeath
Joined: 24 Mar 2009 Posts: 2
|
Posted: Mon Apr 06, 2009 3:04 pm Post subject: |
|
|
| is there someone alive? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|