mirror of
https://github.com/ossrs/srs.git
synced 2025-11-24 11:54:21 +08:00
@@ -1098,9 +1098,9 @@ vhost play.srs.com {
|
||||
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
|
||||
# frames by default.
|
||||
# default: 250
|
||||
gop_cache_max_frames 250;
|
||||
# frames by default. Note that it's the size of gop cache, including videos, audios and other messages.
|
||||
# default: 2500
|
||||
gop_cache_max_frames 2500;
|
||||
|
||||
# the max live queue length in seconds.
|
||||
# if the messages in the queue exceed the max length,
|
||||
|
||||
@@ -38,6 +38,6 @@ vhost __defaultVhost__ {
|
||||
}
|
||||
|
||||
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");
|
||||
|
||||
static int DEFAULT = 250;
|
||||
static int DEFAULT = 2500;
|
||||
|
||||
SrsConfDirective* conf = get_vhost(vhost);
|
||||
if (!conf) {
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 93
|
||||
#define VERSION_REVISION 94
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user