Форум обсуждения систем  

Вернуться   Форум обсуждения систем "Умный дом", проектов Ардуино, OpenWRT и других DIY устройств > Форум умного дома > Сделай сам > CyberWrt

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.05.2015, 12:01   #1
FiReDoGGi
Member
 
Регистрация: 12.05.2015
Адрес: Москва
Сообщений: 31
Вес репутации: 0
FiReDoGGi is an unknown quantity at this point
Arrow Аудио мониторинг by DoGGi

Задача - удаленное прослушивание звука с веб камеры (В моем случае С270)

Для решения данной задачи нам потребуется следующее:
1.
Прошивка OpenWRT с поддержкой
Sound Support -->
[*]kmod-sound-core[*]kmod-usb-audio
2.
Код:
opkg update
opkg install shadow-groupadd shadow-useradd icecast darkice
3.
Код:
nano /etc/icecast.xml
Код:
<icecast>
	<location>OpenWRT</location>
	<admin>Admin_Name</admin>

	<limits>
		<clients>10</clients>
		<sources>2</sources>
		<threadpool>5</threadpool>
		<queue-size>524288</queue-size>
		<client-timeout>15</client-timeout>
		<header-timeout>15</header-timeout>
		<source-timeout>15</source-timeout>
		<burst-on-connect>1</burst-on-connect>
		<burst-size>65535</burst-size>
	</limits>

	<authentication>
		<source-password>IcePass</source-password>
		<relay-password>IcePass</relay-password>
		<admin-user>Admin</admin-user>
		<admin-password>Admin_Pass</admin-password>
	</authentication>

	<hostname>192.168.x.x</hostname>
	<listen-socket>
			<port>xxxx</port>
	</listen-socket>
	<fileserve>1</fileserve>

	<paths>
		<basedir>/usr/share/icecast</basedir>
		<logdir>/tmp/</logdir>
		<webroot>/usr/share/icecast/web</webroot>
		<adminroot>/usr/share/icecast/admin</adminroot>
		<alias source="/" destination="/status.xsl"/>
	</paths>

	<logging>
		<accesslog>access.log</accesslog>
	  	<loglevel>4</loglevel>
	  	<logsize>10000</logsize>
	</logging>

	<security>
		<chroot>0</chroot>
			<changeowner>
				<user>nobody</user>
				<group>nogroup</group>
			</changeowner>
	</security>
</icecast>
4.
Код:
nano /etc/darkice.cfg
Код:
[general]
duration		= 0		# Duration of encoding, in seconds. 0 means forever
bufferSecs		= 1		# Size of internal slip buffer, in seconds
reconnect		= yes		# Reconnect to the server(s) if disconnected
realtime		= no

[input]
device		= /dev/dsp		# OSS DSP soundcard device for the audio input
sampleRate	= 8000			# Sample rate in Hz(11025, 22050 or 44100)
bitsPerSample	= 16			# Bits per sample (8/16)
channel		= 1			# Channels. 1 = mono, 2 = stereo

[icecast2-0]
bitrateMode	= cbr		# Average bit rate (cbr/vbr/abr)
format		= mp3		# Format of the stream: ogg vorbis
bitrate		= 32		# Bitrate of the stream sent to the server

server		= 192.168.x.x			# Host name of the server
port		= xxxx				# Port of the IceCast2 server, usually 8000
password	= IcePass			# Source password to the IceCast2 server
mountPoint	= Audio				# Mount point of this stream on the IceCast2 server
name		= Audio_Stream			# Name of the stream
description	= Audio_Stream			# Description of the stream
url		= http://192.168.x.x:xxxx/Audio	# URL related to the stream
genre		= Genre				# Genre of the stream
public		= no				# Public this stream?
5.
Код:
icecast -b -c /etc/icecast.xml
darkice &
6.
http://192.168.1.1:8090 Админка
http://192.168.1.1:8090/Stream.mp3 Наша аудио трансляция

------------------
Дабы проще было - сами конфиги:
Вложения
Тип файла: zip Config.zip (1.3 Кб, 132 просмотров)

Последний раз редактировалось FiReDoGGi; 29.05.2015 в 12:24.
FiReDoGGi вне форума   Ответить с цитированием
Старый 29.05.2015, 12:02   #2
FiReDoGGi
Member
 
Регистрация: 12.05.2015
Адрес: Москва
Сообщений: 31
Вес репутации: 0
FiReDoGGi is an unknown quantity at this point
По умолчанию Re: Аудио мониторинг by DoGGi

Резерв
FiReDoGGi вне форума   Ответить с цитированием
Старый 29.05.2015, 12:04   #3
FiReDoGGi
Member
 
Регистрация: 12.05.2015
Адрес: Москва
Сообщений: 31
Вес репутации: 0
FiReDoGGi is an unknown quantity at this point
По умолчанию Re: Аудио мониторинг by DoGGi

Друзья, кто может собрать ICES0(0.4) для OpenWRT ?
Тот что ICES2 (2.0.1) стримит только ogg. И более того не работает.
ICES0 должен стрисить mp3.
FiReDoGGi вне форума   Ответить с цитированием
Ответ


Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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


Текущее время: 20:35. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Яндекс.Метрика