mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
daa7fd2247
commit
13918ed81f
4 changed files with 6 additions and 6 deletions
|
@ -1098,9 +1098,9 @@ vhost play.srs.com {
|
||||||
gop_cache off;
|
gop_cache off;
|
||||||
|
|
||||||
# Limit the max frames in gop cache. It might cause OOM if video stream has no IDR frame, so we limit to N
|
# Limit the max frames in gop cache. It might cause OOM if video stream has no IDR frame, so we limit to N
|
||||||
# frames by default.
|
# frames by default. Note that it's the size of gop cache, including videos, audios and other messages.
|
||||||
# default: 250
|
# default: 2500
|
||||||
gop_cache_max_frames 250;
|
gop_cache_max_frames 2500;
|
||||||
|
|
||||||
# the max live queue length in seconds.
|
# the max live queue length in seconds.
|
||||||
# if the messages in the queue exceed the max length,
|
# if the messages in the queue exceed the max length,
|
||||||
|
|
|
@ -38,6 +38,6 @@ vhost __defaultVhost__ {
|
||||||
}
|
}
|
||||||
|
|
||||||
play{
|
play{
|
||||||
gop_cache_max_frames 250;
|
gop_cache_max_frames 2500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4663,7 +4663,7 @@ int SrsConfig::get_gop_cache_max_frames(string vhost)
|
||||||
{
|
{
|
||||||
SRS_OVERWRITE_BY_ENV_INT("srs.vhost.play.gop_cache_max_frames");
|
SRS_OVERWRITE_BY_ENV_INT("srs.vhost.play.gop_cache_max_frames");
|
||||||
|
|
||||||
static int DEFAULT = 250;
|
static int DEFAULT = 2500;
|
||||||
|
|
||||||
SrsConfDirective* conf = get_vhost(vhost);
|
SrsConfDirective* conf = get_vhost(vhost);
|
||||||
if (!conf) {
|
if (!conf) {
|
||||||
|
|
|
@ -9,6 +9,6 @@
|
||||||
|
|
||||||
#define VERSION_MAJOR 5
|
#define VERSION_MAJOR 5
|
||||||
#define VERSION_MINOR 0
|
#define VERSION_MINOR 0
|
||||||
#define VERSION_REVISION 93
|
#define VERSION_REVISION 94
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue