Вернуться   Форум RadioCMS > RadioCMS > Установка RadioCMS

Добро пожаловать на Форум RadioCMS.
Форум доступен только для чтения.

Ответ
Опции темы Опции просмотра
  #1  
Непрочитано 29.01.2013, 16:16
admin admin вне форума
Administrator
 
Регистрация: 17.08.2010
О.С.: Debian 7
Версия: 2.5
Сообщений: 844
По умолчанию Создание дополнительного потока с другим битретом

Для создания 2-ого, 3-его и т.д. потоков с одной и той же музыкой, но разным битрейтом используется программа streamTranscoderv3.

В примере мы из точки /live берём мызыку, кодируем её в 64кбит\сек и выводим на /live64.

Устанавливаем:
Цитата:
wget http://radiocms.ru/files/streamtranscoderv3.tar.gz
tar zxvf streamtranscoderv3.tar.gz
cd streamtranscoderv3-3.1.11
./configure
make & make install
Для запуска, заходим в каталог в котором вы будите хранить конфиг (может быть любым) этот пункт важет
Цитата:
cd /usr/icecast/
Для генерации базового конфига конфига просто запускаем в этом каталоге:
Цитата:
streamTranscoderv3
в каталоге в котором вы находитесь появится файл: streamTranscoder_0.cfg, там нужно изменить NumEncoders=0 на NumEncoders=1, что будет означать что вы хотите создать 1 дополнительный поток. По умолчанию там так же прописывается SourceURL=http://localhost:8000/live - точка откуда мызыка берётся для перекодирования, трогать её не нужно.

Далее так же просто ещё раз запускаем
Цитата:
streamTranscoderv3
при этом там же появится файл streamTranscoder_1.cfg - это и есть конфиг вашего дополнительного потока. Удаляем из него всё и добавляем наш конфиг:
Цитата:
Server=localhost
Port=8000
ServerPassword=password
ServerMountpoint=/live64
AutomaticReconnectSecs=10
# Output codec selection (Valid selections : MP3, OggVorbis, Ogg FLAC, AAC, AAC Plus)
Encode=MP3
# General settings (non-codec related). Note : NumberChannels = 1 for MONO, 2 for STEREO
BitrateNominal=64
NumberChannels=2
Samplerate=44100
# LAME specific settings. Note: Setting the low/highpass freq to 0 will disable them.
LameCBRFlag=1
LameQuality=5
LameCopywrite=0
LameOriginal=0
LameStrictISO=0
LameDisableReservior=0
LameLowpassfreq=0
LameHighpassfreq=0
# Destination server details (to where you are encoding). Valid server types : Shoutcast, Icecast, Icecast2
ServerType=Icecast2
# Log Level 1 = LOG_ERROR, 2 = LOG_ERROR+LOG_INFO, 3 = LOG_ERROR+LOG_INFO+LOG_DEBUG
LogLevel=1
# Log File
LogFile=oddcastv2.log
# Save Archives in WAV format
SaveAsWAV=0
# YP (Stream Directory) Settings
ServerPublic=0
ServerIRC=
ServerAIM=
ServerICQ=
ServerStreamURL=http://radiocms.ru
ServerName=
ServerDescription=
ServerGenre=
AutoConnect=0
BitrateMin=128
BitrateMax=128
# Ogg Vorbis specific settings. Note: Valid settings for BitrateQuality flag are (Quality, Bitrate Management)
OggQuality=0
OggBitrateQualityFlag=Quality
LameVBRMode=vbr_abr
LAMEPreset=0
# AAC (FAAC) specific settings.
AACQuality=100
AACCutoff=
# Save directory for archive streams
SaveDirectory=
# Flag which indicates if we are saving archives
SaveDirectoryFlag=0
# LAME Joint Stereo Flag
LAMEJointStereo=1
Жирным выделены места в которые вам нужно вписать свои данные:

ServerPassword - пароль source из icecast.xml
ServerMountpoint - точка потока
BitrateNominal - битрейт потока

Все остальные места, можно не трогать.

Теперь когда всё готово запускаем в фоновом режиме, заходить в папку нужно при каждом запуске:
Цитата:
cd /usr/icecast/ && streamTranscoderv3
Для запуска в фоновом режиме:
Цитата:
cd /usr/icecast/ && streamTranscoderv3 -b
Остановка:
Цитата:
killall streamTranscoderv3
__________________

