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

FreeBSD+Icecast+ices+StreamTranscoder=проблемка :)

 

5
inuke @inuke
Господа, здравствуйте.

2 день бьюсь, так и не получается организовать данную связку. Icecast+ices работают замечательно, а вот StreamTranscoder запускаться отказывается.

пишет при запуске следующее:

server# streamTranscoder -c myconfig.cfg
Input Stream URL : (http://localhost:8000/111)
Output Stream Type : (MP3)
Output Server Type : (Icecast2)
Output Bitrate : (64kbps/44100Hz/Stereo)
Output status : (Disconnected)
Main Status : (Connecting To Output Stream)
Output status : (Connecting)
Output status : (Socket connected)
Output status : (Success)
Output status : (Connected)
Input Stream URL : (http://localhost:8000/111)
Main Status : (Connecting To Input)
Input Status : (Connecting...)
Input Stream Type : (MP3)
Input Stream Name : (Nazvanie)
Input Server Type : (Icecast/Icecast2)
Output Stream Type : (MP3)
Main Status : (Transcoding......)
Input Status : (Connected)
Metadata : (song1)
Broken pipe


Вопрос: Что делать? Что прописать в его конфиге, чтобы он перекодировал в 64(изначальный поток льётся в 128)? Может кто своим конфигом поделится?

2605
Александр @AlexIT
вместо локалхост айпишник сервера не пробовали указывать? :)

5
inuke @inuke
попробовал:

server# streamTranscoder -c myconfig.cfg
Input Stream URL : (**********)
Output Stream Type : (MP3)
Output Server Type : (Icecast2)
Output Bitrate : (64kbps/44100Hz/Stereo)
Output status : (Disconnected)
Main Status : (Connecting To Output Stream)
Output status : (Connecting)
Output status : (Socket connected)
Output status : (Success)
Output status : (Connected)
Input Stream URL : (**********)
Main Status : (Connecting To Input)
Input Status : (Connecting...)
Input Stream Type : (MP3)
Input Stream Name : (Nazvanie)
Input Server Type : (Icecast/Icecast2)
Output Stream Type : (MP3)
Main Status : (Transcoding......)
Input Status : (Connected)
Metadata : (Kazantip - informer)
Broken pipe

(172.25.201.2-внутренний айпишник сервака)

тоже самое :( Может в конфиге айскаста что-то добавить нужно ибо там всё стандартно?

2605
Александр @AlexIT
В гугл по запросу Broken pipe.

5
inuke @inuke
И так, чтобы более понятно было, что я хочу представить схему

(За исходник спасибо MaximM-у, надеюсь он не обидится :) )

Как настроить авто дж вроде понятно(спасибо Вашему форуму), а вот дальше -геморрой. Как видно из постов выше, у меня так и не получилось запустить транскодер. Танцы с бубном не помогли. Есть подозрение, что не запускается процесс перекодирования, т.к. если в конфиге айсиса поставить "1" в теге reencode, то асис тоже не запускается. Почему? Ламе 3.93 стоит.


И главная просьба, может просто кто-нибудь поделится своими конфигами для айскаста, асиса и стримтранскодера? Ибо, конечно может я и ленив, но я был бы очень вам благодарен. И ящик пыва с меня=)

5
inuke @inuke
Стоит на серваке:


