Como arrancar una id de acestream en pocos minutos. Por @ACEstream_Spanish
@lobo666_1984En linux ubuntu o cualquiera que se pueda instalar Snapd
- Cosas que hay que tener en cuenta la hora de pillar una maquina para emitir.
- La ram si trabajas desde terminal con 1 gb sobrado y la cpu hay Cpu que te limitaran los peers igual con 3 ghz puedes meter 300 peers y 2.4 ghz 150 a 250 peers.
- El programa solo trabaja con 1 cpu.
- De momento personalmente no e conseguido con snap con acestream arrancar mas de una id.
-información sobre Snap https://blogubuntu.com/que-es-ubuntu-snap
Arrancar un vps Ahora hay servicios que se puede pagar por horas en ovh aruba hetzner... o mensuales con trifico limitado o ilimitado. Ovh ofrece planes de mas de 1gb de ancho de banda pago por horas de uso.
Voy a poner ejemplo en Ubuntu en ostro sistemas con dad variante seria parecido.
Una vez esta arrancado normalmente ya se puede instalar snapd.
sudo apt-get update
sudo apt-get install snapd
snap install acestreamplayer.
Ahora ya tenemos el servicio instalado y toca arrancar la parte de broadcasting.
El servicio tiene el nombre acestreamplayer.engine
con acestreamplayer.engine --help
C:\Users\lobo6\AppData\Roaming\ACEStream\engine>ace_console.exe --help
usage: acestreamengine
[--client-console | --client-wx | --client-gtk | --stream-source-node | --stream-support-node | --stream-startup-node | --control-node | --create-transport | --create-transport-multi | --create-hls-transport | --start-tracker | --get-infohash PATH | --get-file-info PATH | --get-file-info-with-id PATH | -v]
Esa son todas la posibilidades que deja hacer el servicio el tutorial es para emitir un stream .ts continuo.
La llamada usando el snap seria
acestreamplayer.engine --stream-source-node
Para sacar mas info del servicio
acestreamplayer.engine --stream-source-node --help
usage: acestreamengine [-h] --name NAME --source SOURCE
[--source-read-timeout SOURCE_READ_TIMEOUT]
[--source-reconnect-interval SOURCE_RECONNECT_INTERVAL]
--bitrate BITRATE [--state-dir STATE_DIR]
[--cache-dir CACHE_DIR] [--metadata-dir METADATA_DIR]
[--publish-dir PUBLISH_DIR]
[--pid-file-dir PID_FILE_DIR] [--mutex-name MUTEX_NAME]
[--piecesize PIECESIZE] [--chunksize CHUNKSIZE]
[--skip-internal-tracker] [--private-security]
[--host HOST] [--port PORT] [-t TRACKER]
[--metatracker METATRACKER]
[--startup-node STARTUP_NODE]
[--provider-key PROVIDER_KEY] [--sid SID] [--permanent]
[--date-start yyyy-mm-dd hh:mm]
[--date-end yyyy-mm-dd hh:mm] [--premium]
[--timeshift TIMESHIFT]
[--allow-public-trackers ALLOW_PUBLIC_TRACKERS] --title
TITLE --quality QUALITY --category CATEGORY [--tag TAG]
[--logo-url LOGO_URL] [--description DESCRIPTION]
[--deinterlacing-mode DEINTERLACING_MODE]
[--cli-encoding CLI_ENCODING]
optional arguments:
-h, --help show this help message and exit
--name NAME name of the stream
--source SOURCE source to stream (url, file or "-" to indicate stdin)
--source-read-timeout SOURCE_READ_TIMEOUT
timeout in seconds for reading from the source
--source-reconnect-interval SOURCE_RECONNECT_INTERVAL
interval in seconds between automatic reconnects when
the source disconnects
--bitrate BITRATE the average bitrate of the stream in bytes per second
--state-dir STATE_DIR
the directory for all neccessary temporary files
--cache-dir CACHE_DIR
dir to save stream cache
--metadata-dir METADATA_DIR
dir to save stream metadata files
--publish-dir PUBLISH_DIR
dir to save .acelive file
--pid-file-dir PID_FILE_DIR
dir to save pid file
--mutex-name MUTEX_NAME
create named mutex
--piecesize PIECESIZE
transport piece size in bytes
--chunksize CHUNKSIZE
transport chunk size in bytes
--skip-internal-tracker
do not use internal tracker
--private-security set the private flag in the acelive file
--host HOST the hostname or ip address of internal tracker
--port PORT the TCP+UDP listen port
-t TRACKER, --tracker TRACKER
add announce url of the tracker
--metatracker METATRACKER
add meta tracker url
--startup-node STARTUP_NODE
add startup node address (ip:port)
--provider-key PROVIDER_KEY
provider key
--sid SID content identificator for statistics
--permanent broadcast is permanent
--date-start yyyy-mm-dd hh:mm
date and time of broadcast start
--date-end yyyy-mm-dd hh:mm
date and time of broadcast end
--premium premium content
--timeshift TIMESHIFT
timeshift in seconds
--allow-public-trackers ALLOW_PUBLIC_TRACKERS
allow public trackers
--title TITLE human readable title of the stream
--quality QUALITY quality of the stream (SD or HD)
--category CATEGORY category of the stream
--tag TAG tag for the stream
--logo-url LOGO_URL url of the logo
--description DESCRIPTION
description of the stream
--deinterlacing-mode DEINTERLACING_MODE
set deinterlacing mode (allowed values: discard,blend,
mean,bob,linear,x,yadif,yadif2x,phosphor,ivtc)
--cli-encoding CLI_ENCODING
command line arguments encoding
Aqui teneis mas info:
http://wiki.acestream.org/wiki/index.php/AceStream_3.0/en
http://wiki.acestream.org/wiki/index.php/Streaming
Voy a poner un ejemplo de funcionamiento
sudo acestreamplayer.engine --port 7300 --stream-source --name "ACEstream_spanish test1" --title "Test broadcast" --source "xxxxxxxxxxxxxxxxxxxxxx" --bitrate "0" --publish-dir "/root/snap/acestreamplayer/10/.ACEStream/streaming" --cache-dir "/root/snap/acestreamplayer/10/.ACEStream/streaming" --skip-internal-tracker --tracker "udp://tracker.openbittorrent.com:80, http://www.proxmox.com:6969/announce, udp://seedbay.net:2710/announce" --quality "HD" --category "amateur" --service-access-token "xxxxxxx" --service-remote-access --log-debug "1" --max-peers "250" --max-upload-slots "250" --host "ip host"
--port <-- El que va usar para emitir a la malla
--bitrate "0" Si esta a cero detecta solo el bitrate le cuesta 1 minuto en generar el id si pones manualmente genera la id al momento.
--skip-internal-tracker Para no usar el tracker torrent usa el protocolo http y es poco eficiente y puede bloquear el stream.
tracker "udp://tracker.openbittorrent.com:80, http://www.proxmox.com:6969/announce, udp://seedbay.net:2710/announce" <-- puede que no funcionen.
https://newtrackon.com/ Hay que tener en cuenta intervalo de actualización como mas bajo mejor. Y poner varios http y udp
--category "amateur"

--service-access-token "xxxxxxx" Esto para poder monitorear el funcionamiento del servicio http://192.168.1.3:8640/app/xxxxxxx /monitor Esta es para actualizar los cantidad peers a la espera y slots disponibles. Creo que mejor es poner peers que slots calculando el consumo de ancho banda aproximado y ir subiendo. Tambien hay que tener en cuenta el consumo de cpu. Igual hay maquinas que con 150 peers va a pedales la cpu y otras con 250 o 300. hay que monitorizar el sistema. http://192.168.1.3:8640/app/xxxxxxx/update?max_peers=100&max_upload_slots=30
--service-remote-access para poder usar el token desde fuera del localhost.
--host <-- la ip del vps o ordenador.