1) Тем кто ничего не понимает читать это
2) Список самых частых ошибок
p\s Хотите получить исчерпывающий ответ - предоставляйте как можно больше информации (логи и скриншоты - помогают)

Ответить с цитированием
  #2  
Непрочитано 18.02.2013, 19:37
molodejnoe molodejnoe вне форума
Junior Member
 
Регистрация: 29.05.2012
О.С.: Debian
Версия: 2.4
Сообщений: 17
По умолчанию

На команду make & make install отвечает
[1] 27842
-bash: make: command not found
./configure проходит без error

----------------------------------------
ВОТ РЕШЕНИЕ ПРОБЛЕМЫ:
Цитата:
apt-get install build-essential

Последний раз редактировалось molodejnoe; 20.02.2013 в 22:44.
Ответить с цитированием
  #3  
Непрочитано 20.02.2013, 22:33
molodejnoe molodejnoe вне форума
Junior Member
 
Регистрация: 29.05.2012
О.С.: Debian
Версия: 2.4
Сообщений: 17
По умолчанию

Запускаю StreamTranscoderv3 - работает
Закрываю PuTTY - перестает работать.
Как сделать чтобы работал?
------------------------------------------
ПРОБЛЕМА РЕШЕНА! ЗАПУСК ДЛЯ Debian'щиков:
Цитата:
cd /usr/icecast
streamTranscoderv3 &
И МОЖЕТЕ СМЕЛО ЗАКРЫВАТЬ КОМАНДНУЮ СТРОКУ. СТРИМТРАНСКОДЕР ПРОДОЛЖИТ РАБОТАТЬ!

Последний раз редактировалось molodejnoe; 20.02.2013 в 22:45. Причина: Нашел решение - написал
Ответить с цитированием
  #4  
Непрочитано 23.02.2013, 14:35
djbarhat djbarhat вне форума
Member
 
Регистрация: 04.12.2011
О.С.: freebsd
Версия: 2.2
Сообщений: 87
По умолчанию

Цитата:
Сообщение от molodejnoe Посмотреть сообщение
Запускаю StreamTranscoderv3 - работает
Закрываю PuTTY - перестает работать.
Как сделать чтобы работал?
------------------------------------------
ПРОБЛЕМА РЕШЕНА! ЗАПУСК ДЛЯ Debian'щиков:

И МОЖЕТЕ СМЕЛО ЗАКРЫВАТЬ КОМАНДНУЮ СТРОКУ. СТРИМТРАНСКОДЕР ПРОДОЛЖИТ РАБОТАТЬ!
Обычно параметр -С в конце запускает в фоном режиме тоесть при запуске любого пакета обязательно нужно задавать параметр (это обычно храниться в info.txt куда устанавливали пакет)
Ответить с цитированием
  #5  
Непрочитано 02.04.2013, 22:17
Stil Stil вне форума
Junior Member
 
Регистрация: 28.11.2011
О.С.: freebsd
Версия: 2.3
Сообщений: 14
По умолчанию

Что может быть за проблема и как с ней бароться?

Код:
user# wget http://radiocms.ru/files/streamtranscoderv3.tar.gz
--2013-04-02 22:15:27--  http://radiocms.ru/files/streamtranscoderv3.tar.gz
Resolving radiocms.ru (radiocms.ru)... 89.xxx.xxx.40
Connecting to radiocms.ru (radiocms.ru)|89.xxx.xxx.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 480731 (469K) [application/octet-stream]
Saving to: 'streamtranscoderv3.tar.gz'

100%[======================================>] 480,731     --.-K/s   in 0.06s

2013-04-02 22:15:27 (7.41 MB/s) - 'streamtranscoderv3.tar.gz' saved [480731/480731]

