summaryrefslogtreecommitdiffstats
path: root/recording
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2023-03-20 18:14:27 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2023-03-21 12:43:49 +0100
commite702db93ef4b6a2f798621514bff94519de701aa (patch)
tree6efbdcdac7e07b96e78313191e3ed32451048ce8 /recording
parent6d9e007dcfbd7fc7b782a9923050da5eee2f7deb (diff)
Increase default video quality
VP8 encoder now uses the "Constant quality mode" to ensure that every frame gets the needed bitrate to achieve certain quality level rather than forcing the whole stream to have an average bitrate. The maximum bitrate is set to 1Mbit/s, which should be enough to get clear images even with FullHD screen shares (although this might still compress some screen shares, as the default bitrate for screen shares in the HPB is set to 2Mbit/s, but it should be enough for typical screen shares of slides). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'recording')
-rw-r--r--recording/server.conf.in2
-rw-r--r--recording/src/nextcloud/talk/recording/Config.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/recording/server.conf.in b/recording/server.conf.in
index ebe5604b7..46b5be762 100644
--- a/recording/server.conf.in
+++ b/recording/server.conf.in
@@ -102,7 +102,7 @@
# The options given to FFmpeg to encode the video output. The options given here
# fully override the default options for the video output.
-#outputvideo = -c:v libvpx -deadline:v realtime
+#outputvideo = -c:v libvpx -deadline:v realtime -crf 10 -b:v 1M
# The extension of the file for audio only recordings.
#extensionaudio = .ogg
diff --git a/recording/src/nextcloud/talk/recording/Config.py b/recording/src/nextcloud/talk/recording/Config.py
index 1b2510ea7..e0e85beb8 100644
--- a/recording/src/nextcloud/talk/recording/Config.py
+++ b/recording/src/nextcloud/talk/recording/Config.py
@@ -216,9 +216,9 @@ class Config:
"""
Returns the options given to FFmpeg to encode the video output.
- Defaults to ['-c:v', 'libvpx', '-deadline:v', 'realtime'].
+ Defaults to ['-c:v', 'libvpx', '-deadline:v', 'realtime', '-crf', '10', '-b:v', '1M'].
"""
- return self._configParser.get('ffmpeg', 'outputvideo', fallback='-c:v libvpx -deadline:v realtime').split()
+ return self._configParser.get('ffmpeg', 'outputvideo', fallback='-c:v libvpx -deadline:v realtime -crf 10 -b:v 1M').split()
def getFfmpegExtensionAudio(self):
"""