{"action":"created","issue":{"url":"https://api.github.com/repos/simple-rtmp-server/srs/issues/508","labels_url":"https://api.github.com/repos/simple-rtmp-server/srs/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/simple-rtmp-server/srs/issues/508/comments","events_url":"https://api.github.com/repos/simple-rtmp-server/srs/issues/508/events","html_url":"https://github.com/simple-rtmp-server/srs/issues/508","id":112564845,"number":508,"title":"从speex纯语音转码后转发成acc，然后hls重复生成.ts.tmp文件，不能正常切片","user":{"login":"chenghaoorange","id":3119301,"avatar_url":"https://avatars.githubusercontent.com/u/3119301?v=3","gravatar_id":"","url":"https://api.github.com/users/chenghaoorange","html_url":"https://github.com/chenghaoorange","followers_url":"https://api.github.com/users/chenghaoorange/followers","following_url":"https://api.github.com/users/chenghaoorange/following{/other_user}","gists_url":"https://api.github.com/users/chenghaoorange/gists{/gist_id}","starred_url":"https://api.github.com/users/chenghaoorange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenghaoorange/subscriptions","organizations_url":"https://api.github.com/users/chenghaoorange/orgs","repos_url":"https://api.github.com/users/chenghaoorange/repos","events_url":"https://api.github.com/users/chenghaoorange/events{/privacy}","received_events_url":"https://api.github.com/users/chenghaoorange/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-21T11:18:42Z","updated_at":"2015-10-22T03:10:51Z","closed_at":null,"body":"配置如下\r\n```\r\n# main config for srs.\r\n# @see full.conf for detail config.\r\n\r\nlisten              1935;\r\nmax_connections     1000;\r\nsrs_log_tank        file;\r\nsrs_log_file        ./objs/srs.log;\r\nhttp_api {\r\n    enabled         on;\r\n    listen          1985;\r\n}\r\nhttp_server {\r\n    enabled         on;\r\n    listen          8080;\r\n    dir             ./objs/nginx/html;\r\n}\r\nstats {\r\n    network         0;\r\n    disk            sda sdb xvda xvdb;\r\n}\r\nvhost __defaultVhost__ {\r\n    gop_cache       off;\r\n    queue_length    10;\r\n    min_latency     on;\r\n    mr {\r\n        enabled     off;\r\n    }\r\n    mw_latency      100;\r\n    tcp_nodelay     on;\r\n    transcode {\r\n        enabled     on;\r\n        ffmpeg      /usr/local/bin/ffmpeg;\r\n        engine ff {\r\n            enabled         on;\r\n            vcodec          copy;\r\n            acodec          libfdk_aac;\r\n            aparams {\r\n            }\r\n            output          rtmp://127.0.0.1:[port]/[app]?vhost=hls/[stream]_[engine];\r\n        }\r\n    }\r\n}\r\nvhost hls {\r\n    hls {\r\n        enabled         on;\r\n        hls_fragment    10;\r\n        hls_window      60;\r\n        hls_path        /html/hls;\r\n        hls_m3u8_file   [app]/[stream].m3u8;\r\n        hls_ts_file     [app]/[stream]-[seq].ts;\r\n    }\r\n}\r\n```\r\n\r\nstring日志和srs日志都显示正常，手动ffmpeg发布到hls也是同样的问题"},"comment":{"url":"https://api.github.com/repos/simple-rtmp-server/srs/issues/comments/150094244","html_url":"https://github.com/simple-rtmp-server/srs/issues/508#issuecomment-150094244","issue_url":"https://api.github.com/repos/simple-rtmp-server/srs/issues/508","id":150094244,"user":{"login":"chenghaoorange","id":3119301,"avatar_url":"https://avatars.githubusercontent.com/u/3119301?v=3","gravatar_id":"","url":"https://api.github.com/users/chenghaoorange","html_url":"https://github.com/chenghaoorange","followers_url":"https://api.github.com/users/chenghaoorange/followers","following_url":"https://api.github.com/users/chenghaoorange/following{/other_user}","gists_url":"https://api.github.com/users/chenghaoorange/gists{/gist_id}","starred_url":"https://api.github.com/users/chenghaoorange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenghaoorange/subscriptions","organizations_url":"https://api.github.com/users/chenghaoorange/orgs","repos_url":"https://api.github.com/users/chenghaoorange/repos","events_url":"https://api.github.com/users/chenghaoorange/events{/privacy}","received_events_url":"https://api.github.com/users/chenghaoorange/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T03:10:51Z","updated_at":"2015-10-22T03:10:51Z","body":"[2015-10-22 11:06:28.475][trace][16846][0] srs checking config...\r\n[2015-10-22 11:06:28.475][trace][16846][0] detect intranet address: 127.0.0.1, ifname=lo\r\n[2015-10-22 11:06:28.475][trace][16846][0] retrieve local ipv4 ip=10.169.207.93, index=0\r\n[2015-10-22 11:06:28.475][trace][16846][0] detect intranet address: 10.169.207.93, ifname=eth0\r\n[2015-10-22 11:06:28.475][trace][16846][0] retrieve local ipv4 ip=120.24.172.128, index=1\r\n[2015-10-22 11:06:28.475][trace][16846][0] detect internet address: 120.24.172.128, ifname=eth1\r\n[2015-10-22 11:06:28.475][warn][16846][0][0] stats network use index=0, ip=10.169.207.93\r\n[2015-10-22 11:06:28.475][warn][16846][0][0] stats disk list: sda sdb xvda xvdb \r\n[2015-10-22 11:06:28.475][trace][16846][0] write log to file ./objs/srs.log\r\n[2015-10-22 11:06:28.475][trace][16846][0] you can: tailf ./objs/srs.log\r\n[2015-10-22 11:06:28.476][trace][16846][0] @see: https://github.com/simple-rtmp-server/srs/wiki/v1_CN_SrsLog\r\n[2015-10-22 11:06:28.476][trace][16846][0] srs(simple-rtmp-server) 2.0.195\r\n[2015-10-22 11:06:28.476][trace][16846][0] license: The MIT License (MIT), Copyright (c) 2013-2015 SRS(simple-rtmp-server)\r\n[2015-10-22 11:06:28.476][trace][16846][0] primary/master: SRS/1.0release\r\n[2015-10-22 11:06:28.476][trace][16846][0] authors: winlin,wenjie.zhao\r\n[2015-10-22 11:06:28.476][trace][16846][0] contributors: winlin<winlin@vip.126.com> wenjie.zhao<740936897@qq.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> \r\n[2015-10-22 11:06:28.476][trace][16846][0] uname: Linux centos6 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux\r\n[2015-10-22 11:06:28.476][trace][16846][0] build: 2015-10-08 10:00:51, little-endian\r\n[2015-10-22 11:06:28.476][trace][16846][0] configure:  --x86-x64 --prefix=/usr/local/srs\r\n[2015-10-22 11:06:28.476][trace][16846][0] features: --prefix=/usr/local/srs --with-hls --with-hds --with-dvr --without-nginx --with-ssl --without-ffmpeg --with-transcode --with-ingest --with-stat --with-http-callback --with-http-server --without-stream-caster --with-http-api --with-librtmp --without-research --with-utest --without-gperf --without-gmc --without-gmp --without-gcp --without-gprof --without-arm-ubuntu12 --without-mips-ubuntu12 --log-trace\r\n[2015-10-22 11:06:28.476][trace][16846][0] conf: ./conf/srs.conf, limit: 1000\r\n[2015-10-22 11:06:28.476][trace][16846][0] writev limits write 1024 iovs a time\r\n[2015-10-22 11:06:28.476][warn][16846][0][0] SRS 2.0.195 is not stable, please use stable branch 1.0release instead\r\n[2015-10-22 11:06:28.476][trace][16846][0] cpu is amd64, glibc 2.12\r\n[2015-10-22 11:06:28.476][trace][16846][0] cpu is x86_64, glibc 2.12\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature rtmp handshake: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature hls: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature hds: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature http callback: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature http api: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature http server: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature http parser: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature dvr: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature transcode: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature ingest: on\r\n[2015-10-22 11:06:28.476][trace][16846][0] check feature system stat: on\r\n[2015-10-22 11:06:28.476][warn][16846][0][0] check feature compile nginx: off\r\n[2015-10-22 11:06:28.476][warn][16846][0][0] check feature compile ffmpeg: off\r\n[2015-10-22 11:06:28.476][warn][16846][0][0] stream caster: off\r\n[2015-10-22 11:06:28.476][trace][16846][0] MR(merged-read): on, @see https://github.com/simple-rtmp-server/srs/issues/241\r\n[2015-10-22 11:06:28.476][trace][16846][0] MR(merged-read) default 0 sleep 350\r\n[2015-10-22 11:06:28.476][trace][16846][0] MW(merged-write) default sleep 350\r\n[2015-10-22 11:06:28.476][trace][16846][0] read chunk stream cache cid [0, 16)\r\n[2015-10-22 11:06:28.476][trace][16846][0] default gop cache 1, play queue 30s\r\n[2015-10-22 11:06:28.476][trace][16846][0] complex send algorithm enabled.\r\n[2015-10-22 11:06:28.476][warn][16846][0][0] TCP_NODELAY enabled, may hurts performance.\r\n[2015-10-22 11:06:28.476][trace][16846][0] auto guess socket send buffer by merged write\r\n[2015-10-22 11:06:28.476][trace][16846][0] system default latency in ms: mw(0-350) + mr(0-350) + play-queue(0-30000)\r\n[2015-10-22 11:06:28.476][trace][16846][0] http: root mount to ./objs/nginx/html\r\n[2015-10-22 11:06:28.476][trace][16846][0] start deamon mode...\r\n[2015-10-22 11:06:28.476][trace][16847][0] father process exit. ret=0\r\n[2015-10-22 11:06:28.475][trace][16846][0] config parse complete\r\n[2015-10-22 11:06:28.475][trace][16846][0] write log to file ./objs/srs.log\r\n[2015-10-22 11:06:28.475][trace][16846][0] you can: tailf ./objs/srs.log\r\n[2015-10-22 11:06:28.475][trace][16846][0] @see: https://github.com/simple-rtmp-server/srs/wiki/v1_CN_SrsLog\r\n[2015-10-22 11:06:28.476][trace][16846][0] grandpa process exit.\r\n[2015-10-22 11:06:28.475][trace][16846][0] config parse complete\r\n[2015-10-22 11:06:28.475][trace][16846][0] write log to file ./objs/srs.log\r\n[2015-10-22 11:06:28.475][trace][16846][0] you can: tailf ./objs/srs.log\r\n[2015-10-22 11:06:28.475][trace][16846][0] @see: https://github.com/simple-rtmp-server/srs/wiki/v1_CN_SrsLog\r\n[2015-10-22 11:06:28.477][trace][16848][0] son(deamon) process running.\r\n[2015-10-22 11:06:28.477][trace][16848][0] st_set_eventsys to epoll\r\n[2015-10-22 11:06:28.477][trace][16848][0] st_init success, use epoll\r\n[2015-10-22 11:06:28.477][trace][16848][100] server main cid=100\r\n[2015-10-22 11:06:28.477][trace][16848][100] write pid=16848 to ./objs/srs.pid success!\r\n[2015-10-22 11:06:28.487][trace][16848][100] RTMP listen at tcp://0.0.0.0:1935, fd=8\r\n[2015-10-22 11:06:28.498][trace][16848][100] HTTP-API listen at tcp://0.0.0.0:1985, fd=9\r\n[2015-10-22 11:06:28.508][trace][16848][100] HTTP-Server listen at tcp://0.0.0.0:8080, fd=10\r\n[2015-10-22 11:06:28.508][trace][16848][100] signal installed\r\n[2015-10-22 11:06:28.518][trace][16848][100] http: api mount /console to ./objs/nginx/html/console\r\n[2015-10-22 11:06:28.528][trace][16848][100] ingest thread cid=105, current_cid=100\r\n[2015-10-22 11:06:29.529][trace][16848][100] USER_HZ=100\r\n[2015-10-22 11:06:50.371][trace][16848][107] RTMP client ip=49.221.62.184\r\n[2015-10-22 11:06:50.371][trace][16848][107] srand initialized the random.\r\n[2015-10-22 11:06:51.019][trace][16848][107] simple handshake success.\r\n[2015-10-22 11:06:51.019][trace][16848][107] connect app, tcUrl=rtmp://wou8.com/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null\r\n[2015-10-22 11:06:51.019][trace][16848][107] out chunk size to 60000\r\n[2015-10-22 11:06:51.506][trace][16848][107] client identified, type=fmle-publish, stream_name=systemroom1, duration=-1.00\r\n[2015-10-22 11:06:51.527][trace][16848][107] source url=/live/systemroom1, ip=49.221.62.184, cache=0, is_edge=0, source_id=-1[-1]\r\n[2015-10-22 11:06:52.072][trace][16848][107] encoder thread cid=110, current_cid=107\r\n[2015-10-22 11:06:52.072][trace][16848][110] start ffmpeg, log: ./objs/ffmpeg-encoder-__defaultVhost__-live-systemroom1.log, params: /usr/local/bin/ffmpeg -f flv -i rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__/systemroom1 -vcodec copy -acodec libfdk_aac -f flv -y rtmp://127.0.0.1:1935/live?vhost=hls/systemroom1_ff\r\n[2015-10-22 11:06:52.072][trace][16848][110] vfored ffmpeg encoder engine, pid=16928\r\n[2015-10-22 11:06:52.082][trace][16848][107] set TCP_NODELAY 0=>1\r\n[2015-10-22 11:06:52.082][trace][16848][107] start publish mr=0/350, p1stpt=20000, pnt=20000, tcp_nodelay=1, rtcid=111\r\n[2015-10-22 11:06:52.084][trace][16848][113] RTMP client ip=127.0.0.1\r\n[2015-10-22 11:06:52.086][trace][16848][113] complex handshake success\r\n[2015-10-22 11:06:52.126][trace][16848][113] connect app, tcUrl=rtmp://127.0.0.1:1935/live?vhost=__defaultVhost__, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, args=null\r\n[2015-10-22 11:06:52.126][trace][16848][113] out chunk size to 60000\r\n[2015-10-22 11:06:52.206][trace][16848][113] ignore AMF0/AMF3 command message.\r\n[2015-10-22 11:06:52.246][trace][16848][113] ignore AMF0/AMF3 command message.\r\n[2015-10-22 11:06:52.246][trace][16848][113] client identified, type=Play, stream_name=systemroom1, duration=-1.00\r\n[2015-10-22 11:06:52.246][trace][16848][113] source url=/live/systemroom1, ip=127.0.0.1, cache=0, is_edge=0, source_id=107[107]\r\n[2015-10-22 11:06:52.246][trace][16848][113] dispatch cached gop success. count=0, duration=-1\r\n[2015-10-22 11:06:52.246][trace][16848][113] create consumer, queue_size=10.00, jitter=1\r\n[2015-10-22 11:06:52.257][trace][16848][113] mw changed sleep 350=>100, max_msgs=128, esbuf=62500, sbuf 169160=>62500, realtime=1\r\n[2015-10-22 11:06:52.257][trace][16848][113] set TCP_NODELAY 0=>1\r\n[2015-10-22 11:06:52.257][trace][16848][113] start play smi=0.00, mw_sleep=100, mw_enabled=1, realtime=1, tcp_nodelay=1\r\n[2015-10-22 11:06:52.257][trace][16848][114] ignored. set buffer length to 3000\r\n[2015-10-22 11:06:57.561][trace][16848][116] RTMP client ip=127.0.0.1\r\n[2015-10-22 11:06:57.563][trace][16848][116] complex handshake success\r\n[2015-10-22 11:06:57.603][trace][16848][116] connect app, tcUrl=rtmp://127.0.0.1:1935/live?vhost=hls, pageUrl=, swfUrl=, schema=rtmp, vhost=hls, port=1935, app=live, args=null\r\n[2015-10-22 11:06:57.603][trace][16848][116] out chunk size to 60000\r\n[2015-10-22 11:06:57.683][trace][16848][116] input chunk size to 60000\r\n[2015-10-22 11:06:57.683][trace][16848][116] client identified, type=fmle-publish, stream_name=systemroom1_ff, duration=-1.00\r\n[2015-10-22 11:06:57.704][trace][16848][116] source url=hls/live/systemroom1_ff, ip=127.0.0.1, cache=1, is_edge=0, source_id=-1[-1]\r\n[2015-10-22 11:06:57.764][trace][16848][116] hls: win=60.00, frag=10.00, prefix=, path=/html/hls, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=1, waitk=1, dispose=0\r\n[2015-10-22 11:06:57.773][trace][16848][116] start publish mr=0/350, p1stpt=20000, pnt=20000, tcp_nodelay=0, rtcid=119\r\n[2015-10-22 11:06:57.828][trace][16848][116] got metadata, acodec=10\r\n[2015-10-22 11:06:57.828][trace][16848][116] 4B audio sh, codec(10, profile=LC, 1channels, 0kbps, 16000HZ), flv(16bits, 2channels, 44100HZ)\r\n[2015-10-22 11:07:01.913][trace][16848][113] -> PLA time=10000, msgs=13, okbps=12,0,0, ikbps=2,0,0, mw=100\r\n[2015-10-22 11:07:11.981][trace][16848][113] -> PLA time=20000, msgs=13, okbps=11,0,0, ikbps=1,0,0, mw=100\r\n[2015-10-22 11:07:12.486][trace][16848][116] audio drop ts segment, sequence_no=0, uri=systemroom1_ff-0.ts, duration=20.03, start=0\r\n[2015-10-22 11:07:13.072][trace][16848][110] -> ENC time=22001, encoders=1, input=__defaultVhost__/live/systemroom1\r\n[2015-10-22 11:07:17.773][trace][16848][116] <- CPB time=0, okbps=1,0,0, ikbps=47,0,0, mr=0/350, p1stpt=20000, pnt=20000\r\n[2015-10-22 11:07:22.452][trace][16848][113] -> PLA time=30000, msgs=9, okbps=11,0,0, ikbps=0,0,0, mw=100\r\n[2015-10-22 11:07:31.825][trace][16848][113] -> PLA time=40000, msgs=13, okbps=11,11,0, ikbps=0,0,0, mw=100\r\n[2015-10-22 11:07:32.082][trace][16848][107] <- CPB time=20000, okbps=0,1,0, ikbps=10,10,0, mr=0/350, p1stpt=20000, pnt=20000\r\n[2015-10-22 11:07:32.160][trace][16848][116] audio drop ts segment, sequence_no=0, uri=systemroom1_ff-0.ts, duration=20.10, start=1808640\r\n 这个是srs的日志\r\n版本是2.0.195吧"}}