注意:提问前,请先看FAQ(Please read FAQ before file an issue) #2716
描述(Description)
描述你遇到了什么问题(Please description your issue here)
- SRS版本(Version):
srs-4.0.117
- SRS的日志如下(Log):
2022-02-28 11:47:48.366][Trace][6855][63a6g11s] Hybrid cpu=0.00%,18MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-02-28 11:47:50.405][Trace][6855][7js1qv63] RTMP client ip=127.0.0.1:38290, fd=10
[2022-02-28 11:47:50.406][Trace][6855][7js1qv63] complex handshake success
[2022-02-28 11:47:50.406][Trace][6855][7js1qv63] connect app, tcUrl=rtmp://localhost:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=localhost, port=1935, app=live, args=null
[2022-02-28 11:47:50.406][Trace][6855][7js1qv63] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-02-28 11:47:50.406][Trace][6855][7js1qv63] client identified, type=fmle-publish, vhost=localhost, app=live, stream=livestream, param=, duration=0ms
[2022-02-28 11:47:50.406][Trace][6855][7js1qv63] connected stream, tcUrl=rtmp://localhost:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
[2022-02-28 11:47:50.406][Trace][6855][7js1qv63] source url=/live/livestream, ip=127.0.0.1, cache=1, is_edge=0, source_id=/1utomx26
[2022-02-28 11:47:50.407][Trace][6855][7js1qv63] hls: win=60000ms, frag=10000ms, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=1, waitk=1, dispose=0ms, dts_directly=1
[2022-02-28 11:47:50.407][Trace][6855][7js1qv63] ignore disabled exec for vhost=__defaultVhost__
[2022-02-28 11:47:50.407][Trace][6855][7js1qv63] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0
[2022-02-28 11:47:50.540][Trace][6855][7js1qv63] got metadata, width=1920, height=1080, vcodec=7, acodec=2
[2022-02-28 11:47:50.540][Trace][6855][7js1qv63] 47B video sh, codec(7, profile=High, level=4, 1920x1088, 0kbps, 0.0fps, 0.0s)
[2022-02-28 11:47:50.655][Trace][6855][7js1qv63] -> HLS time=54841000ms, sno=4, ts=livestream-3.ts, dur=0.00, dva=0p
[2022-02-28 11:47:53.366][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-02-28 11:47:58.366][Trace][6855][63a6g11s] Hybrid cpu=0.00%,18MB, cid=1,1, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-02-28 11:48:00.663][Trace][6855][7js1qv63] -> HLS time=64845363ms, sno=4, ts=livestream-3.ts, dur=0.00, dva=10208p
[2022-02-28 11:48:03.366][Trace][6855][63a6g11s] Hybrid cpu=0.00%,18MB, cid=1,1, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-02-28 11:48:08.366][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=1,1, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-02-28 11:48:10.674][Trace][6855][7js1qv63] -> HLS time=74849551ms, sno=5, ts=livestream-4.ts, dur=0.00, dva=5208p
[2022-02-28 11:48:13.366][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=1,0, timer=63,0,0, clock=0,48,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:186,oth:0,buf:0)
[2022-02-28 11:48:14.715][Trace][6855][j115429j] HTTP #0 127.0.0.1:54718 GET http://localhost:8080/live/livestream.m3u8, content-length=-1
[2022-02-28 11:48:14.715][Trace][6855][j115429j] http match file=./objs/nginx/html/live/livestream.m3u8, pattern=/, upath=/live/livestream.m3u8
[2022-02-28 11:48:14.715][Trace][6855][j115429j] TCP: before dispose resource(HttpStream)(0x56177c4357a0), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-02-28 11:48:14.715][Trace][6855][j115429j] client finished.
[2022-02-28 11:48:14.715][Trace][6855][52803370] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-02-28 11:48:14.715][Trace][6855][j115429j] TCP: disposing #0 resource(HttpStream)(0x56177c4357a0), conns=2, disposing=1, zombies=0
[2022-02-28 11:48:14.715][Trace][6855][4vy267sp] HTTP #0 127.0.0.1:54720 GET http://localhost:8080/live/livestream-1.ts, content-length=-1
[2022-02-28 11:48:14.715][Trace][6855][4vy267sp] http match file=./objs/nginx/html/live/livestream-1.ts, pattern=/, upath=/live/livestream-1.ts
[2022-02-28 11:48:14.718][Trace][6855][4vy267sp] TCP: before dispose resource(HttpStream)(0x56177c4357a0), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-02-28 11:48:14.718][Trace][6855][4vy267sp] client finished.
[2022-02-28 11:48:14.718][Trace][6855][52803370] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-02-28 11:48:14.718][Trace][6855][4vy267sp] TCP: disposing #0 resource(HttpStream)(0x56177c4357a0), conns=2, disposing=1, zombies=0
[2022-02-28 11:48:15.407][Trace][6855][7js1qv63] <- CPB time=20006929, okbps=1,0,0, ikbps=3260,0,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-02-28 11:48:18.366][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=1,0, timer=63,0,0, clock=0,48,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:186,oth:0,buf:0)
[2022-02-28 11:48:20.680][Trace][6855][7js1qv63] -> HLS time=84855842ms, sno=6, ts=livestream-5.ts, dur=0.00, dva=208p
[2022-02-28 11:48:23.366][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=1,0, timer=63,0,0, clock=0,48,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:186,oth:0,buf:0)
[2022-02-28 11:48:25.407][Trace][6855][7js1qv63] <- CPB time=30013869, okbps=0,1,0, ikbps=2998,3089,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-02-28 11:48:27.944][Trace][6855][60s036hx] HTTP #0 127.0.0.1:54724 GET http://localhost:8080/live/livestream-2.ts, content-length=-1
[2022-02-28 11:48:27.944][Trace][6855][60s036hx] http match file=./objs/nginx/html/live/livestream-2.ts, pattern=/, upath=/live/livestream-2.ts
[2022-02-28 11:48:27.945][Trace][6855][60s036hx] TCP: before dispose resource(HttpStream)(0x56177c579b50), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-02-28 11:48:27.945][Trace][6855][60s036hx] client finished.
[2022-02-28 11:48:27.945][Trace][6855][52803370] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-02-28 11:48:27.945][Trace][6855][60s036hx] TCP: disposing #0 resource(HttpStream)(0x56177c579b50), conns=2, disposing=1, zombies=0
[2022-02-28 11:48:28.367][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:186,oth:0,buf:0)
[2022-02-28 11:48:29.572][Trace][6855][7459es8e] HTTP #0 127.0.0.1:54728 GET http://localhost:8080/live/livestream-3.ts, content-length=-1
[2022-02-28 11:48:29.572][Trace][6855][7459es8e] http match file=./objs/nginx/html/live/livestream-3.ts, pattern=/, upath=/live/livestream-3.ts
[2022-02-28 11:48:29.615][Trace][6855][7459es8e] TCP: before dispose resource(HttpStream)(0x56177c579b50), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-02-28 11:48:29.615][Trace][6855][7459es8e] client finished.
[2022-02-28 11:48:29.615][Trace][6855][52803370] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-02-28 11:48:29.615][Trace][6855][7459es8e] TCP: disposing #0 resource(HttpStream)(0x56177c579b50), conns=2, disposing=1, zombies=0
[2022-02-28 11:48:30.706][Trace][6855][7js1qv63] -> HLS time=94886561ms, sno=6, ts=livestream-5.ts, dur=0.00, dva=10250p
[2022-02-28 11:48:33.367][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:186,oth:0,buf:0)
[2022-02-28 11:48:36.332][Trace][6855][39j4s376] RTMP client ip=127.0.0.1:38316, fd=12
[2022-02-28 11:48:36.332][Trace][6855][39j4s376] complex handshake success
[2022-02-28 11:48:36.332][Trace][6855][39j4s376] connect app, tcUrl=rtmp://localhost:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=localhost, port=1935, app=live, args=null
[2022-02-28 11:48:36.332][Trace][6855][39j4s376] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] ignore AMF0/AMF3 command message.
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] ignore AMF0/AMF3 command message.
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] client identified, type=Play, vhost=localhost, app=live, stream=livestream, param=, duration=-1ms
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] connected stream, tcUrl=rtmp://localhost:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=livestream, param=, args=null
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] source url=/live/livestream, ip=127.0.0.1, cache=1, is_edge=0, source_id=7js1qv63/1utomx26
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] dispatch cached gop success. count=56, duration=889
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] create consumer, active=1, queue_size=0.00, jitter=30000000
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] set fd=12, SO_SNDBUF=2626560=>175000, buffer=350ms
[2022-02-28 11:48:36.333][Trace][6855][39j4s376] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0
[2022-02-28 11:48:38.367][Trace][6855][63a6g11s] Hybrid cpu=1.00%,18MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:186,oth:0,buf:0)
[2022-02-28 11:48:40.407][Trace][6855][7js1qv63] <- CPB time=45012027, okbps=0,1,0, ikbps=2908,3089,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-02-28 11:48:40.716][Trace][6855][7js1qv63] -> HLS time=104898914ms, sno=7, ts=livestream-6.ts, dur=0.00, dva=5250p
[2022-02-28 11:48:43.199][Trace][6855][39j4s376] -> PLA time=6473562, msgs=22, okbps=2611,0,0, ikbps=4,0,0, mw=350/8
[2022-02-28 11:48:43.367][Trace][6855][63a6g11s] Hybrid cpu=2.00%,18MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:220,oth:0,buf:0)
[2022-02-28 11:48:48.367][Trace][6855][63a6g11s] Hybrid cpu=2.00%,18MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:220,oth:0,buf:0)
[2022-02-28 11:48:50.721][Trace][6855][7js1qv63] -> HLS time=114903528ms, sno=8, ts=livestream-7.ts, dur=0.00, dva=250p
[2022-02-28 11:48:53.367][Trace][6855][63a6g11s] Hybrid cpu=1.00%,20MB, cid=1,0, timer=63,0,0, clock=0,48,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:248,oth:0,buf:0)
[2022-02-28 11:48:53.416][Trace][6855][39j4s376] -> PLA time=16688750, msgs=23, okbps=4445,0,0, ikbps=1,0,0, mw=350/8
[2022-02-28 11:48:55.407][Trace][6855][7js1qv63] <- CPB time=59999721, okbps=0,0,0, ikbps=3300,3592,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-02-28 11:48:55.625][Trace][6855][39j4s376] TCP: before dispose resource(RtmpConn)(0x56177c436400), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-02-28 11:48:55.625][Warn][6855][39j4s376][32] client disconnect peer. ret=1009
[2022-02-28 11:48:55.625][Trace][6855][52803370] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-02-28 11:48:55.625][Trace][6855][39j4s376] TCP: disposing #0 resource(RtmpConn)(0x56177c436400), conns=2, disposing=1, zombies=0
[2022-02-28 11:48:58.367][Trace][6855][63a6g11s] Hybrid cpu=2.00%,18MB, cid=1,0, timer=63,0,0, clock=0,48,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:248,oth:0,buf:0)
[2022-02-28 11:48:58.711][Warn][6855][7js1qv63][11] VIDEO: stream not monotonically increase, please open mix_correct.
[2022-02-28 11:48:58.711][Trace][6855][7js1qv63] cleanup when unpublish
[2022-02-28 11:48:58.711][Trace][6855][7js1qv63] TCP: before dispose resource(RtmpConn)(0x56177c2f7940), conns=1, zombies=0, ign=0, inz=0, ind=0
[2022-02-28 11:48:58.711][Warn][6855][7js1qv63][4] client disconnect peer. ret=1009
[2022-02-28 11:48:58.711][Trace][6855][52803370] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2022-02-28 11:48:58.711][Trace][6855][7js1qv63] TCP: disposing #0 resource(RtmpConn)(0x56177c2f7940), conns=1, disposing=1, zombies=0
[2022-02-28 11:49:03.367][Trace][6855][63a6g11s] Hybrid cpu=1.00%,17MB, cid=1,0, timer=63,0,0, clock=0,48,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:248,oth:0,buf:0)
[2022-02-28 11:49:08.367][Trace][6855][63a6g11s] Hybrid cpu=0.00%,17MB, cid=3,1, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:77,oth:0,buf:0)
- SRS的配置如下(Config):
# main config for srs.
# @see full.conf for detail config.
listen 1935;
max_connections 1000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
daemon on;
http_api {
enabled on;
listen 1985;
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
vhost __defaultVhost__ {
hls {
enabled on;
hls_acodec mp3;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
}
重现(Replay)
重现Bug的步骤(How to replay bug?)
- ffmpeg推流
ffmpeg -re -i test.mp4 -acodec mp3 -vcodec copy -f flv rtmp://localhost/live/livestream
2.拉流HLS ,有视频没声音,我直接用ffmpeg拉流ffplay http://localhost:8080/live/livestream.m3u8
- 拉流RTMP,有视频有声音,
ffplay rtmp://localhost/live/livestream
- 推流.mp3文件也是拉流HLS无声音,RTMP有声音
期望行为(Expect)
描述你期望发生的事情(Please describe your expectation)
看文档hls音频格式应该是支持mp3,虽然mp3已经没啥人用哈,希望得到解决
1条答案
按热度按时间bvjxkvbb1#
扎心了,老铁,你自己都说了,没人用了,谁会去解决他呢?谁会解决一个没人用的问题。
你自己用到了,就只能靠自己解决了。