diff --git a/index.html b/index.html index 5a0edd7..494104e 100644 --- a/index.html +++ b/index.html @@ -70,7 +70,7 @@ make make install -
- application big { - live on; +application big { + live on; + exec /usr/bin/ffmpeg -re -i rtmp://localhost:1935/$app/$name -vcodec flv -acodec copy -s 32x32 -f flv rtmp://localhost:1935/small/${name}; +} - # On every pusblished stream run this command (ffmpeg) - # with substitutions: $app/${app}, $name/${name} for application & stream name. - # - # This ffmpeg call receives stream from this application & - # reduces the resolution down to 32x32. The stream is the published to - # 'small' application (see below) under the same name. - # - # ffmpeg can do anything with the stream like video/audio - # transcoding, resizing, altering container/codec params etc - # - # Multiple exec lines can be specified. - - exec /usr/bin/ffmpeg -re -i rtmp://localhost:1935/$app/$name -vcodec flv -acodec copy -s 32x32 -f flv rtmp://localhost:1935/small/${name}; - } - - application small { - live on; - # Video with reduced resolution comes here from ffmpeg - } +application small { + live on; + # Video with reduced resolution comes here from ffmpeg +}
- application mypush { - live on; +application mypush { + live on; - # Every stream published here - # is automatically pushed to - # these two machines - push rtmp1.example.com; - push rtmp2.example.com:1934; - } + # Every stream published here + # is automatically pushed to + # these two machines + push rtmp1.example.com; + push rtmp2.example.com:1934; +}
- application mypull { - live on; +application mypull { + live on; - # Pull all streams from remote machine - # and play locally - pull rtmp://rtmp3.example.com pageUrl=www.example.com/index.html; - } + # Pull all streams from remote machine + # and play locally + pull rtmp://rtmp3.example.com pageUrl=www.example.com/index.html; +}
- application vod { - play /var/flvs; - } +application vod { + play /var/flvs; +}
- application hls { - hls on; - hls_path /tmp/app; - hls_fragment 5s; - } +application hls { + hls on; + hls_path /tmp/app; + hls_fragment 5s; }-