Anonymous Guest
|
Posted: Sat Apr 26, 2008 3:45 pm Post subject: Tool for ices0+icecast2 - starting/managing sources (Debian) |
|
|
I write this script for my own needs, but maybe someone find it useful.
http://brothers.allright.ru/stuff/icecast/en/ice
Script for Icecast2 and Ices0 users
Actions:
create folders /var/music/channel1, /var/music/channel2, unpack rar,zip and arj archives with music, copy all mp3/ogg/flac, create playlists, start sources
If you try to start channel again, then source directory will be checked, and if script finds new files, then restarts channel with new playlist
Parameters:
ice start directory_with_archives source genre - start source
ice skip 'name' - skip track in source 'name'
ice hist - show history
ice hist id3 - show history with id3 tags
ice hstart N - start N last sources from history
ice list - list current sources
ice kill 'name' - kill source 'name'
ice killall - kill all sources with playlists and tempfiles
ice removemusic - clean directory with unpacked music
ice clean - kill all sources, remove all logs and tempfiles
ice restart - restart all sources
ice weblog - icecast2 webserver brief history
Installing script:
sudo ice install
(apt-get needed packages, install logrotate and bash-completion)
Starting script:
sudo ice start /home/someuser/archive/music channel1 rock
sudo ice start /home/otheruser/archive/music channel2 pop
Debian 4.0 (etch) packages for Ices0:
http://server2.allright.ru/dists/etch/main/binary-i386/ices_0.4-1_i386.deb
http://server2.allright.ru/dists/etch/main/binary-i386/libmp3lame0_3.98-1_i386.deb |
|