user#  tar zxvf streamtranscoderv3.tar.gz
x streamtranscoderv3-3.1.11/
x streamtranscoderv3-3.1.11/streamTranscoderUIv3.cpp
x streamtranscoderv3-3.1.11/sourcethread.h
x streamtranscoderv3-3.1.11/decodethread.h
x streamtranscoderv3-3.1.11/streamTranscoderv3Service.cpp
x streamtranscoderv3-3.1.11/streamTranscoderUIv3.rc
x streamtranscoderv3-3.1.11/streamTranscoderV3Service.dsp
x streamtranscoderv3-3.1.11/vorbisdecoder.h
x streamtranscoderv3-3.1.11/decodethread.cpp
x streamtranscoderv3-3.1.11/reconnectthread.cpp
x streamtranscoderv3-3.1.11/liboddcast/
x streamtranscoderv3-3.1.11/liboddcast/liboddcast.cpp
x streamtranscoderv3-3.1.11/liboddcast/liboddcast_resample.h
x streamtranscoderv3-3.1.11/liboddcast/resample.c
x streamtranscoderv3-3.1.11/liboddcast/liboddcast.dsp
x streamtranscoderv3-3.1.11/liboddcast/liboddcast_socket.h
x streamtranscoderv3-3.1.11/liboddcast/Makefile.in
x streamtranscoderv3-3.1.11/liboddcast/enc_if.h
x streamtranscoderv3-3.1.11/liboddcast/liboddcast.h
x streamtranscoderv3-3.1.11/liboddcast/Makefile.am
x streamtranscoderv3-3.1.11/liboddcast/Socket.cpp
x streamtranscoderv3-3.1.11/COPYING
x streamtranscoderv3-3.1.11/config.sub
x streamtranscoderv3-3.1.11/StdAfx.cpp
x streamtranscoderv3-3.1.11/mp3decoder.cpp
x streamtranscoderv3-3.1.11/cbuffer.h
x streamtranscoderv3-3.1.11/streamTranscoderUIv3.h
x streamtranscoderv3-3.1.11/res/
x streamtranscoderv3-3.1.11/res/streamTranscoderUIv3.rc2
x streamtranscoderv3-3.1.11/res/streamTranscoderUIv3.ico
x streamtranscoderv3-3.1.11/aclocal.m4
x streamtranscoderv3-3.1.11/cbuffer.c
x streamtranscoderv3-3.1.11/reconnectthread.h
x streamtranscoderv3-3.1.11/missing
x streamtranscoderv3-3.1.11/depcomp
x streamtranscoderv3-3.1.11/streamTranscoderUIv3Dlg.h
x streamtranscoderv3-3.1.11/StdAfx.h
x streamtranscoderv3-3.1.11/config.guess
x streamtranscoderv3-3.1.11/install-sh
x streamtranscoderv3-3.1.11/Makefile.in
x streamtranscoderv3-3.1.11/streamTranscoderUIv3.dsw
x streamtranscoderv3-3.1.11/sourcethread.cpp
x streamtranscoderv3-3.1.11/vorbisdecoder.cpp
x streamtranscoderv3-3.1.11/configure.in
x streamtranscoderv3-3.1.11/socket_client.h
x streamtranscoderv3-3.1.11/streamTranscoderv3.nsi
x streamtranscoderv3-3.1.11/streamTranscoderUIv3.dsp
x streamtranscoderv3-3.1.11/Makefile.am
x streamtranscoderv3-3.1.11/resource.h
x streamtranscoderv3-3.1.11/configure
x streamtranscoderv3-3.1.11/mp3decoder.h
x streamtranscoderv3-3.1.11/AUTHORS
x streamtranscoderv3-3.1.11/streamTranscoderUIv3Dlg.cpp
x streamtranscoderv3-3.1.11/socket_client.c
x streamtranscoderv3-3.1.11/ltmain.sh
x streamtranscoderv3-3.1.11/streamTranscoderv3.cpp
x streamtranscoderv3-3.1.11/m4/
x streamtranscoderv3-3.1.11/m4/vorbis.m4
x streamtranscoderv3-3.1.11/m4/ogg.m4
x streamtranscoderv3-3.1.11/m4/lame.m4
x streamtranscoderv3-3.1.11/m4/mad.m4
x streamtranscoderv3-3.1.11/oddsock_logo.bmp
user#  cd streamtranscoderv3-3.1.11
user#  ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-freebsd9.1
checking host system type... x86_64-unknown-freebsd9.1
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd9.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for libogg... not found
configure: error: must have Ogg installed!(Perhaps you need --with-ogg-prefix=/usr/local)
user#  make & make install
make: no target to make.
[1] 87066
make: don't know how to make install. Stop
[1]  + Exit 2                        make
Установить libogg?

