Changes

Jump to: navigation, search

Streaming/en

3,985 bytes removed, 20:31, 9 June 2020
no edit summary
== Installation Launching broadcast==
=== Installing ACE Stream on Debian/Ubuntu from repository Main terms=== *'''Step 1Source''' Add link on appropriate repository into <tt>/etc/apt/sources.list</tt> file. Repository should be selected according to operating system. - a program that accepts broadcast''Debian 6+:'' <tt><nowiki>deb http://repo.acestream.org/debian/ squeeze main</nowiki></tt> or <tt><nowiki>deb http://repo.acestream.org/debian/ sid main</nowiki></tt> Note: packages in sid repository are assembled with dependencies that correspond to official sids HTTP-repositories stream and provides playback of Debianbroadcast using ACE Stream software.If you don*'t know, which repository to choose, use squeeze. ''Ubuntu 11.10:Support node'' <tt><nowiki>deb http://repo.acestream.org/ubuntu/ oneiric main</nowiki></tt> ''Ubuntu 12.04:'' <tt><nowiki>deb http://repo.acestream.org/ubuntu/ precise main</nowiki></tt> ''Ubuntu 12- a program allowing to scale broadcast using additional server equipment and Internet-channels.10:'' <tt><nowiki>deb http://repo.acestream.org/ubuntu/ quantal main</nowiki></tt> *'''Step 2Client''' Installing public key- ACE Stream software, which is used to play broadcast. To do this you have to run the following command:
''Debian:''===Transition from versions 2.0.х to version 2.1 and higher=== <tt><nowiki>wget -O - http://repoFrom September, 10, 2013, upgraded version of the engine (2.acestream1.org/keys/acestream.public6) for Ubuntu, Debian and CentOS is available.key | apt-key add -</nowiki></tt>
''Ubuntu:'' <tt><nowiki>sudo wget -O - http://repoBefore using a new version for production, we recommend to test it on one or several broadcasts, if possible.acestream.org/keys/acestream.public.key | sudo apt-key add -</nowiki></tt>
'''Step 3'''If you face any problems, please, write to the forum (http://forum.torrentstream.org) or email support@acestream.net.
Installing the right package. For example, for engine installation you have to install acestream-engine package.Old versions are temporarily available in repository and by direct links:
''Debian'Ubuntu''': <tt>apt* http://dl.acestream.org/ubuntu/acestream-engine_2.0.8-1oneiric6_amd64.deb* http://dl.acestream.org/ubuntu/acestream-engine_2.0.8-1oneiric6_i386.deb* http://dl.acestream.org/ubuntu/acestream-engine_2.0.8-1precise6_amd64.deb* http://dl.acestream.org/ubuntu/acestream-get update<engine_2.0.8-1precise6_i386.deb* http:/tt>/dl.acestream.org/ubuntu/acestream-engine_2.0.8-1quantal6_amd64.deb <tt>apt* http://dl.acestream.org/ubuntu/acestream-get install engine_2.0.8-1quantal6_i386.deb* http://dl.acestream.org/ubuntu/acestream-engine<engine_2.0.8-1raring6_amd64.deb* http://dl.acestream.org/ubuntu/tt>acestream-engine_2.0.8-1raring6_i386.deb
''Ubuntu'Debian''': <tt>sudo apt* http://dl.acestream.org/debian/acestream-engine_2.0.8-get update<1sid5_amd64.deb* http://dl.acestream.org/debian/tt>acestream-engine_2.0.8-1sid5_i386.deb <tt>sudo apt* http://dl.acestream.org/debian/acestream-engine_2.0.8-get install 1squeeze5_amd64.deb* http://dl.acestream.org/debian/acestream-engine</tt>engine_2.0.8-1squeeze5_i386.deb
The following packages are available in the repository for Ubuntu:*'''acestream-engineCentOS 6''' - engine:*'''http://dl.acestream-mozilla-plugin''' - plug-in for browser*'''.org/centos/6/acestream-player''' engine- desktop player*'''acestream-player2.0.8_7-data''' - set of common libraries for the player and plug-in*'''acestream-full''' centos6- full package, including all of the abovex86_64.tar.gz
For Debian only <span style="color: #900;">ATTENTION!</span> In the engine (acestream-engine) is availablenearest future support for older versions will be stopped.
<span style=== Installing ACE "color: #009;">IMPORTANT!</span> All broadcasts created via new version of Ace Stream package on Ubuntu from deb-package ===You can install ACE Stream on Ubuntu without using repository(2. To do this you need to download the installation package 1 and higher) are not suppported by one client software of links below old versions (2.0.х and install it lower). If you attempt to watch a new broadcast using a package manager (for examplethe old engine, by double click on downloaded package)an error "Cannot load transport file" will appear.
Package for 32-bit versions ====Changes in launch parameters====Some parameters of the launch of Ubuntu: <tt>http://dl.torrentstreamsources and support nodes from the command line have been changed, therefore the launch with the old command line will not work.org/products/acestream-full/ubuntu/i368/latest</tt>
Package for 64-bit versions of UbuntuMain changes: * one executable file is used <tt>acestreamengine</tt>http; different launch modes (a source, support node) are set by options:** instead of <tt>acestreamengine-stream</tt> you should launch <tt>acestreamengine --stream-source</dl.torrentstream.orgtt>** instead of <tt>acestreamengine-node</productstt> you should launch <tt>acestreamengine --stream-node</acestreamtt>** instead of <tt>acestreamengine-client-fullconsole</ubuntutt> you should launch <tt>acestreamengine --client-console</amd64tt>** instead of <tt>acestreamengine-client-gtk</latesttt> you should launch <tt>acestreamengine --client-gtk</tt>* log system is changed. In old versions the engine output all debug information into STDERR and redirecting the output was required to write logs into a file. In a new version it is possible to define in options, where to write logs - into STDOUT, into STDERR, into a file or syslog. Rotation of logs by their size is supported for files. You can read description of all options in [[#acestreamengine command|acestreamengine command]]
Supported versions of Ubuntu: 11===acestreamengine command===Starting from version 2.101 Ace Stream Engine for Linux represents a single executable file <tt>acestreamengine</tt>, 12.04which works in different modes, 12depending on specified parameters.10
This intallation package Work mode is an analog set by one of the following parameters:* <tt>acestream-full-client-console</tt> package - launch engine in a client mode from repository. It includes the console (without a graphic interface)* <tt>--client-wx</tt> - launch engine, player and plugin a client mode with a graphic interface WX* <tt>--client-gtk</tt> - launch engine in for browsers.a client mode with a graphic interface GTK* <tt>--stream-source</tt> - launch a source of broadcast* <tt>--stream-node</tt> - launch a support node* <tt>--create-transport</tt> - create a transport file from existing content (VOD)* <tt>--create-transport-multi</tt> - create a multi-stream transport file* <tt>--version</tt> - show engine version
==Launching broadcast==Each work mode has their own required and not required parameters, described in appropriate sections.
===Main terms===Also all work modes have common parameters that manage the output of debug information.* <tt>--log-stdout</tt> - deduce information in STDOUT* <tt>--log-stderr</tt> - deduce information in STDERR*'''Source''' <tt>- program that accepts HTTP-stream of broadcast and provides broadcast viewing with log-file PATH</tt> - deduce information in a help of ACE Stream software.specified file* <tt>--log-max-size SIZE</tt> - maximum file size (bytes)*'''Support node''' <tt>- program-log-backup-count COUNT</tt> - how many backup logs have to be stored (backup log file is created when a limit, allowing to scale broadcastspecified by a parameter --log-max-size, is reached)* <tt>--log-file-buffer SIZE</tt> - enable buffering of output into the file (using additional buffer of specified size in bytes)* <tt>--log-syslog HOST</tt> - deduce information in syslog-server equipment and Internetat the specified address* <tt>--log-syslog-port PORT</tt> - syslog-channels.server port*'''Client''' <tt>--log-syslog-facility FACILITY</tt> - ACE Stream software, which is used to play broadcast.facility* <tt>--log-syslog-buffer SIZE</tt> - enable buffering of output into syslog (using buffer of specified size in bytes)
===Common work scheme ===
Broadcast organizing organization starts from launching the source (command <tt>acestreamengine-stream</tt>).Источник принимает на вход The source accepts HTTP-поток stream to input (в данный момент поддерживаются at this moment HTTP-потоки с инкапсуляцией streams with MPEG-TSencapsulation are supported) с орининалом трансляции и после запуска создает файл с расширением with original broadcast and creates a file with aceliveextension after the launch. Данный файл является уникальным идентификатором трансляции и используется клиентами для подключения и просмотраThis file is a unique identifier of broadcast and it is used for connection and playback by clients.
===Синтаксис команды Syntax of acestreamengine--stream-source command===Команда <tt>acestreamengine--stream-source</tt> запускает источник трансляцииcommand launches broadcast source.
''обязательные параметрыrequired parameters''*<tt>--name NAME</tt> - название трансляции broadcast name (это название используется при создании файла this name is used when creating acelive и других служебных файловand other service files)*<tt>--source SOURCE</tt> - источник source (ссылка на link to http-потокstream)*<tt>--bitrate BITRATE</tt> - средний битрейт потока в байтах в секундуaverage bitrate of stream in bytes per second
''необязательные параметрыoptional parameters''*<tt>--title TITLE</tt> - "читабельноеreadable" название транляции broadcast name (это название выводится у клиентовthis name is shown to clients). Если не заданоIf it's not specified, берется из it's taken from --name*<tt>--destdir DESTDIR</tt> - устаревшний параметрold parameter, лучше использовать it's better to use --cache-dir и and --publish-dir*<tt>--cache-dir CACHE_DIR</tt> - папка для создания служебных файлов directory for creating service files (кеш трансляции и другиеbroadcast cache and others)*<tt>--publish-dir PUBLISH_DIR</tt> - папкаdirectory, в которой будет создан in which acelive-файлfile will be created*<tt>--piecesize PIECESIZE</tt> - размер куска в байтах piece size in bytes, power of two (если не заданif it's not specified, выставляется автоматически в зависимости от битрейтаit's set automatically depending on bitrate)*<tt>--duration DURATION</tt> - размер кеша трансляции в формат ЧЧsize of broadcast cache in format HH:ММMM:СС SS (по умолчанию один часby default, one hour: 01:00:00)*<tt>--host HOST</tt> - вручную задать адрес локального трекераset address of local tracker manually*<tt>--port PORT</tt> - портport, на котором работает движокwhere the engine works*<tt>--skip-internal-tracker</tt> - отключить локальный трекерdisable local tracker*<tt>--add-authorized-peers</tt> - добавить список авторизованных пиров в add list of authorized peers to acelive файлfile*<tt>--private-source</tt> - сделать источник приватнымmake the source private*<tt>--support-node SUPPORT_NODE</tt> - добавить узел поддержки add support node (в формате in format ip:port). Этот параметр может встречаться несколько раз, если нужно добавить несколько узлов поддержкиThis parameter may appear multiple times if several support nodes have to be added.*<tt>--tracker TRACKER</tt> - добавить трекер add tracker(announce url). Этот параметр может встречаться несколько разThis parameter may appear multiple times.*<tt>--trackers TRACKERS</tt> - старый формат добавления трекеров old format for adding trackers (список announce url через запятуюlist separated by commas)*<tt>--provider-key PROVIDER_KEY</tt> - ключ провайдера provider's key (только для коммерческих трансляцийonly for commercial broadcasts)*<tt>--maxclients MAXCLIENTS</tt> - максимальное количество пировmaximum number of peers, on which data from the source are given simultaneously*<tt>--log-debug DEBUG</tt> - set the debug level (default is 0 - minimum log level)*<tt>--source-read-timeout SECONDS</tt> - timeout for reading data from the original source (in seconds). Default is 30.*<tt>--source-reconnect-interval SECONDS</tt> - interval is seconds, after which the engine will try to reconnect to the original source in case of connection lost. Default is 5.*<tt>--pid-file-dir PATH</tt> - the directory where engine's pid file is created. Default is /tmp.*<tt>--provider-key</tt> - provider key (for an affiliate program)*<tt>--sid</tt> - content identificator for statistics(for an affiliate program)*<tt>--permanent</tt> - mark the broadcast as 24/7 (it's available all the time)*<tt>--date-start YYYY-MM-DD HH:mm:ss</tt> - set the data and time of the broadcast start (for the broadcasts which runs during a limited time)*<tt>--date-end YYYY-MM-DD HH:mm:ss</tt> - set the data and time of the broadcast end(for the broadcasts which runs during a limited time)*<tt>--premium</tt> - request a "premium" status for the broadcast*<tt>--upload-limit</tt> - limit upload speed (bytes/s, на которые одновременно отдаются данные с источникаdefault is 0 - don't limit)*<tt>--showmax-piecesconnections</tt> - выводить в лог номера кусков по мере их созданияlimit total number of connections (default is 1000)*<tt>--showmax-peers</tt> -limit number of connections to other peers(default is 50)*<tt>--service-remote-access</tt> - enable remote statistics*<tt>--service-access-token</tt> - password for remote statistics access*<tt>--stats-report-interval</tt> - периодически выводить в лог список подключенных пировinterval in seconds between internal statistics update (default is 60)*<tt>--debug DEBUGstats-report-peers</tt> - установить уровень отладкиupdate information about connected peers in the internal statistics (increases CPU load)
''дополнительноadditional''*<tt>-h, --help</tt> - показать описание командshow commands' description
===Синтаксис команды Syntax of acestreamengine--stream-nodecommand===Команда <tt>acestreamengine--stream-node</tt> запускает узел поддержкиcommand launches support node.
''обязательные параметрыrequired parameters''*<tt>--url URL></tt> - ссылка на link to acelive файл трансляцииfile of broadcast
''необязательные параметрыoptional parameters''*<tt>--port PORT</tt> - порт port(по умолчанию by default: 8621)*<tt>--state-dir STATE_DIR</tt> - папка для временных файлов directory for temporary files (удаляется после остановки узла поддержкиit's deleted after support node installation)*<tt>--source-node SOURCE_NODE</tt> - адрес источника трансляции address of broadcast source (ip:port)*<tt>--support-node SUPPORT_NODE</tt> - добавить адрес другого узла поддержки add address of another support node (ip:port). Этот параметр может встречаться несколько разThis parameter may appear multiple times.*<tt>--allow-source-download</tt> - разрешить получение данных от источникаallow receiving data from the source*<tt>--allow-support-download</tt> - разрешить получение данных от других узлов поддержкиallow receiving data from other support nodes*<tt>--allow-peers-download</tt> - разрешить получение данных от обычных пировallow receiving data from ordinary peers*<tt>--max-incoming-connects MAX_INCOMING_CONNECTSconnections MAX_CONNECTIONS</tt> - маскимальное кол-во входящих соединений (от других пиров) limit number of total connections (по умолчанию default is 1000)*<tt>--max-outgoing-connects MAX_OUTGOING_CONNECTSpeers MAX_PEERS</tt> - маскимальное кол-во исходящих соединений limit number of connections to other peers (к другим пирам) (по умолчанию default is 50)*<tt>--max-upload-slots MAX_UPLOAD_SLOTS</tt> - максимальное количество пировmaximum number of peers, на которые одновременно отдаются данные с узла поддержки on which data from support node are given simultaneously (по умолчанию by default: 7)*<tt>--max-download-speed MAX_DOWNLOAD_SPEED</tt> - максимальная скорость загрузки maximum download speed (байтbyte/сs). По умолчанию By default: 0 (без ограниченийno restrictions).*<tt>--max-upload-speed MAX_UPLOAD_SPEED</tt> - максимальная скорость отдачи maximum upload speed (байсbyte/сs). По умолчанию By default: 0 (без ограниченийno restrictions).*<tt>--showlog-debug DEBUG</tt> - set the debug level (default is 0 - minimum log level)*<tt>--service-remote-piecesaccess</tt> - выводить в лог номера кусков по мере их загрузкиenable remote statistics*<tt>--showservice-peersaccess-token</tt> - периодически выводить в лог список подключенных пировpassword for remote statistics access*<tt>--stats-report-interval STATS_REPORT_INTERVAL</tt> - задать интервал в секундах для вывода в лог информации о скорости загрузки/отдачи. По умолчанию 0 interval in seconds between internal statistics update (не выводитьdefault is 60).*<tt>--debug DEBUGstats-report-peers</tt> - установить уровень отладкиupdate information about connected peers in the internal statistics (increases CPU load)
''дополнительноadditional''*<tt>-h, --help</tt> - показать описание командshow commands' description
===Встроенный трекерEmbedded tracker===Встроенный трекер - это трекер встроенный в источник трансляцииEmbedded tracker is a tracker embedded into broadcast source. Если он не отключен опцией If it's not disabled by <tt>--skip-internal-tracker</tt>option, то его адрес будет автоматически добавлен в its address will be added to acelive-файлfile automatically.
При организации трансляций с большим количеством пользователей мы рекомендуем отключать встроенный трекер и заменять его внешним трекером с хорошей производительностью When organizing broadcast with many users, we recommend to disable embedded tracker and replace it with external tracker with a good productivity (напримерfor example, [http://xbtt.sourceforge.net/tracker/ XBT Tracker]).
===Авторизованные узлыAuthorized nodes===Для тогоClient have to establish connection with at least two other nodes or an authorized node, чтобы клиент подключился к трансляции и начал просмотр, ему необходимо либо установить соединение минимум с двумя другими узлами, либо установить соединение с авторизованным узломto be connected to broadcast and start playback. Авторизованный узел - это узел, который был отмечен создателем трансляции как такойAuthorized node is a node, которому можно which was marked by broadcast's creator as a "доверятьtrustworthy". Как правило, это источник трансляции иUsually it's a broadcast source and/или узлы поддержкиor support nodes.
Последние версии ПО The latest versions of ACE Stream поддерживают использование списка авторизованных узлов в software support using list of authorized nodes in acelive-файлеfile. Для этого при создании трансляции задается опция For this <tt>--add-authorized-peers</tt>option is set when creating broadcast, после чего формируется список авторизованных узлов и добавляется в after this the list of authorized nodes is created and added to acelive-файлfile. В список авторизованных узлов попадает источник трансляции Broadcast source (если это не приватный источникif it's not private) и все указанные узлы поддержкиand all specified support nodes are in the list of authorized nodes. Клиенты, которые получили данный Clients that received this acelive-файл, используют список для определения того, является ли какой-либо узел авторизованнымfile use the list to determine whether a node is authorized.
Если в If the list of authorized nodes was not added to acelive-файл не был добавлен список авторизованных узлов, либо у клиента установлена старая версия file or an old version of ACE Stream, которая не распознает данный списокwhich doesn't understand this list, is installed, то авторизованным узлом считается узелthen authorized node is a node, IP адрес которого совпадает с адресом первого трекера в списке трекеровaddress of which matches address of the first tracker from trackers' list. Если встроенный трекер на источнике не отключенIf embedded tracker is enabled on the source, то он будет первым в списке и клиенты будут считать источник авторизованным узломit will be the first one on the list and clients will consider the source as authorized node. В случае, если встроенный трекер отключенIf embedded tracker is disabled, для поддержки старых клиентов мы рекомендуем ставить на первое место трекерto support other clients we recommend to put on the first place tracker, расположенный на том же сервере, что и источник трансляции located on the same server as broadcast source (чтобы адреса первого трекера и источника совпадалиso addresses of the first tracker and the source matched)or use at least one support node (so clients, либо использовать как минимум один узел поддержки (чтобы клиенты при старте могли установить соединение сразу с двумя пирамиwhen starting broadcast, could connect to two peers simultaneously, даже если больше никто не смотрит трансляциюeven if nobody watches broadcast).
===ПримерыExamples===Для примеров предроложим наличие локальной сети с тремя серверамиFor examples let's assume that there is a local network with three servers:*192.168.1.1 - сервер для источникаserver for the source*192.168.1.2 - сервер для узла поддержкиserver for support node*192.168.1.3 - сервер для узла поддержкиserver for support node*192.168.1.100 - сервер, который отдает оригинальный поток трансляции server that gives original broadcast's stream (HTTP MPEG-TS) по адресу at <nowiki>http://192.168.1.100/stream</nowiki> (средний битрейт потока average bitrate of stream - 300 000 байтbyte/сs)
На сервере It's assumed that on server 192.168.1.1 предполагается наличие вебthere is a web-сервера с корневой папкой server with a core directory <tt>/home/www</tt>, а также двух папокand two other directories:*<tt>/home/www/streams</tt> - для хранения for keeping acelive-файловfiles, которые будут доступны для скачивания по ссылке вида which will be available for downloading by a link like <tt><nowiki>http://192.168.1.1/streams/test.acelive</nowiki></tt>*<tt>/tmp/streams</tt> - для хранения кэша и служебных файлов трансляцийfor keeping cache and service files of broadcast
====Источник с встроенным трекеромSource with embedded tracker====Это наиболее простой способ запуск трансляции, не требующий запуска узлов поддержки и установки дополнительных трекеровThis is the easiest way to launch broadcast that does not require launching support nodes and installing additional trackers. Данный способ подходит для трансляций с небольшим количество пользователейThis method is suitable for broadcasts with a small number of users.
На сервере We launch the source on server 192.168.1.1 запускаем источник: <tt>acestreamengine--stream -source \
--name "test" \
--title "Тестовая трансляцияTest broadcast" \
--source "<nowiki>http://192.168.1.100/stream</nowiki>" \
--bitrate 300000 \
--publish-dir "/home/www/streams" \
--cache-dir "/tmp/streams" \
--add-authorized-peers \ > /tmp/test-source.log 2>&1</tt>
Последняя строка используется для записи логов в файл The last line is used to write logs into file /tmp/test-source.log. By default <tt>acestreamengine--stream-source</tt> выводит всю отладочную информацию на консоль в STDERRoutputs all debug information in the STDOUT.
Опция <tt>--add-authorized-peers</tt> добавляет в option adds the list of authorized nodes to acelive-файл список авторизованных узлов file (в данном случае это источникin this case, it's the source: 192.168.1.1).
После запуска трансляции в папке After broadcast's launch a file test.acelive will be created in directory /home/www/streams будет создан файл test.acelive, в папке in directory <tt>/tmp/streams</tt> будут созданы такие файлыsuch files will be created:*<tt>test</tt> - кэш трансляцииbroadcast cache. Размер этого файла примерно равен длительность_потока_в_секундах This file's size is approximately equal to stream_duration_in_seconds (опция <tt>--duration</tt>option, по умолчанию by default: 1 часhour) * битрейт байтbitrate byte*<tt>test.restart</tt> - здесь хранится информация для корректного перезапуска трансляцииinformation for correct restart of broadcast is kept here*<tt>test.sauth</tt> - ключ для цифровой подписи трансляцииkey for a broadcast's digital signature
Для просмотра трансляции клиенты могут скачать файл трансляции по ссылке To watch broadcasts clients can download broadcast file at <tt><nowiki>http://192.168.1.1/streams/test.acelive</nowiki></tt> и запустить его в плеере and start it in ACE Stream, либо использовать другие способы player or use other ways ([[Способы просмотра трансляцииWays to watch broadcasts]]).
====Источник с внешним трекеромSource with external tracker====Если трансляция предполагает большое количество пользователейIf broadcast involves a large number of users, то желательно использовать внешний трекер и отключить встроенный it's better to use external tracker and disable embedded one (для снижения нагрузки на источникto reduce burden on the source).
В качестве внешнего трекера мы советуем использовать We recommed to use [http://xbtt.sourceforge.net/tracker/ XBT Tracker]as external tracker.
В данном примере предполагаем, что In this example we assume that XBT Tracker установлен и запущен на сервере is installed and launched on server 192.168.1.1.Запуск трансляции теперь будет выглядеть таким образомNow broadcast's launch will look like: <tt>acestreamengine--stream -source \
--name "test" \
--title "Тестовая трансляцияTest broadcast" \
--source "<nowiki>http://192.168.1.100/stream</nowiki>" \
--bitrate 300000 \
--add-authorized-peers \
--skip-internal-tracker \
--tracker "udp://192.168.1.1:2710/announce" \</tt> <tt> --skip-internal-tracker</tmp/testtt> option disconnects embedded tracker, <tt>--source.log 2>&1tracker</tt>option connects external tracker.
Опция <tt>--skip-internal-tracker</tt> отключает встроенный трекер====Source with two support nodes====If there is not enough upstream bandwidth for normal work of broadcast on the source, опция <tt>--tracker</tt> подключает внешний трекерsupport nodes can be used. Support node is often a node that receives data from the source and gives to clients (though support node can also receive data from other support nodes and even clients, depending on its settings). It makes sense to install support node on a separate server with a good width of output channel.
====Источник с двумя узлами поддержки====To make a scheme with support nodes work with maximum efficiency, addresses of these nodes must be given to the sourceВ случае, если на источнике не хватает пропускной способности исходящего канала для нормальной работы трансляции, можно использовать узлы поддержки. Чаще всего узел поддержки представляет собой узел, который принимает данные от источника и отдает клиентам (хотя узел поддержки также может принимать данные от других узлов поддержки и даже от клиентов, в зависимости от его настроек). Узел поддержки имеет смысл ставить на отдельном сервере с хорошей шириной исходящего канала.using <tt>--support-node</tt> option:
Для максимально эффективной работы схемы с узлами поддержки источнику необходимо сообщить адреса этих узлов с помощью опции <tt>--support-node</tt>: <tt>acestreamengine--stream -source \
--name "test" \
--title "Тестовая трансляцияTest broadcast" \
--source "<nowiki>http://192.168.1.100/stream</nowiki>" \
--bitrate 300000 \
--tracker "udp://192.168.1.1:2710/announce" \
--support-node "192.168.1.2:8621" \
--support-node "192.168.1.3:8621" \ > /tmp/test-source.log 2>&1</tt>
Запускаем узлы поддержки на серверах Launch support nodes on servers 192.168.1.2 и and 192.168.1.3 (команды для запуска одинаковыеcommands are the same): <tt>acestreamengine--stream-node \
--url "<nowiki>http://192.168.1.1/streams/test.acelive</nowiki>" \
--state-dir "/tmp" \
--source-node "192.168.1.1:7764" \
--allow-source-download \ > /tmp/test-node.log 2>&1</tt>
Опция Option <tt>--source-node</tt> задает адрес источникаsets source address.
Опция Option <tt>--allow-source-download</tt> разрешает узлу поддержки скачивать данные с источника allows support node to download data from the source (скачивание с других узлов поддержки и клиентов в данном случае запрещеноdownloading from other support nodes and clients in this case is forbidden).
Если необходимо разрешить узлам поддержки скачивать данные с других узлов поддержкиTo allow support nodes to download data from other suppport nodes, то следует задать список других узлов опцией you should set a list of other nodes using <tt>--support-node</tt> и разрешить скачивание опцией option and allow downloading using <tt>--allow-support-download</tt>option.
На сервере On server 192.168.1.2 это будет выглядеть такit will look like: <tt>acestreamengine--stream-node \
--url "<nowiki>http://192.168.1.1/streams/test.acelive</nowiki>" \
--state-dir "/tmp" \
--allow-source-download \
--support-node "192.168.1.3:8621" \
--allow-support-download \ > /tmp/test-node.log 2>&1</tt>
На сервере On server 192.168.1.3: <tt>acestreamengine--stream-node \
--url "<nowiki>http://192.168.1.1/streams/test.acelive</nowiki>" \
--state-dir "/tmp" \
--allow-source-download \
--support-node "192.168.1.2:8621" \
--allow-support-download \ > /tmp/test-node.log 2>&1</tt>
====Приватный источник с двумя узлами поддержкиPrivate source with two support nodes====Иногда может возникнуть необходимость запретить клиентам напрямую обращаться к источнику трансляцииSometimes it may be necessary to prevent clients from direct access to broadcast source. НапримерFor example, источник может быть физически расположен на сервере в защищенной зоне без доступа из внешнего мираthe source may be located on server in protected area without access from the outer world. В этом случае трансляцию можно организовать по следующей схемеIn this case broadcast can be organized by the following scheme:*источник делается приватным the source is made private (получать от него данные смогут только узлы поддержкиonly support nodes, указанные явным образомspecified explicitly, can receive data from it)*узлы поддержки получают данные от источника и отдают клиентамsupport nodes receive data from the source and give to clients*клиенты получают данные от узлов поддержкиclients receive data from support nodes
Для того, чтобы сделать источник приватнымTo make the source private, следует указать опцию option <tt>--private-source</tt>must be specified: <tt>acestreamengine--stream -source \
--name "test" \
--title "Тестовая трансляцияTest broadcast" \
--source "<nowiki>http://192.168.1.100/stream</nowiki>" \
--bitrate 300000 \
--support-node "192.168.1.2:8621" \
--support-node "192.168.1.3:8621" \
--private-source \ > /tmp/test-source.log 2>&1</tt> Следует обратить внимание на то, что в данной конфигурации адрес трекера изменен на <tt>udp://192.168.1.2:2710/announce</tt>. Это сделано для поддержки старых версий клиентов, которые не обрабатывают список авторизованных пиров (подробнее здесь [[#Авторизованные узлы|Авторизованные узлы]]).
Узлы поддержки на серверах Notice that in this configuration tracker's address is changed to <tt>udp://192.168.1.2:2710/announce</tt>. It was made to support old versions of clients, which do not process a list of authorized peers (more details here [[#Authorized peers|Authorized peers]]).Launch support nodes on servers 192.168.1.2 и and 192.168.1.3 запускаем как обычноas usual: <tt>acestreamengine--stream-node \
--url "<nowiki>http://192.168.1.1/streams/test.acelive</nowiki>" \
--state-dir "/tmp" \
--source-node "192.168.1.1:7764" \
--allow-source-download \</tt> ====Recent scripts and configuration examples==== > Python-based launch scripts with configuration examples and some brief explanation available via https:/tmp/test-nodegithub.log 2>&1<com/acestream/tt>streaming-utils

Navigation menu