Skip to content

Config: Failed to parse config ending with newline. #2228

@Nibbler999

Description

@Nibbler999

Description'

Please ensure that the markdown structure is maintained.

Documentation for realtime config has an error

  1. SRS version: 3.0.153
  2. The log of SRS is as follows:'

Please ensure that the markdown structure is maintained.

start play smi=0ms, mw_sleep=100, mw_enabled=1, realtime=0, tcp_nodelay=1
  1. The configuration of SRS is as follows:

Please ensure that the markdown structure is maintained.

# the listen ports, split by space.
listen              1935;
vhost __defaultVhost__ {
    tcp_nodelay     on
    min_latency     on;

    play {
        gop_cache       off;
        queue_length    10;
        mw_latency      100;
    }

    publish {
        mr off;
    }
}

Replay

Please ensure that the markdown structure is maintained.

Play stream with rtmp client and check log

Expect

Please ensure that the markdown structure is maintained.

realtime=1

If I add the missing semi-colon to the config after tcp_nodelay on then the min_latency setting is applied correctly. The sample configuration is incorrect in both conf/realtime.conf and the wiki in both languages.

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

BugIt might be a bug.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions