-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
TransByAITranslated by AI/GPT.Translated by AI/GPT.
Description
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:
- 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.
- 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
Labels
TransByAITranslated by AI/GPT.Translated by AI/GPT.