Hello, @masteryoda I want to live stream on Vimeo. I follow your step on my Debian server but i can’t get success. Can you please told me when is mistake from my side?
This is my “nano /etc/nginx/nginx.conf” is this okay or i have to change anything?
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
#Set this to "record off" if you don't want to save a copy of your broadcasts
record all;
# The directory in which the recordings will be stored.
record_path /var/www/html/recordings;
record_unique on;
#Facebook
push rtmp://127.0.0.1:1936/rtmp/INSERT-YOUR-STATIC-STREAM-KEY;
#Periscope -- Goto pscp.tv/account/producer & create a stream. select the region of your choice and copy & paste it at the en$
exec /usr/bin/ffmpeg -i rtmp://127.0.0.1/live/$name -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac $
#Youtube Stream - YT doesnt assign a permanent stream key, BUT if you reuse an earlier stream, the key doesnt change. EDIT: a$
push rtmp://a.rtmp.youtube.com/live2/YOUTUBE-stream-key;
}
}
}
nano /etc/default/stunnel4
/etc/default/stunnel
September 2003
FILES="/etc/stunnel/*.conf"
OPTIONS=""
Change to one to enable ppp restart scripts
PPP_RESTART=0
Change to enable the setting of limits on the stunnel instances
For example, to set a large limit on file descriptors (to enable
more simultaneous client connections), set RLIMITS="-n 4096"
More than one resource limit may be modified at the same time,
e.g. RLIMITS="-n 4096 -d unlimited"
RLIMITS=""
nano /etc/stunnel/stunnel.conf
pid = /var/run/stunnel4/stunnel.pid
output = /var/log/stunnel4/stunnel.log
setuid = stunnel4
setgid = stunnel4
socket = r:TCP_NODELAY=1
socket = l:TCP_NODELAY=1
debug = 4
[fb-live]
client = yes
accept = 1936
connect = rtmp-global.cloud.vimeo.com
verifyChain = no
nano ffmpeg
#!/bin/bash
COMMAND="/usr/bin/ffmpeg"
while test $# -gt 0
do
T="1"
if [ "{1:0:32}" == “rtmp://a.rtmp.youtube.com/live2/” ]; then
# T will contain the rtmp key from jitsi meet page. Make sure you use the correct IP Address OF the rtmp server you setup earlier
COMMAND="COMMAND rtmp://myip:1935/live/{T:32}"
else
COMMAND="$COMMAND $T"
fi
shift
done
echo “RUNNING FFMPEG: «$COMMAND».”
exec COMMAND
PROCESS_FFMPEG=!
echo “Esperando finalización del proceso: ${PROCESO_FFMPEG}.”
wait $PROCESS_FFMPEG
systemctl edit --full jibri
[Unit]
Description=Jibri Process
Requires=jibri-icewm.service jibri-xorg.service
After=network.target
[Service]
User=jibri
Group=jibri
PermissionsStartOnly=true
ExecStart=/opt/jitsi/jibri/launch.sh
ExecStop=/opt/jitsi/jibri/graceful_shutdown.sh
ExecReload=/opt/jitsi/jibri/reload.sh
Environment=“PATH=/opt/util:/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
Restart=always
RestartPreventExitStatus=255
Type=simple
[Install]
WantedBy=multi-user.target
I have 3 java files: adoptopenjdk-8-hotspot-amd64 / java-1.11.0-openjdk-amd64 / java-11-openjdk-amd64