ОсновноеRadiotalkПользовательское
Общие вопросы по интернет радио вещанию
6   •   Посмотреть все темы

icecast2 + icegenerator на FreeBSD

 

4
Disabled @Disabled
tarasian666 пишет:

а запускаються от разных пользователей
поменяйте права с 644 на 666


Всё осталось на прежнем уровне.
Установил ices0, вроде работает стабильно.


В любом случае спасибо за помощь.

Отредактировано Disabled - 16.01.2012
3
zikfriddi @zikfriddi
А тут еще есть кто-нибудь?:)
Меня вот очень интересует продолжение:) Так и не запускается icegeneranor.Может кто подскажет?
В логе

"Mon May 27 18:01:23 2013: Insufficient parameters to run Icegenerator"

6245
Тарас @tarasian666
похоже конфиг не полный Insufficient parameters

3
zikfriddi @zikfriddi
Копировал конфиг от сюда
# IceGenerator sample configuration file

#######################################################
# Server section
#######################################################

# IP (REQUIRED)
IP=192.168.16.180

# Port (REQUIRED)
PORT=8000

# Type (REQUIRED)
# 1 - Icecast 1.3.21 or Shoutcast (ICY protocol compatible)
# 2 - Icecast 2.0 (HTTP protocol compatible)
SERVER=2

# Mount point for MP3/OGG streaming. (REQUIRED)
# REMEMBER TO SET A VIRTUAL MOUNT POINT HERE FOR OGG STREAMING. MANY
# PLAYERS (LIKE WINAMP, XMMS, ETC.) CAN'T AUTO RECOGNIZE OGG STREAMING
# WITHOUT .OGG EXTENSION.
MOUNT=/r.mp3



#######################################################
# User section
#######################################################

# Source user name (usually IceCast is configured for "source"). (REQUIRED)
SOURCE=source

# Server connection password (REQUIRED)
PASSWORD=



#######################################################
# File and playlist section
#######################################################

# Format (REQUIRED)
# 0 - Ogg Vorbis
# 1 - MP3
FORMAT=1

# Path for MP3s/OGGs. (REQUIRED)
# This variable has the following format:
# playlist_type:playlist_data
# where playlist_type is
# pth: list of dirs
# sql: MySQL server table
# pql: PostGreSQL server table
# pls: PLS file
# m3u: M3U file
#
# pth case
# playlist_data is your mp3's directories separated with full commas
# eg: pth:/path1;/path2;path3
#
# pql/sql case
# playlist_data is your PostGreSQL/MySQL connection data (separated with
# full commas) in the following order:
# sql:host;port;user;password;database;table;field where:
# host is SQL server hostname or IP
# port is SQL server port. If 0, default port will be used
# user is SQL user authorized to database read access
# password is SQL user password
# database is SQL db name that contains mp3 data
# table is SQL table of database that contains mp3 data
# field is SQL table's field that contains mp3 pathname
#
# m3u/pls case
# you have to specify a M3U/PLS standard playlist file path.
# eg: pls:/my_path/my_playlist.pls
MP3PATH=pth:/home/user/music

# Set this flag to search recursively from root directories specified (default is disabled)
RECURSIVE=1

# File to record the stream to on the server (default is none)
DUMPFILE=

# Loop playlist (default is enabled)
LOOP=1

# Set this flag to play your music in random order (default is enabled), otherwise
# alphabetic order will be used
SHUFFLE=1

#######################################################
# Information
#######################################################

# In next four variables u can put your metadata information that will be
# sent to clients. You can use any string you want.

# Name of the stream (default none).
NAME=Dzzz

# Genre of the stream (default none).
GENRE=djugadjaga

# Description of the stream (default none).
DESCRIPTION=Your

# Url of the stream (default none).
URL=http://192.168.16.180:8000/r.mp3

# Bitrate of the stream. Its value is purely informational. It doesn't
# affect real bitrate of your MP3s (default 24000).
BITRATE=128000

# Flag to list the stream in directories (default 0)
PUBLIC=0

