€
$
₴
₽
EN
RU
Vmeste.EU
Лента
Каталог
Файлы
Форумы
Услуги
Основное
Radiotalk
Пользовательское
Технологии вещания, софт, скрипты
6 •
Посмотреть все темы
audiofire 12, jackd, icecast2. БЕЫЮМХЕ ЮМЮКНЦНБШУ ЙЮМЮКНБ Б ЯЕРЭ
1
1
12root12
@12root12
12.02.2009
audiofire 12 звуковая карта с 1394 интерфейсом.
Нужно из 12 её входов вещать в мп3 в сеть 6 стерео каналов.
Проблема возника с вещанием более 2-х. Отказываються работать darkice и edcast/
Darkice выдает ошибку либы lame
edcast:
kryger@audiofire:~/edcast-jack-3.1.7/conf$ /usr/local/edcast/bin/edcast_jack -n three -c channel_5_6.cfg system:capture_5 system:capture_6 &
[4] 20139
kryger@audiofire:~/edcast-jack-3.1.7/conf$ SERVER: Disconnected
SERVER: Connnecting to 127.0.0.1:134596248
SERVER: Socket connected
SERVER: Success
SERVER: Connected
SERVER: Disconnecting
SERVER: Disconnected
SERVER: Disconnected from server
SERVER: Connecting in 10 seconds
SERVER: Connecting in 9 seconds
SERVER: Connecting in 8 seconds
SERVER: Connecting in 7 seconds
SERVER: Connecting in 6 seconds
SERVER: Connecting in 5 seconds
SERVER: Connecting in 4 seconds
SERVER: Connecting in 3 seconds
SERVER: Connecting in 2 seconds
SERVER: Connecting in 1 seconds
SERVER: Connecting in 0 seconds
SERVER: Connnecting to 127.0.0.1:134596248
SERVER: Socket connected
OUTPUT: 0 Kbps
SERVER: Success
SERVER: Connected
SERVER: Disconnecting
SERVER: Disconnected
SERVER: Disconnected from server
Как все ставилось:
apt-get update
apt-get upgrade
apt-get install linux-image-rt
reboot
uname -a
Linux audiofire 2.6.24-23-rt #1 SMP PREEMPT RT Mon Jan 26 02:29:24 UTC 2009 i686 GNU/Linux
nano /etc/apt/sources.list - добавляем : deb
**********
gutsy contrib
apt-get update
apt-get install libffado2 libffado2-dev jackd-firewire-driver libjack-dev qjackctl
echo @audio - rtprio 99 >> /etc/security/limits.conf
echo @audio - memlock 250000 >> /etc/security/limits.conf
echo @audio - nice -10 >> /etc/security/limits.conf
nano /etc/group - добавляем юзера в группу диск
disk:x:6:kryger
nano /etc/rc.local - доводим до такого состояния:
modprobe raw1394
exit 0
reboot
kryger@audiofire:~$ jackd -R -dfirewire -r48000 -p1024 -n3 &
[1] 4985
kryger@audiofire:~$ no message buffer overruns
jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
00092400353: (ffado.cpp)[ 92] ffado_streaming_init: libffado 1.999.40- built Nov 22 2008 23:12:02
libiec61883 warning: Established connection on channel 0.
You may need to manually set the channel on the receiving node.
libiec61883 warning: Established connection on channel 1.
You may need to manually set the channel on the transmitting node.
kryger@audiofire:~$ wget
**********
- берем кодировщик
kryger@audiofire:~$ tar -xzf edcast-jack-3.1.7.tar.gz
kryger@audiofire:~$ cd edcast-jack-3.1.7/
kryger@audiofire:~$ sudo apt-get install autoconf build-essential libtool libflac-dev libvorbis-dev liblame-dev libmad0-dev
kryger@audiofire:~/edcast-jack-3.1.7$ ./configure --prefix=/usr/local/edcast
kryger@audiofire:~/edcast-jack-3.1.7$ make
kryger@audiofire:~/edcast-jack-3.1.7$ sudo make install
kryger@audiofire:~/edcast-jack-3.1.7$ cd conf/
kryger@audiofire:~/edcast-jack-3.1.7/conf$ sudo apt-get install icecast2
kryger@audiofire:~/edcast-jack-3.1.7/conf$ sudo nano /etc/default/icecast2 - правим на
ENABLE=true
kryger@audiofire:~/edcast-jack-3.1.7/conf$ sudo /etc/init.d/icecast2 start
Starting icecast2: Starting icecast2
Detaching from the console
icecast2.
kryger@audiofire:~/edcast-jack-3.1.7/conf$ nano sample.cfg - правим
Server=127.0.0.1
NumberChannels=2 - иначе будет моно
Samplerate=48000 - с другой частотой джек работает плохо.
kryger@audiofire:~/edcast-jack-3.1.7/conf$ jack_lsp - смотрим порты в jackd
system:capture_1
system:capture_2
system:capture_3
system:capture_4
system:capture_5
system:capture_6
system:capture_7
system:capture_8
system:capture_9
system:capture_10
system:capture_11
system:capture_12
system:midi_capture_1
system:playback_1
system:playback_2
system:playback_3
system:playback_4
system:playback_5
system:playback_6
system:playback_7
system:playback_8
system:playback_9
system:playback_10
system:playback_11
system:playback_12
system:midi_playback_1
kryger@audiofire:~/edcast-jack-3.1.7/conf$ /usr/local/edcast/bin/edcast_jack -n first -c sample.cfg system:capture_1 system:capture_2 &
[2] 20043
kryger@audiofire:~/edcast-jack-3.1.7/conf$ SERVER: Disconnected
SERVER: Connnecting to 127.0.0.1:134596248
SERVER: Socket connected
SERVER: Success
SERVER: Connected
OUTPUT: 47 Kbps
OUTPUT: 47 Kbps
OUTPUT: 48 Kbps
Лезем на
**********
видим точку монтирования и радуемся. Туда кодируються в мп3 1-й и 2-й каналы звуковухи
fg
ctrl+c убиваем это дело
kryger@audiofire:~/edcast-jack-3.1.7/conf$ cp sample.cfg channel_1_2.cfg
kryger@audiofire:~/edcast-jack-3.1.7/conf$ cp sample.cfg channel_3_4.cfg
kryger@audiofire:~/edcast-jack-3.1.7/conf$ cp sample.cfg channel_5_6.cfg
kryger@audiofire:~/edcast-jack-3.1.7/conf$ nano channel_3_4.cfg
kryger@audiofire:~/edcast-jack-3.1.7/conf$ diff channel_3_4.cfg channel_1_2.cfg
6c6
< ServerMountpoint=/stream1
---
> ServerMountpoint=/stream
46c46
< LogFile=streamTranscoder_2
---
> LogFile=streamTranscoder_1
kryger@audiofire:~/edcast-jack-3.1.7/conf$ nano channel_5_6.cfg - аналогично.
Запускаем - и видим 2 точки монтирования в айскасте.
kryger@audiofire:~/edcast-jack-3.1.7/conf$ /usr/local/edcast/bin/edcast_jack -n first -c channel_1_2.cfg system:capture_1 system:capture_2 > /dev/null &
[2] 20123
kryger@audiofire:~/edcast-jack-3.1.7/conf$ /usr/local/edcast/bin/edcast_jack -n second -c channel_3_4.cfg system:capture_3 system:capture_4 > /dev/null &
[3] 20131
запускаем 3-й стерео канал
kryger@audiofire:~/edcast-jack-3.1.7/conf$ /usr/local/edcast/bin/edcast_jack -n three -c channel_5_6.cfg system:capture_5 system:capture_6 &
[4] 20139
kryger@audiofire:~/edcast-jack-3.1.7/conf$ SERVER: Disconnected
SERVER: Connnecting to 127.0.0.1:134596248
SERVER: Socket connected
SERVER: Success
SERVER: Connected
SERVER: Disconnecting
SERVER: Disconnected
SERVER: Disconnected from server
SERVER: Connecting in 10 seconds
SERVER: Connecting in 9 seconds
SERVER: Connecting in 8 seconds
SERVER: Connecting in 7 seconds
SERVER: Connecting in 6 seconds
SERVER: Connecting in 5 seconds
SERVER: Connecting in 4 seconds
SERVER: Connecting in 3 seconds
SERVER: Connecting in 2 seconds
SERVER: Connecting in 1 seconds
SERVER: Connecting in 0 seconds
SERVER: Connnecting to 127.0.0.1:134596248
SERVER: Socket connected
OUTPUT: 0 Kbps
SERVER: Success
SERVER: Connected
SERVER: Disconnecting
SERVER: Disconnected
SERVER: Disconnected from server
fg
ctrl+c
Помогите с этой проблемой или посоветуйте софт (Ось некритична) для выполнения задачи.
Заранее спасибо