mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-05 14:29:50 +00:00
update readme to speed up HLS
This commit is contained in:
parent
258a6b55b1
commit
5eb6db107f
@ -376,7 +376,7 @@ HLS is a media format that allows to embed live streams into web pages, inside s
|
|||||||
```yml
|
```yml
|
||||||
paths:
|
paths:
|
||||||
all:
|
all:
|
||||||
runOnPublish: ffmpeg -re -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c copy -f hls -hls_time 1 -hls_list_size 3 -hls_flags delete_segments -hls_allow_cache 0 stream.m3u8
|
runOnPublish: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c copy -f hls -hls_time 1 -hls_list_size 3 -hls_flags delete_segments -hls_allow_cache 0 stream.m3u8
|
||||||
runOnPublishRestart: yes
|
runOnPublishRestart: yes
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -387,7 +387,7 @@ The example above makes the assumption that published streams are encoded with H
|
|||||||
```yml
|
```yml
|
||||||
paths:
|
paths:
|
||||||
all:
|
all:
|
||||||
runOnPublish: ffmpeg -re -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c:a aac -b:a 64k -c:v libx264 -preset ultrafast -b:v 500k -f hls -hls_time 1 -hls_list_size 3 -hls_flags delete_segments -hls_allow_cache 0 stream.m3u8
|
runOnPublish: ffmpeg -i rtsp://localhost:$RTSP_PORT/$RTSP_PATH -c:a aac -b:a 64k -c:v libx264 -preset ultrafast -b:v 500k -f hls -hls_time 1 -hls_list_size 3 -hls_flags delete_segments -hls_allow_cache 0 stream.m3u8
|
||||||
runOnPublishRestart: yes
|
runOnPublishRestart: yes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user