-
-
Notifications
You must be signed in to change notification settings - Fork 266
Livestream App
mayeaux edited this page Nov 29, 2020
·
5 revisions
Livestreaming functionality interfaces with nginx-rtmp
$ export LIVESTREAM_APP=true
Install nginx-rtmp (have to reinstall nginx from scratch):
production (uploads1) = /usr/local/nginx/conf
in that case your binary will be at /usr/local/nginx/sbin/nginx
local (mac) = /usr/local/etc/nginx
restarting nginx: /usr/local/etc/nginx -s stop
starting nginx on OS X : sudo nginx
Streaming:
$ ffmpeg -re -i owen.mp4 -c copy -f flv rtmp://127.0.0.1:1935/live/anthony?key=1234uploadToken
Developing locally you may have to accept the local certificate to use websockets, which you can access via https://localhost:8080/