Skip to content

After initiating the stream, HLS cannot be played in VLC or SRS-Play. #4481

@ptsx0607

Description

@ptsx0607

Configuration:
`
listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;

http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}

http_api {
enabled on;
listen 1985;
}
stats {
network 0;
}

vhost defaultVhost {
hls {
enabled on;
hls_path ./objs/nginx/html;
hls_fragment 3;
hls_window 10;
}
}`

Streaming:
ffmpeg -rtsp_transport tcp -i "rtsp://xxx/ch1/main/av_stream" -vcodec h264 -acodec aac -f flv "rtmp://xxxx:1935/live/BF0009"

Outcome:

  1. After entering http://xxxxx:8080/live/BF0009.m3u8 in the browser, the file can be downloaded, but it cannot be played by VLC or SRS Player.
  2. The file content is as follows:
    #EXTM3U #EXT-X-STREAM-INF:BANDWIDTH=1,AVERAGE-BANDWIDTH=1 /live/BF0009.m3u8?hls_ctx=0011vle4

TRANS_BY_GPT4

Metadata

Metadata

Assignees

No one assigned

    Labels

    TransByAITranslated by AI/GPT.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions