{"action":"created","issue":{"url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/issues/155","repository_url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module","labels_url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/issues/155/comments","events_url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/issues/155/events","html_url":"https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/155","id":161105183,"number":155,"title":"Nginx reload","user":{"login":"ctaity","id":5207990,"avatar_url":"https://avatars1.githubusercontent.com/u/5207990?v=3","gravatar_id":"","url":"https://api.github.com/users/ctaity","html_url":"https://github.com/ctaity","followers_url":"https://api.github.com/users/ctaity/followers","following_url":"https://api.github.com/users/ctaity/following{/other_user}","gists_url":"https://api.github.com/users/ctaity/gists{/gist_id}","starred_url":"https://api.github.com/users/ctaity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctaity/subscriptions","organizations_url":"https://api.github.com/users/ctaity/orgs","repos_url":"https://api.github.com/users/ctaity/repos","events_url":"https://api.github.com/users/ctaity/events{/privacy}","received_events_url":"https://api.github.com/users/ctaity/received_events","type":"User","site_admin":false},"labels":[{"id":231741402,"url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/labels/bug","name":"bug","color":"fc2929","default":true},{"id":231741404,"url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"sergey-dryabzhinsky","id":717597,"avatar_url":"https://avatars0.githubusercontent.com/u/717597?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-dryabzhinsky","html_url":"https://github.com/sergey-dryabzhinsky","followers_url":"https://api.github.com/users/sergey-dryabzhinsky/followers","following_url":"https://api.github.com/users/sergey-dryabzhinsky/following{/other_user}","gists_url":"https://api.github.com/users/sergey-dryabzhinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-dryabzhinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-dryabzhinsky/subscriptions","organizations_url":"https://api.github.com/users/sergey-dryabzhinsky/orgs","repos_url":"https://api.github.com/users/sergey-dryabzhinsky/repos","events_url":"https://api.github.com/users/sergey-dryabzhinsky/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-dryabzhinsky/received_events","type":"User","site_admin":false},"assignees":[{"login":"sergey-dryabzhinsky","id":717597,"avatar_url":"https://avatars0.githubusercontent.com/u/717597?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-dryabzhinsky","html_url":"https://github.com/sergey-dryabzhinsky","followers_url":"https://api.github.com/users/sergey-dryabzhinsky/followers","following_url":"https://api.github.com/users/sergey-dryabzhinsky/following{/other_user}","gists_url":"https://api.github.com/users/sergey-dryabzhinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-dryabzhinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-dryabzhinsky/subscriptions","organizations_url":"https://api.github.com/users/sergey-dryabzhinsky/orgs","repos_url":"https://api.github.com/users/sergey-dryabzhinsky/repos","events_url":"https://api.github.com/users/sergey-dryabzhinsky/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-dryabzhinsky/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/milestones/5","html_url":"https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/milestone/5","labels_url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/milestones/5/labels","id":2158190,"number":5,"title":"1.1.10","description":null,"creator":{"login":"sergey-dryabzhinsky","id":717597,"avatar_url":"https://avatars0.githubusercontent.com/u/717597?v=3","gravatar_id":"","url":"https://api.github.com/users/sergey-dryabzhinsky","html_url":"https://github.com/sergey-dryabzhinsky","followers_url":"https://api.github.com/users/sergey-dryabzhinsky/followers","following_url":"https://api.github.com/users/sergey-dryabzhinsky/following{/other_user}","gists_url":"https://api.github.com/users/sergey-dryabzhinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-dryabzhinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-dryabzhinsky/subscriptions","organizations_url":"https://api.github.com/users/sergey-dryabzhinsky/orgs","repos_url":"https://api.github.com/users/sergey-dryabzhinsky/repos","events_url":"https://api.github.com/users/sergey-dryabzhinsky/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-dryabzhinsky/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":5,"state":"open","created_at":"2016-11-25T21:27:47Z","updated_at":"2017-04-15T18:08:29Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2016-06-20T02:09:44Z","updated_at":"2017-04-27T02:14:23Z","closed_at":null,"body":"After nginx reload, i lost stats page and i cant connect to rtmp streams. \n\nCan't do nginx reloads?\n\nMy config:\n\n```\n\nworker_processes  1;\nerror_log  logs/error.log warn;\nevents {\n    worker_connections  1024;\n}\n\nrtmp {\n    server {\n         listen 1935; # Listen on standard RTMP port\n     access_log logs/rtmp_access.log;\n     respawn on;\n     respawn_timeout 2s;\n     chunk_size 4096;\n     ping 20s;\n     ping_timeout 10s;\n     drop_idle_publisher 20s;\n     publish_notify on;\n     idle_streams off;\n\n        # This application is to accept incoming stream\n        application live {\n            live on; # Allows live input\n        allow play all;\n\n            exec ffmpeg  -v verbose -i rtmp://localhost/live/$name\n                         -c:v libx264 -c:a copy -b:v 256k  -vf \"scale=360:trunc(ow/a/2)*2\" -tune zerolatency -preset veryfast -crf 23 -g 50 -maxrate 512k -bufsize 256k -x264opts keyint=50:min-keyint=50:scenecut=-1 -f flv rtmp://localhost/show/$name_360\n                         -c:v libx264 -c:a copy -b:v 512k  -vf \"scale=480:trunc(ow/a/2)*2\" -tune zerolatency -preset veryfast -crf 23 -g 50 -maxrate 1024k -bufsize 512k -x264opts keyint=50:min-keyint=50:scenecut=-1 -f flv rtmp://localhost/show/$name_480\n                         -c:v libx264 -c:a copy -b:v 1024k -vf \"scale=720:trunc(ow/a/2)*2\" -tune zerolatency -preset veryfast -crf 23 -g 50 -maxrate 2048k -bufsize 1024k -x264opts keyint=50:min-keyint=50:scenecut=-1 -f flv rtmp://localhost/show/$name_720 2>>/tmp/ffmpeg-$name.log;\n            }\n\n        # This application is for splitting the stream into HLS fragments\n        application show {\n            live on; # Allows live input from above\n            # hls_type live;\n        hls on; # Enable HTTP Live Streaming\n        hls_nested on;\n            hls_path /tmp/hls/;\n        hls_fragment 4s;\n        hls_playlist_length 1h;\n        hls_continuous on;\n        hls_cleanup on;\n        hls_fragment_naming system;\n        hls_datetime system;        #https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/125\n\n            # Instruct clients to adjust resolution according to bandwidth\n            # hls_variant _240 BANDWIDTH=256000; # Low bitrate, sub-SD resolution\n             hls_variant _360 BANDWIDTH=384000; # Low bitrate, sub-SD resolution\n             hls_variant _480 BANDWIDTH=640000; # High bitrate, higher-than-SD resolution\n             hls_variant _720 BANDWIDTH=1152000; # Source bitrate, source resolution\n        }\n    }\n}\n\nhttp {\n    # See http://licson.net/post/optimizing-nginx-for-large-file-delivery/ for more detail\n    # This optimizes the server for HLS fragment delivery\n    include       mime.types;\n    default_type  application/octet-stream;\n#    directio 512;\n\n    gzip            on;\n    gzip_min_length 500;\n    gzip_proxied    any;\n    gzip_comp_level 5;\n\n    gzip_types      text/plain application/xml application/vnd.apple.mpegurl;\n\n    # HTTP server required to serve the player and HLS fragments\n\n#    sendfile               on;\n#    tcp_nopush             on;\n#    tcp_nodelay            off;\n#    server_tokens          off;\n#    underscores_in_headers on;\n\n#    sendfile_max_chunk          1m;\n#    keepalive_timeout           30;\n#    client_max_body_size        32m;\n#    client_body_buffer_size     1m;\n#    client_body_timeout         10;\n#    client_header_timeout       10;\n#    large_client_header_buffers 4 16k;\n#    send_timeout                10;\n#    reset_timedout_connection   on;\n\n    server {\n        listen 80;\n\n    location /stat {\n        default_type application/xml;\n        rtmp_stat all;\n    }\n    location /stat.xsl {\n        # you can move stat.xsl to a different location\n        root /usr/local/nginx/html;\n    }\n\n    location /control {\n        rtmp_control all;\n    }\n\n        location / {\n            root html;\n        }\n\n        location /hls {\n\n        types {\n                application/vnd.apple.mpegurl m3u8;\n            video/mp2t ts;\n        }\n\n#           more_set_headers 'Access-Control-Allow-Origin: http://streams.tvpublica.com.ar';\n        more_set_headers 'Access-Control-Allow-Origin: $http_origin';\n        more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS';\n            more_set_headers 'Access-Control-Allow-Credentials: true';\n\n        more_set_headers -t application/vnd.apple.mpegurl 'Cache-Control: max-age=1';\n            more_set_headers -t video/mp2t 'Cache-Control: max-age=86400';\n\n            root /tmp/;\n        }\n\n    location /imgs {\n        autoindex on;\n        root /tmp/;\n    }\n    }\n\n    server {\n    listen 80;\n    server_name streams.tvpublica.com.ar;\n\n        location / {\n        proxy_pass http://localhost:3000;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n    }\n    }\n\n\n\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/issues/comments/297592153","html_url":"https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/issues/155#issuecomment-297592153","issue_url":"https://api.github.com/repos/sergey-dryabzhinsky/nginx-rtmp-module/issues/155","id":297592153,"user":{"login":"ctaity","id":5207990,"avatar_url":"https://avatars1.githubusercontent.com/u/5207990?v=3","gravatar_id":"","url":"https://api.github.com/users/ctaity","html_url":"https://github.com/ctaity","followers_url":"https://api.github.com/users/ctaity/followers","following_url":"https://api.github.com/users/ctaity/following{/other_user}","gists_url":"https://api.github.com/users/ctaity/gists{/gist_id}","starred_url":"https://api.github.com/users/ctaity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctaity/subscriptions","organizations_url":"https://api.github.com/users/ctaity/orgs","repos_url":"https://api.github.com/users/ctaity/repos","events_url":"https://api.github.com/users/ctaity/events{/privacy}","received_events_url":"https://api.github.com/users/ctaity/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T02:14:23Z","updated_at":"2017-04-27T02:14:23Z","body":"yes, drop all connections! greattt, thanks segey"}}
{"actor":{"display_login":"ctaity"}}