free and independent multistreaming

en: this method is absurdly simple and is limited only by the user's upload speed. the method does not rely on OBS Studio and can be used with any live streaming software; it can even be used on remote computers, such as machines dedicated solely to retransmission on the same LAN or even online VPSs.

br: este método é absurdamente simples e é limitado apenas pelo upload do usuário. o método não depende do uso do OBS Studio, podendo ser utilizado com qualquer programa de transmissão ao vivo. e pode, inclusive, ser usado em computadores remotos,  como computadores dedicados apenas à retransmissão na mesma lan ou mesmo em VPS online.

en: the machine responsible for performing the multistream needs to have only FFmpeg and Java JRE installed. and both must be accessible via the system PATH. however, installation methods will not be covered here. if correctly installed, the following commands will display a graceful message instead of an error:

br: a máquina responsável por realizar o multistream precisa ter instalado apenas os programas ffmpeg e java jre. e ambos precisam estar acessíveis pelo PATH do sistema. os métodos, porém, de instalação destes programas não serão cobertos aqui. e se corretamente instalados os seguintes comandos terão uma mensagem graciosa ao invés de uma mensagem erro:

    ffmpeg -hide_banner -version ;

    java --version ;

en: if everything is correct, we're practically ready. now, you just need to find the RTMP ingest server address (it works with SRT too, though I don't intend to explain that protocol) and your stream key. beware: your stream key is personal and must not be shown to third parties.

br: se tudo correto, agora basta descobrir o endereço do servidor de ingestão rtmp e sua chave de transmissão. atenção: a chave de transmissão é pessoal e não deve ser nem mesmo exibida para terceiros. o método também funciona com o protocolo srt, mas ele não será explicado aqui.

en: in the case of Brazil, the servers are typically these:

br: no caso do Brasil, os servidores normalmente são estes:

    [youtube-server]

    rtmp://a.rtmp.youtube.com/live2/$KEY

    [twitch-server]

    rtmp://sae10.contribute.live-video.net/app/$KEY

    [kick-server]

    rtmps://fa723fc1b171.global-contribute.live-video.net:443/app/$KEY


en: the $KEY field must be replaced by your transmission key - which is personal. and that's it. the hardest part is already over. all that's left is to download Red5 Server, configure OBS Studio, and create a command line using FFmpeg for each multistreaming platform.

br: o campo $KEY presente no final dos endereços acima deve ser substituído pela sua chave de transmissão. e pronto. a parte mais difícil já foi. falta só baixar o red5server, configurar o obs studio,  e criar uma linha de comando usando ffmpeg para cada plataforma de multitransmissão.

    Red5 Server core - OpenSource


en: download, unzip, and run red5.sh on Linux, or red5.bat on Windows, before starting your live stream in OBS. the Red5 RTMP ingestion server does not require any additional configuration. you just need to run the script from the program's original folder, without any additional steps.

br: baixe, descompacte e rode o red5.sh no linux ou o red5.bat no windows, sempre antes de iniciar a transmissão pelo obs studio. o servidor red5 de ingestão rtmp não depende de qualquer configuração extra. você só precisa executar o script partindo da pasta original do programa.

en: port 1935 might be blocked by your firewall or security suite, but instructions for opening it won't be provided here. there is no port forwarding or anything more advanced involved. just a simple firewall rule to allow the traffic when the port is blocked, and that's it.

br: talvez a porta 1935 esteja bloqueada no seu firewall ou suíte de segurança. mas este tipo de liberação não será apresentada aqui. não há redirecionamento de portas envolvido ou nada mais avançado. faça apenas simples liberação no seu firewall caso a porta esteja bloqueada por padrão, e só.

en: configure OBS Studio as listed below. if the Red5 server is already running without any error messages, you can start streaming. there is no broadcast to the sites yet, but everything will be fully operational soon.

br: configure o OBS Studio como listado abaixo, e caso o servidor red5 já esteja em execução, sem qualquer mensagem erro, você pode começar a transmissão. ainda não há re-transmissão alguma para os sites. apenas entre ambos os processos. mas tudo necessário já está funcionando até aqui.

    OBS, Settings, Stream

        service .............: custom...
        //  destination  //
        server ..............: rtmp://localhost:1935/live
        stream key ..........: now

    OBS, Configurações, Transmissão

        serviço .............: personalizado...
        //     destino    //
        servidor ............: rtmp://localhost:1935/live
        chave de transmissão : now

en: finally, for each site, you will construct a separate ffmpeg command. on Windows, it is advisable to save it in a .cmd file starting with "@echo OFF" (without the quotation marks) to prevent the commands and user keys from being displayed while the script runs.

br: finalmente, para cada site você construirá um comando separado para o ffmpeg. no windows, convém salvá-lo em um arquivo .cmd iniciado com "@echo OFF" sem as aspas para evitar que as chaves de transmissão sejam exibidas durante a execução do script.

    ffmpeg -re -i "rtmp://localhost:1935/live/now" -c copy -f flv "rtmp://$SERVER/$KEY"

    ffmpeg -re -i "rtmp://localhost:1935/live/now" -c copy -f flv "rtmps://$SERVER/$KEY"

en: note that some servers, such as Kick and Facebook, will use "rtmps://$SERVER/$KEY" with an 's' after the initial rtmp term. whereas others, like YouTube and Twitch, do not.

br: perceba que alguns servidores como kick e facebook usarão "rtmps://$SERVER/$KEY", com S após o rtmp incial. enquanto, outros servidores, como youtube e twitch não.

en: create as many FFmpeg commands as you like, and as many as your internet upload speed can handle. your final constraint is that you need to use the lowest maximum bitrate supported by all platforms simultaneously. in other words, if you want to multistream to YouTube, Kick, and Twitch using a standard account, you will have to use a maximum of 6,000 kbps across all platforms simultaneously, as this is Twitch's limit.

if you close the running ffmpeg window, the stream to that specific site will be closed. if you stop the broadcast in OBS, all streams will stop as well.

br: crie quantos comandos do ffmpeg quiser e tantos quanto o upload da sua internet suportar. sua última restrição será que você precisa usar o menor dos bitrates da lista dos máximos bitrates suportados por todas as plataformas escolhidas ao mesmo tempo. ou seja, caso queira fazer multistream para youtube, kick e twitch usando uma conta padrão, sem parceria, então, terá que usar no máximo 6.000 kbps para todas as plataformas simultaneamente, pois este é o limite imposto pela twitch para contas sem afiliação ou parceria.

caso você feche uma janela do ffmpeg em execução, a stream do site em execução será fechada. caso pare a transmissão pelo OBS, todas as streams também pararão.

alternatives: Aitum Multistream plugin, Multiple RTMP outputs plugin by sorayuki, NGINX-RTMP Server,  MediaMTX Server, ReStream IO service.

en: apps and settings were tested on a 2012 Intel i5-3230M laptop running OBS Studio, DuckStation, RetroArch, and Snes9x. they are lightweight enough for this type of hardware.

br: os programas e as configurações foram testados num laptop Intel i5 3230M de 2012, rodando OBS-Studio, DuckStation, RetroArch e Snes9x. a recomendação é leve o suficiente para este tipo de hardware.

done! =]

Comments

Popular posts from this blog

OBS Studio - really basic tips for x264 encoder

OBS Studio - dica rápida de performance e qualidade