From b7085c713220c9c5a96c9bb77330c2ba6ae9274e Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 24 Dec 2020 18:02:04 +0100 Subject: add support for 1440p (Quad HD/QHD/WQHD) videos --- server/initializers/checker-before-init.ts | 5 +++-- server/initializers/config.ts | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'server/initializers') diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index 765ef157e..7945e8586 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts @@ -23,7 +23,7 @@ function checkMissedConfig () { 'redundancy.videos.strategies', 'redundancy.videos.check_interval', 'transcoding.enabled', 'transcoding.threads', 'transcoding.allow_additional_extensions', 'transcoding.hls.enabled', 'transcoding.resolutions.0p', 'transcoding.resolutions.240p', 'transcoding.resolutions.360p', 'transcoding.resolutions.480p', - 'transcoding.resolutions.720p', 'transcoding.resolutions.1080p', 'transcoding.resolutions.2160p', + 'transcoding.resolutions.720p', 'transcoding.resolutions.1080p', 'transcoding.resolutions.1440p', 'transcoding.resolutions.2160p', 'import.videos.http.enabled', 'import.videos.torrent.enabled', 'auto_blacklist.videos.of_users.enabled', 'trending.videos.interval_days', 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', @@ -41,7 +41,8 @@ function checkMissedConfig () { 'live.enabled', 'live.allow_replay', 'live.max_duration', 'live.max_user_lives', 'live.max_instance_lives', 'live.transcoding.enabled', 'live.transcoding.threads', 'live.transcoding.resolutions.240p', 'live.transcoding.resolutions.360p', 'live.transcoding.resolutions.480p', - 'live.transcoding.resolutions.720p', 'live.transcoding.resolutions.1080p', 'live.transcoding.resolutions.2160p' + 'live.transcoding.resolutions.720p', 'live.transcoding.resolutions.1080p', 'live.transcoding.resolutions.1440p', + 'live.transcoding.resolutions.2160p' ] const requiredAlternatives = [ diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 705223b0a..0f58dc1d4 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts @@ -189,6 +189,7 @@ const CONFIG = { get '480p' () { return config.get('transcoding.resolutions.480p') }, get '720p' () { return config.get('transcoding.resolutions.720p') }, get '1080p' () { return config.get('transcoding.resolutions.1080p') }, + get '1440p' () { return config.get('transcoding.resolutions.1440p') }, get '2160p' () { return config.get('transcoding.resolutions.2160p') } }, HLS: { @@ -221,6 +222,7 @@ const CONFIG = { get '480p' () { return config.get('live.transcoding.resolutions.480p') }, get '720p' () { return config.get('live.transcoding.resolutions.720p') }, get '1080p' () { return config.get('live.transcoding.resolutions.1080p') }, + get '1440p' () { return config.get('live.transcoding.resolutions.1440p') }, get '2160p' () { return config.get('live.transcoding.resolutions.2160p') } } } -- cgit v1.2.3