| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |

Channel:
Subscribers:
260
Published on ● Video Link: https://www.youtube.com/watch?v=uYYA4aNegGM



League of Legends
Game:
Duration: 1:52:47
2 views
0


***************************************************
ffmpeg
***************************************************
Sudo apt-get install ffmpeg

Note: The apt-add-repository command may not be installed in some cases. To install it run sudo apt-get install software-properties-common.

We gave the world permission to execute ffmpeg with:

sudo chmod -R 755 /usr/bin/ffmpeg

**********************************************
NGINX
**********************************************
Log into your box, and make sure you have the necessary tools to build nginx using the following command:

$ sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev

*********
*********

Ahora sigue Compilarlos, es sencillo:

From your home directory, download the nginx source code:

$ wget http://nginx.org/download/nginx-1.13.1.tar.gz
****
****
depues agregamos el modulo RTMP

$ wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
****
****
UNZIP y UNPACKEARLOS

$ tar -zxvf nginx-1.13.1.tar.gz
$ unzip master.zip
$ cd nginx-1.13.1
****
****
Ahora Construimos nuestro NGINX

$ ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master
$ make
$ sudo make install
****
****

Ya que esta intalado, por default en /usr/local/nginx , asi que para iniciarlo ejecutamos el siguietne comando


$ sudo /usr/local/nginx/sbin/nginx
para detenerlo
$ sudo /usr/local/nginx/sbin/nginx -s stop

****
****
Ahora abrimos nuestro archivo de Configuracion

sudo nano /usr/local/nginx/conf/nginx.conf

hasta la parte de al final
***
***
archivo config
***
***
rtmp {
server {
listen 1935;
chunk_size 4096;

application live {
live on;
record off;
exec /usr/bin/ffmpeg -i rtmp://localhost/live -c copy -f flv rtmp://localhost/recoded;
}

application recoded {
live on;
record off;

push rtmp://live-api.facebook.com:80/rtmp/YOURRTMPKEYHERE;
push rtmp://us-central.restream.io/live/YOURRTMPKEYHERE;
}
}
}
************
Fin de Nginx
************
*****************************************************
*****************************************************
STUNNEL SSL TUNNEL
*****************************************************
*****************************************************
Instalar:
sudo apt-get install stunnel4

REPALDAR POR SI ACASO:
sudo cp /usr/share/doc/stunnel4/examples/stunnel.conf-sample /etc/stunnel/stunnel.conf
****
****
EDITAR

sudo nano /etc/default/stunnel4

Poner ENABLE=1
****
****
Agregar archivo de Configuracion
(cuidado con presionar las flechas en el VI)

sudo nano /etc/stunnel/stunnel.conf
sudo vi /etc/stunnel/stunnel.conf

para el VI EDITOR,la tecla "I" es para insertar, ya que termines, presiona ESCAPE, y luego SHIFT "Ñ" (eñe) y escribe "X" y luego da enter
**************************************


***********************************

Config Recomendada


setuid = stunnel4
setgid = stunnel4
pid= /tmp/stunnel.pid
output = /var/log/stunnel4/stunnel.log
;pid = /var/run/stunnel.pid
;output = /var/log/stunnel.log

[fb-live]
client = yes
accept = 127.0.0.1:3128
connect = live-api-s.facebook.com:443
cert = /home/propietario/stunnel.pem

*********************************

Config Recomendada


setuid = stunnel4
setgid = stunnel4
pid= /tmp/stunnel.pid
output = /var/log/stunnel4/stunnel.log
;pid = /var/run/stunnel.pid
;output = /var/log/stunnel.log

[fb-live]
client = yes
accept = 127.0.0.1:3128
connect = live-api-s.facebook.com:443
cert = /home/propietario/stunnel.pem

************************************

Generaremos el Certificado PEM con el OpenSSL con el siguiente comando:

sudo openssl req -new -out stunnel.pem -keyout stunnel.pem -nodes -x509 -days 1095

El PEM se va a generar en HOME con diagonal y el nombre de tu usuario que tengas (home/nombredetuusuario/stunnel.pem)


**********************************
Reiniciar STUNEL


sudo /etc/init.d/stunnel4 stop
sudo /etc/init.d/stunnel4 start
sudo /etc/init.d/stunnel4 restart

*****************************
Cambiar esto por esto en el NGINX

push rtmp://127.0.0.1:3128/rtmp/[your_facebook_stream_key];
push rtmp://127.0.0.1:3128/rtmp/[your_facebook_stream_key];

******************************


LISTO




Other Videos By Godin Gamer


2019-08-14| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-13| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-12| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-11|Street Fighter V 10 DAYS FREE PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-11| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-08-11| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-11| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-10| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-10| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-10|Street Fighter V 10 DAYS FREE PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-10| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-08-07| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-08-05| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-08-04| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-08-04| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-04|Street Fighter V 10 DAYS FREE PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-08-03| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-08-02| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-07-29| Overwatch Latino PC Corei3 6100 GTX1050 16gbRAM Win 10 1809|
2019-07-28| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |
2019-07-28| DIRECTO | League of Legends LAN| SNAPCAM | a Manquear |



Other Statistics

League of Legends Statistics For Godin Gamer

Godin Gamer presently has 4,643 views for League of Legends across 1,030 videos, accounting for over 61 days of watchable video on his channel. This is 21.40% of the total watchable video for League of Legends on Godin Gamer's YouTube channel.