# Set this flag to specify time elapsed between META information update in seconds
# (default is 5). A value of 0 disables META information, and only NAME value
# will be transmitted.
METAUPDATE=5

# This set global MetaDataFile path for your songs. See README.IceMetal
# for more info.
#MDFPATH=/home/user/music/global.mdf


#######################################################
# Debug and logging information
#######################################################

# Log
# 0 - None
# 1 - System logger
# 2 - File
LOG=2

# Log path
# Specify where you want to log IceG actions. Defaults to /var/log/icegenerator.log
# if not specified
LOGPATH=/var/log/icegenerator.log

#######################################################
# Telnet interface
#######################################################

# Now IceGenerator has a minimal telnet interface that
# receives run-time commands to change IceGenerator
# behaviour while streaming. Case is insensitive.
# ALL COMMAND MUST BE FOLLOWED BY A TRAILING DOT!!!
# Telnet commands are:
# TRACK
# Returns information about current track
# LOOP
# Returns information about current LOOP setting
# LOOPON
# Turns on playlist loop
# LOOPOFF
# Turns off playlist loop
# SHUFFLE
# Returns informations about current SHUFFLE setting
# SHUFFLEON
# Turns on shuffle
# SHUFFLEOFF
# Turns off shuffle
#
# DATAPORT is used to specify telnet port. If not specified, telnet
# interface will be disabled. If 0, 8796 (default port) will be used.
#DATAPORT=8796

Отредактировано zikfriddi - 27.05.2013
3
zikfriddi @zikfriddi
Все нашел, я не написал пароль:)....зато ветку поднял!!! Спасибо автору!

6
Alexander @KIper
Кто-нибудь запускал icegenerator с чтением плей-листа из мускульной базы?
Оно работает, но не понятно как треки в плей-лист берёт, SHUFFLE=0 в конфиге, а при запуске играет не тот трек, который первый в таблице в БД... А мне надо что бы очерёдность как в таблице была.
К тому же у icegenerator плохой лог-файл, есть ли возможность сделать как у ices - ices.cue? Офигенный файл, хотя бы по тому, что он там первой строкой пишет путь к файлу, который играет, и прогресс есть.
К тому же не умеет crossfade :(

Отредактировано KIper - 25.10.2013
13
Фаро @Фаро
Народ помогите мне. Не получается запустить два потока..... целый час мучаюсь. Кто нить пробовал запускать по нескольку потоку :?

13
Фаро @Фаро
не могу запустить демон прописал его ко второму потоку

#!/bin/sh
#
# $FreeBSD: ports/audio/icegenerator/files/icegenerator.sh.in,v 1.2 2006/07/10 18:32:31 dougb Exp $
#
# PROVIDE: icegenerator2
# REQUIRE: DAEMON
# BEFORE: login
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable `icegenerator':
#
#icegenerator2_enable="YES"
#icegenerator2_flags=""
#
. "/etc/rc.subr"
name="icegenerator2"
rcvar=`set_rcvar`
command="/usr/local/bin/icegenerator"
command_args="1>/dev/null 2>&1"
required_files="/usr/local/etc/icegenerator.conf.channel2"
sig_stop=KILL
# read configuration and set defaults
load_rc_config "$name"
: ${icegenerator2_enable="NO"}
: ${icegenerator2_flags=""}
run_rc_command "$1"

а он запускает первый поток.... как сделать так чтоб мог запустить другие потоки с помощью этой программы ?

6245
Тарас @tarasian666
More options (like icegenerator.conf path, deamon start) are available at command line. Type "icegeneator -h" for synopsys.

13
Фаро @Фаро
tarasian666 пишет:

More options (like icegenerator.conf path, deamon start) are available at command line. Type "icegeneator -h" for synopsys.


попробовал все равно также...

Отредактировано Фаро - 28.10.2013
13
Фаро @Фаро
проблему решил

Отредактировано Фаро - 07.11.2013
13
Фаро @Фаро
проблему решил

Отредактировано Фаро - 07.11.2013