{"action":"opened","issue":{"url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/736","labels_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/736/comments","events_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/736/events","html_url":"https://github.com/arut/nginx-rtmp-module/issues/736","id":120082104,"number":736,"title":"Screenshot support under multi workers","user":{"login":"Bingnan","id":830385,"avatar_url":"https://avatars.githubusercontent.com/u/830385?v=3","gravatar_id":"","url":"https://api.github.com/users/Bingnan","html_url":"https://github.com/Bingnan","followers_url":"https://api.github.com/users/Bingnan/followers","following_url":"https://api.github.com/users/Bingnan/following{/other_user}","gists_url":"https://api.github.com/users/Bingnan/gists{/gist_id}","starred_url":"https://api.github.com/users/Bingnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bingnan/subscriptions","organizations_url":"https://api.github.com/users/Bingnan/orgs","repos_url":"https://api.github.com/users/Bingnan/repos","events_url":"https://api.github.com/users/Bingnan/events{/privacy}","received_events_url":"https://api.github.com/users/Bingnan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T02:36:30Z","updated_at":"2015-12-03T02:36:30Z","closed_at":null,"body":"Hi, @arut \r\nFirst, thanks for your great work on nginx-rtmp module!\r\n\r\nMy question is:\r\n\r\nI want to use the HTTP『control module』to send command to nginx-rtmp server to capture a screenshot:\r\n\r\nmy nginx.conf:\r\n\r\nrecorder snapshot {\r\n    record keyframes manual;\r\n    record_max_frames 1;\r\n    record_path /tmp/snapshot;\r\n\r\n    exec_record_done /usr/local/ffmpeg/2.8/bin/ffmpeg -i /tmp/snapshot/$name.flv -vframes 1 -an -f rawvideo -ss 00:00:00 -y -f image2 /tmp/snapshot/$name.jpg;\r\n}\r\n\r\nthen I will send HTTP request to capture a screenshot:\r\n\r\ncurl \"http://127.0.0.1:8080/control/record/start?app=myapp&name=mystream&rec=snapshot\"\r\n\r\nit works great under one worker model, but under multi workers model, it failed often, maybe in 10 times  just success one time(when I set 4 workers).\r\n\r\nis there any suggestion? Thanks in advance!\r\n\r\nRegards!\r\nBingnan"}}