{"action":"opened","issue":{"url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/585","labels_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/585/comments","events_url":"https://api.github.com/repos/arut/nginx-rtmp-module/issues/585/events","html_url":"https://github.com/arut/nginx-rtmp-module/issues/585","id":58966706,"number":585,"title":"Audio is threading through HLS segments.","user":{"login":"hdezela","id":99411,"avatar_url":"https://avatars.githubusercontent.com/u/99411?v=3","gravatar_id":"","url":"https://api.github.com/users/hdezela","html_url":"https://github.com/hdezela","followers_url":"https://api.github.com/users/hdezela/followers","following_url":"https://api.github.com/users/hdezela/following{/other_user}","gists_url":"https://api.github.com/users/hdezela/gists{/gist_id}","starred_url":"https://api.github.com/users/hdezela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdezela/subscriptions","organizations_url":"https://api.github.com/users/hdezela/orgs","repos_url":"https://api.github.com/users/hdezela/repos","events_url":"https://api.github.com/users/hdezela/events{/privacy}","received_events_url":"https://api.github.com/users/hdezela/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T20:47:27Z","updated_at":"2015-02-25T20:47:27Z","closed_at":null,"body":"I don't know exactly how to describe this, but when I transcode with ffmpeg, the audio in the segments is layered every three segments:\r\n\r\nsegment01 -> audio01\r\nsegment02 -> audio02\r\nsegment03 -> audio03 + audio01\r\nsegment04 -> audio04 + audio02\r\nsegment05 -> audio05 + audio03 + audio01\r\n\r\n...and so on, when it gets to something like segment 400 it has its audio plus the audio of every n-2 segment before it.\r\n\r\nThis is my nginx.conf:\r\n\r\n```\r\napplication live {\r\n                        live on;\r\n                        record all;\r\n                        wait_key on;\r\n                        record_path /webdata/batch/graba-vivo;\r\n                        record_unique on;\r\n                        interleave on;\r\n                        drop_idle_publisher 10s;\r\n                        allow play all;\r\n                        allow publish all;\r\n                        on_publish http://localhost:8080/publish.php;\r\n                        on_play http://localhost:8080/play.php;\r\n                        notify_method get;\r\n                        #push rtmp://localhost:1935/hls;\r\n                        exec_push /usr/local/bin/ffmpeg -y -i rtmp://localhost:1935/live/$name -s 320x180 -b:v 240k -c:v libx264 -preset ultrafast -profile:v baseline -level 3.0 -c:a libfaac -ac 2 -ar 48000 -b:a 32k -g 15 -f flv rtmp://localhost:1935/hls/180p -s 426x240 -b:v 360k -c:v libx264 -preset ultrafast -profile:v baseline -level 3.1 -c:a libfaac -ac 2 -ar 48000 -b:a 32k -g 15 -f flv rtmp://localhost:1935/hls/240p -c:a libfaac -ac 2 -ar 48000 -b:a 64k -f flv rtmp://localhost:1935/hls/audio 2>>/webdata/logs/ffmpeg-$name.log;\r\n                        access_log /webdata/logs/access/rtmp-live.log;\r\n                }\r\n                application hls {\r\n                        live on;\r\n                        hls on;\r\n                        hls_fragment 15s;\r\n                        hls_playlist_length 10m;\r\n                        hls_path /webdata/vivo/hls;\r\n                        access_log /webdata/logs/access/rtmp-hls.log;\r\n                }\r\n```\r\n\r\nThe ffmpeg log shows no errors nor does the nginx log. All files are perfectly playable but they have the audio issue. I've logged with debug but nothing is wrong there either.\r\n\r\nI am sure it is the nginx-rtmp module because I've tried changing all parts (ffmpeg <-> mplayer <-> vlc) / (OBS <-> FMLE <-> XSplit) / (nginx-rtmp <-> wowza <-> red5) and the issue only shows up when using nginx-rtmp.\r\n\r\nI have (or can generate) files, logs, etc... if needed."}}