Последний раз редактировалось Stil; 02.04.2013 в 22:22.
Ответить с цитированием
  #6  
Непрочитано 02.04.2013, 23:55
admin admin вне форума
Administrator
 
Регистрация: 17.08.2010
О.С.: Debian 7
Версия: 2.5
Сообщений: 844
По умолчанию

Цитата:
Сообщение от Stil Посмотреть сообщение
Установить libogg?
Верно, для FreeBSD
Цитата:
cd /usr/ports/audio/libogg/ && make install clean
__________________

1) Тем кто ничего не понимает читать это
2) Список самых частых ошибок
p\s Хотите получить исчерпывающий ответ - предоставляйте как можно больше информации (логи и скриншоты - помогают)

Ответить с цитированием
  #7  
Непрочитано 03.04.2013, 00:31
Stil Stil вне форума
Junior Member
 
Регистрация: 28.11.2011
О.С.: freebsd
Версия: 2.3
Сообщений: 14
По умолчанию

Making all in include
Making all in ogg
Making all in doc
Making all in libogg
===> Installing for libogg-1.3.0,4
===> Generating temporary packing list
===> Checking if audio/libogg already installed
===> libogg-1.3.0,4 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of audio/libogg
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** [check-already-installed] Error code 1

Stop in /usr/ports/audio/libogg.

Не помогло пишет что вроде установлен

Последний раз редактировалось Stil; 03.04.2013 в 00:42.
Ответить с цитированием
  #8  
Непрочитано 03.04.2013, 16:18
admin admin вне форума
Administrator
 
Регистрация: 17.08.2010
О.С.: Debian 7
Версия: 2.5
Сообщений: 844
По умолчанию

Получается он не видит установленный libogg, надо разбираться почему. Попробуйте make reinstall и\или в конфигураторе streamTranscoder указать путь до libogg --with-ogg-prefix=
__________________

1) Тем кто ничего не понимает читать это
2) Список самых частых ошибок
p\s Хотите получить исчерпывающий ответ - предоставляйте как можно больше информации (логи и скриншоты - помогают)

Ответить с цитированием
  #9  
Непрочитано 03.04.2013, 19:21
Stil Stil вне форума
Junior Member
 
Регистрация: 28.11.2011
О.С.: freebsd
Версия: 2.3
Сообщений: 14
По умолчанию

Сколько возьмешь за установку этого streamtranscoderv3? кинул письмо на email.

Последний раз редактировалось Stil; 03.04.2013 в 21:13.
Ответить с цитированием
  #10  
Непрочитано 08.04.2013, 00:08
djbarhat djbarhat вне форума
Member
 
Регистрация: 04.12.2011
О.С.: freebsd
Версия: 2.2
Сообщений: 87
По умолчанию

кусочек с моего ezstream.xml
Цитата:
<ezstream>
<url>http://local:8000/world</url>
<sourcepassword>******</sourcepassword>
<format>MP3</format>
<filename>/home/radio/pl-ezs/radio-world/playlist.txt</filename>
<shuffle>0</shuffle>
<stream_once>0</stream_once>
<playlist_program>0</playlist_program>
<svrinfoname>First Radio of 51 Channels in Russia</svrinfoname>
<svrinfourl>http://my/</svrinfourl>
<svrinfogenre>Progre***************** </svrinfogenre>
<svrinfodescription>World Entertainment Recordings of ***************</svrinfodescription>
<svrinfobitrate>192</svrinfobitrate>
<svrinfochannels>2</svrinfochannels>
<svrinfosamplerate>44100</svrinfosamplerate>
<svrinfopublic>1</svrinfopublic>
<reencode>
<enable>1</enable>
<encdec>
<format>MP3</format>
<match>.mp3</match>
<decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode>
<encode>lame --preset cbr 192 -r -s 44.1 --bitwidth 16 - -</encode>
</encdec>
</reencode>
</ezstream>
процент загрузки ЦП в 5 раз меньше чем просто LAME помойму( я уже забыл) короче madplay создает минимальную загрузку на цп ! ....
apt-get install madplay

Последний раз редактировалось djbarhat; 08.04.2013 в 00:12.
Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +3, время: 02:44.