curl-7.16.3 Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
gettext-0.16.1_3 GNU gettext package
glib-2.14.2 Some useful routines of C programming (current stable versi
icecast2-2.3.1_7,1 A streaming mp3/ogg-vorbis audio server
ices-0.4_6 An mp3 streaming source client for icecast 2
lame-3.97_1 ISO code based fast MP3 encoder kit
libiconv-1.11_1 A character set conversion library
libmad-0.15.1b_2 Libmad library (part of MAD project)
libogg-1.1.3,4 Ogg bitstream library
libshout2-2.2.2_2,1 Routines for connecting and transmitting data to the icecas
libtheora-1.0.a8 Theora video codec for the Ogg multimedia streaming system
libvorbis-1.2.0_1,3 Audio compression codec library
libxml2-2.6.30 XML parser library for GNOME
libxslt-1.1.22 The XSLT C library for GNOME
mc-4.6.1_6 Midnight Commander, a free Norton Commander Clone
pcre-7.4 Perl Compatible Regular Expressions library
perl-5.8.8_1 Practical Extraction and Report Language
pkg-config-0.22_1 A utility to retrieve information about installed libraries
proftpd-1.3.1_4 Highly configurable ftp daemon
python-2.5,2 The "meta-port" for the default version of Python interpret
python25-2.5.1_1 An interpreted object-oriented programming language
speex-1.2.b2,1 An open-source patent-free voice codec
streamtranscoder-1.2.8_2 Transcode and stream audio to a SHOUTcast/Icecast/Peercast

10
GoldenScrew @GoldenScrew
актуален вопрос

1400
Pheoru @Pheoru
Стримтранскодер создает в своей директории (если из портов по дефолту - /usr/local/bin) файл myconfig.cfg
Его конфигурируем, и будет счастье.

1
zakachkin @zakachkin
а у меня вот это вываливаеться

[root@zakachkin log]# streamTranscoder -c /etc/myconfig.cfg
Input Stream URL : (http://pentagon.net.ru:9000/Avtoradio_192)
Output Stream Type : (MP3)
Output Server Type : (Icecast2)
Output Bitrate : (128kbps/44100Hz/Stereo)
Output status : (Disconnected)
Main Status : (Connecting To Output Stream)
Output status : (Connecting)
Output status : (Socket connected)
Output status : (Success)
Output status : (Connected)
Input Stream URL : (http://pentagon.net.ru:9000/Avtoradio_192)
Main Status : (Connecting To Input)
Input Status : (Connecting...)
Input Stream Type : (MP3)
Input Server Type : (Icecast/Icecast2)
Output Stream Type : (MP3)
Main Status : (Transcoding......)
Input Status : (Connected)
Output status : (Disconnecting)
Output status : (Disconnected)
Main Status : (Done)

вот конфиг
#
#The source URL for the broadcast. It must be in the form ********** For those servers without a mountpoint (Shoutcast) use ********** To record from line in, use 'linein' for this entry
#
SourceURL=http://pentagon.net.ru:9000/Avtoradio_192

#
#The server to which the stream is sent. It can be a hostname or IP (example: www.stream.com, 192.168.1.100)
#
Server=localhost

#
#The port to which the stream is sent. Must be a number (example: 8000)
#
Port=8000

#
#This is the encoder password for the destination server (example: hackme)
#
ServerPassword=password

#
#This setting tells the destination server to list on any available YP listings. Not all servers support this (Shoutcast does, Icecast2 doesn't) (example: 1 for YES, 0 for NO)
#
ServerPublic=0

#
#This is used in the YP listing, I think only Shoutcast supports this (example: #mystream)
#
ServerIRC=

#
#This is used in the YP listing, I think only Shoutcast supports this (example: myAIMaccount)
#
ServerAIM=

#
#This is used in the YP listing, I think only Shoutcast supports this (example: 332123132)
#
ServerICQ=

#
#The URL that is associated with your stream. (example: **********
#
ServerStreamURL=

#
#A short description of the stream (example: Stream House on Fire!)
#
ServerDescription=This is my server desription

#
#Genre of music, can be anything you want... (example: Rock)
#
ServerGenre=Rock

#
#Used for Icecast/Icecast2 servers, The mountpoint must end in .ogg for Vorbis streams and have NO extention for MP3 streams. If you are sending to a Shoutcast server, this MUST be blank. (example: /mp3, /myvorbis.ogg)
#
ServerMountpoint=/test

#
#Wether or not oddcast will reconnect if it is disconnected from the destination server (example: 1 for YES, 0 for NO)
#
AutomaticReconnect=1

#
#How long it will wait (in seconds) between reconnect attempts. (example: 10)
#
AutomaticReconnectSecs=10

#
#What format to encode to. Valid values are (OGG, LAME) (example: OGG, LAME)
#
Encode=LAME

#
#The port used for WMA stream (example: 8200)
#
WMAPort=8200

#
#Number of clients to support WMA encoding. (example: 1, 10)
#
WMAClients=5

#
#Number of clients to support WMA encoding. (example: 1, 10)
#
WMAMode=Stereo

#
#Bitrate. This is the mean bitrate if using VBR.
#
BitrateNominal=128

#
#Minimum Bitrate. Used only if using Bitrate Management (not recommended) or LAME VBR(example: 64, 128)
#
BitrateMin=128

#
#Maximum Bitrate. Used only if using Bitrate Management (not recommended) or LAME VBR (example: 64, 128)
#
BitrateMax=128

#
#Number of channels. Valid values are (1, 2). 1 means Mono, 2 means Stereo (example: 2,1)
#
NumberChannels=2

#
#Vorbis Quality Level. Valid values are between -1 (lowest quality) and 10 (highest). The lower the quality the lower the output bitrate. (example: -1, 3)
#
OggQuality=0

#
#Sample rate for the stream. Valid values depend on wether using lame or vorbis. Vorbis supports odd samplerates such as 32kHz and 48kHz, but lame appears to not.feel free to experiment (example: 44100, 22050, 11025)
#
Samplerate=44100

#
#This flag specifies if you want Vorbis Quality or Bitrate Management. Quality is always recommended. Valid values are (Bitrate, Quality). (example: Quality, Bitrate Management)
#
#OggBitrateQualityFlag=Quality

#
#This LAME flag indicates that CBR encoding is desired. If this flag is set then LAME with use CBR, if not set then it will use VBR (and you must then specify a VBR mode). Valid values are (1 for SET, 0 for NOT SET) (example: 1)
#
LameCBRFlag=1

#
#A number between 1 and 10 which indicates the desired quality level of the stream. The higher the number, the higher the quality. Also, the higher the number, the higher the CPU utilization. So for slower CPUs, try a low quality number (example: 5)
#
LameQuality=1

#
#Copywrite flag. Not used for much. Valid values (1 for YES, 0 for NO)
#
LameCopywrite=0

#
#Original flag. Not used for much. Valid values (1 for YES, 0 for NO)
#
LameOriginal=0

#
#Strict ISO flag. Not used for much. Valid values (1 for YES, 0 for NO)
#
LameStrictISO=0

#
#Disable Reservior flag. Not used for much. Valid values (1 for YES, 0 for NO)
#
LameDisableReservior=0

#
#This specifies the type of VBR encoding LAME will perform if VBR encoding is set (CBRFlag is NOT SET). See the LAME documention for more on what these mean. Valid values are (vbr_rh, vbr_mt, vbr_mtrh, vbr_abr)
#
LameVBRMode=vbr_abr

#
#Use LAMEs lowpass filter. If you set this to 0, then no filtering is done.
#
LameLowpassfreq=0

#
#Use LAMEs highpass filter. If you set this to 0, then no filtering is done.
#
LameHighpassfreq=0

#
#The destination server type. You must set this correctly otherwise you will get problems connecting the encoder. Please make sure you are using the correct one. Valid values are (Shoutcast, Icecast, Icecast2) (example: Icecast2)
#
ServerType=Icecast2

#
#If recording from linein, what device to use (not needed for win32) (example: /dev/dsp)
#
AdvRecDevice=/dev/dsp

#
#If recording from linein, what sample rate to open the device with. (example: 44100, 48000)
#
LiveInSamplerate=44100

#
#Used for any window positions (X value)
#
lastX=0

#
#Used for any window positions (Y value)
#
lastY=0

#
#Used for plugins that show the VU meter
#
showVU=0

#
#Flag which indicates we are recording from line in
#
LineInFlag=0

#
#Locked Metadata
#
LockMetadata=

#
#Flag which indicates if we are using locked metadata
#
LockMetadataFlag=0

#
#Save directory for archive streams
#
SaveDirectory=

#
#Flag which indicates if we are saving archives
#
SaveDirectoryFlag=0

#
#Log Level 1 = LOG_ERROR, 2 = LOG_ERROR+LOG_WARNING, 3 = LOG_ERROR+LOG_WARNING+LOG_DEBUG
#
LogLevel=1

#
#Log File
#
LogFile=oddcastv2.log

#
#Save Archives in WAV format
#
SaveAsWAV=0

#
#AAC Quality Level. Valid values are between 10 (lowest quality) and 500 (highest).
#
AACQuality=100

#
#AAC Cutoff Frequency.
#
AACCutoff=

Отредактировано zakachkin - 18.09.2009
1400
Pheoru @Pheoru
Output status : (Disconnecting)
Output status : (Disconnected)

Он не может подключиться к IceCast, чтобы начать вещать на маунт.