Closed H-TWINKLE closed 3 months ago
docker.conf
# docker config for srs.
# @see full.conf for detail config.
listen 1935;
max_connections 1000;
# For docker, please use docker logs to manage the logs of SRS.
# See https://docs.docker.com/config/containers/logging/
srs_log_tank console;
daemon off;
http_api {
enabled on;
listen 1985;
auth {
enabled on;
}
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
rtc_server {
enabled on;
listen 8000;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
candidate $CANDIDATE;
}
vhost __defaultVhost__ {
# Low-latency configuration
tcp_nodelay on;
min_latency on;
play {
gop_cache off;
queue_length 10;
mw_latency 100;
}
publish {
mr off;
try_annexb_first on;
}
# Configuration for Reduced Latency
hls {
enabled on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
rtc {
enabled on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
rtmp_to_rtc on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
rtc_to_rtmp on;
}
}
TRANS_BY_GPT4
Please click the ASK AI
button on either https://ossrs.io or https://ossrs.net for the Chinese language.
I think the AI can address this query since relevant articles or discussions may already be available.
This issue will be eliminated, see #2716
[2024-02-19 00:54:25.791][WARN][1][h3307r6g][11] Ignore parse url=rtmp://****:1935/live/meizu 17_J3aS7EbSpERxTzHZs3q7 err code=3007(HttpParseUrl)(HTTP parse url failed) : parse url rtmp://****:1935/live/meizu 17_J3aS7EbSpERxTzHZs3q7 as rtmp://htwinkle.cn:1935/live/meizu 17_J3aS7EbSpERxTzHZs3q7 failed, code=1 2024-02-19T00:54:25.792016095Z thread [1][h3307r6g]: initialize() [./src/protocol/srs_protocol_http_stack.cpp:1041][errno=11] 2024-02-19T00:54:25.792023416Z [2024-02-19 00:54:25.791][INFO][1][h3307r6g] client identified, type=fmle-publish, vhost=htwinkle.cn, app=live, stream=meizu17_J3aS7EbSpERxTzHZs3q7, param=, duration=0ms 2024-02-19T00:54:25.792029280Z [2024-02-19 00:54:25.791][INFO][1][h3307r6g] connected stream, tcUrl=rtmp://****:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=1935, app=live, stream=meizu17_J3aS7EbSpERxTzHZs3q7, param=, args=null 2024-02-19T00:54:25.792034626Z [2024-02-19 00:54:25.791][INFO][1][h3307r6g] source url=/live/meizu17_J3aS7EbSpERxTzHZs3q7, ip=111.9.207.60, cache=0/2500, is_edge=0, source_id=/4yc340d5 2024-02-19T00:54:26.017739825Z [2024-02-19 00:54:26.017][INFO][1][h3307r6g] RTC bridge from RTMP, rtmp2rtc=1, keep_bframe=0, merge_nalus=0 2024-02-19T00:54:26.017765079Z [2024-02-19 00:54:26.017][INFO][1][h3307r6g] hls: win=60000ms, frag=10000ms, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, tdr=1.00, aof=2.10, floor=0, clean=1, waitk=1, dispose=120000ms, dts_directly=1 2024-02-19T00:54:26.017771789Z [2024-02-19 00:54:26.017][INFO][1][h3307r6g] ignore disabled exec for vhost=defaultVhost 2024-02-19T00:54:26.017776415Z [2024-02-19 00:54:26.017][INFO][1][h3307r6g] set fd=14 TCP_NODELAY 0=>1 2024-02-19T00:54:26.017781671Z [2024-02-19 00:54:26.017][INFO][1][h3307r6g] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=1 2024-02-19T00:54:26.114846139Z [2024-02-19 00:54:26.114][INFO][1][h3307r6g] got metadata, width=640, height=1128, vcodec=7, acodec=10 2024-02-19T00:54:26.218880226Z [2024-02-19 00:54:26.218][INFO][1][0rio23a0] Hybrid cpu=1.00%,19MB, cid=17,8, timer=62,0,0, clock=0,48,1,1,0,0,0,0,0, free=1 2024-02-19T00:54:26.248520223Z [2024-02-19 00:54:26.248][INFO][1][h3307r6g] 40B video sh, codec(7, profile=High, level=3.1, 640x1128, 0kbps, 0.0fps, 0.0s) 2024-02-19T00:54:26.248548902Z [2024-02-19 00:54:26.248][INFO][1][h3307r6g] -> HLS time=56030322577ms, sno=1, ts=meizu17_J3aS7EbSpERxTzHZs3q7-0.ts, dur=0ms, dva=0p 2024-02-19T00:54:26.407927728Z [2024-02-19 00:54:26.407][INFO][1][h3307r6g] Drop ts segment, sequence_no=0, uri=meizu17_J3aS7EbSpERxTzHZs3q7-0.ts, duration=35ms 2024-02-19T00:54:26.407955751Z [2024-02-19 00:54:26.407][INFO][1][h3307r6g] cleanup when unpublish 2024-02-19T00:54:26.407962267Z [2024-02-19 00:54:26.407][INFO][1][h3307r6g] cleanup when unpublish, created=1, deliver=1 2024-02-19T00:54:26.407976592Z [2024-02-19 00:54:26.407][INFO][1][h3307r6g] TCP: before dispose resource(RtmpConn)(0x7fbbec094df0), conns=1, zombies=0, ign=0, inz=0, ind=0 2024-02-19T00:54:26.407981370Z [2024-02-19 00:54:26.407][ERROR][1][h3307r6g][4] serve error code=3001(HlsDecode)(HLS decode av stream failed) : service cycle : rtmp: stream service : rtmp: receive thread : handle publish message : rtmp: consume message : rtmp: consume video : format consume video : demux NALU : avc demux annexb : not annexb 2024-02-19T00:54:26.407986701Z thread [1][h3307r6g]: do_cycle() [./src/app/srs_app_rtmp_conn.cpp:262][errno=4] 2024-02-19T00:54:26.407990952Z thread [1][h3307r6g]: service_cycle() [./src/app/srs_app_rtmp_conn.cpp:456][errno=4] 2024-02-19T00:54:26.407995827Z thread [1][h3307r6g]: do_publishing() [./src/app/srs_app_rtmp_conn.cpp:1030][errno=11] 2024-02-19T00:54:26.408002032Z thread [1][h3307r6g]: consume() [./src/app/srs_app_recv_thread.cpp:380][errno=11] 2024-02-19T00:54:26.408005895Z thread [1][h3307r6g]: handle_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1167][errno=11] 2024-02-19T00:54:26.408010475Z thread [1][h3307r6g]: process_publish_message() [./src/app/srs_app_rtmp_conn.cpp:1195][errno=11] 2024-02-19T00:54:26.408014637Z thread [1][h3307r6g]: on_video_imp() [./src/app/srs_app_source.cpp:2424][errno=11] 2024-02-19T00:54:26.408018439Z thread [1][h3307r6g]: video_avc_demux() [./src/kernel/srs_kernel_codec.cpp:860][errno=11] 2024-02-19T00:54:26.408022464Z thread [1][h3307r6g]: video_nalu_demux() [./src/kernel/srs_kernel_codec.cpp:1234][errno=11] 2024-02-19T00:54:26.408026353Z thread [1][h3307r6g]: do_avc_demux_annexb_format() [./src/kernel/srs_kernel_codec.cpp:1273][errno=11](Interrupted system call)
Describe the bug rtmp connted sometime has error, the error code is 3001
Version registry.cn-hangzhou.aliyuncs.com/ossrs/srs:5
The text appears to be a Markdown image link that is not displaying correctly. Here is the corrected Markdown format for embedding an image from a GitHub repository:
Please replace "Image Description" with a brief description of the image, "branch" with the name of the repository branch, and "path/to/image.jpg" with the actual path to the image file within the repository.
TRANS_BY_GPT4