{"action":"created","issue":{"url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/668","labels_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/668/labels{/name}","comments_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/668/comments","events_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/668/events","html_url":"https://github.com/arut/nginx-rtmp-module/issues/668","id":101145363,"number":668,"title":"Is there any option for HLS re-streaming on Nginx-rtmp module like rtmp edge server ?","user":{"login":"Linuxbot","id":8983278,"avatar_url":"https://avatars.githubusercontent.com/u/8983278?v=3","gravatar_id":"","url":"https://api.github.com/users/Linuxbot","html_url":"https://github.com/Linuxbot","followers_url":"https://api.github.com/users/Linuxbot/followers","following_url":"https://api.github.com/users/Linuxbot/following{/other_user}","gists_url":"https://api.github.com/users/Linuxbot/gists{/gist_id}","starred_url":"https://api.github.com/users/Linuxbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linuxbot/subscriptions","organizations_url":"https://api.github.com/users/Linuxbot/orgs","repos_url":"https://api.github.com/users/Linuxbot/repos","events_url":"https://api.github.com/users/Linuxbot/events{/privacy}","received_events_url":"https://api.github.com/users/Linuxbot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-15T05:52:41Z","updated_at":"2015-08-15T17:01:36Z","closed_at":null,"body":"Anybody guide me to set up of HLS re-streaming on Nginx-rtmp server.  (like rtmp edge stream)"},"comment":{"url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/comments/131400781","html_url":"https://github.com/arut/nginx-rtmp-module/issues/668#issuecomment-131400781","issue_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/668","id":131400781,"user":{"login":"benwilber","id":165319,"avatar_url":"https://avatars.githubusercontent.com/u/165319?v=3","gravatar_id":"","url":"https://api.github.com/users/benwilber","html_url":"https://github.com/benwilber","followers_url":"https://api.github.com/users/benwilber/followers","following_url":"https://api.github.com/users/benwilber/following{/other_user}","gists_url":"https://api.github.com/users/benwilber/gists{/gist_id}","starred_url":"https://api.github.com/users/benwilber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwilber/subscriptions","organizations_url":"https://api.github.com/users/benwilber/orgs","repos_url":"https://api.github.com/users/benwilber/repos","events_url":"https://api.github.com/users/benwilber/events{/privacy}","received_events_url":"https://api.github.com/users/benwilber/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T17:01:36Z","updated_at":"2015-08-15T17:01:36Z","body":"If you want to produce HLS streams in addition to RTMP then you just need to do something like this:\r\n\r\n```\r\nserver {\r\n    listen 1935;\r\n\r\n    application app {\r\n      live on;\r\n      push rtmp://localhost:1935/hls-live;\r\n  }\r\n\r\n  application hls-live {\r\n    live on;\r\n    hls on;\r\n    hls_path /var/www/html/live;\r\n  }\r\n}\r\n```\r\n\r\nThe `hls-live` application could be on any number of \"edge\" servers.  So you could do:\r\n\r\n```\r\npush rtmp://hls-edge1.example.com:1935/hls-live;\r\npush rtmp://hls-edge2.example.com:1935/hls-live;\r\npush rtmp://hls-edge3.example.com:1935/hls-live;\r\n```"}}