-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Examples
ispyisail edited this page Apr 20, 2017
·
13 revisions
rtmp {
server {
listen 1935;
application vod {
play /var/flvs;
}
}
}
rtmp {
server {
listen 1935;
application live {
live on;
}
}
}
rtmp {
server{
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
push rtmp://live.twitch.tv/app/[streamkeyfromtwitch];
push rtmp://a.rtmp.youtube.com/live2/[streamkeyfromyoutube];
}
}
}
rtmp {
server {
listen 1935;
application tv {
live on;
hls on;
hls_path /tmp/tv2;
hls_fragment 15s;
pull rtmp://tv2.example.com:443/root/new name=tv2;
}
}
}
http {
server {
listen 80;
location /tv2 {
alias /tmp/tv2;
}
}
}
ffmpeg -f x11grab -follow_mouse centered -r 25 -s cif -i :0.0 -f flv rtmp://localhost/myapp/screen