electron download rtmp stream by ffmpeg
electron download by ffmpeg
use nginx rtmp plugin
rtmp {
server {
listen 1935;
application rtmplive {
live on;
max_connections 1024;
}
application hls {
live on;
hls on;
hls_path /usr/local/var/www/hls;
hls_fragment 1s;
}
}
}
push stream
ffmpeg -re -i [absolute dir] -vcodec copy -f flv rtmp://localhost:1935/abcs/room