From bc015da547250cbdc25c7fed6a0cf49b06db5560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 15 Jul 2020 17:10:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Default=20to=20libx264=20for=20t?= =?UTF-8?q?imelapses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hopefully the hardware out there should be up to it by now and combined with the in-browser video reviews it would be a pity to still default to mpeg2. --- src/octoprint/settings.py | 2 +- src/octoprint/static/js/app/viewmodels/settings.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 485cf1738..0a21b60d4 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -245,7 +245,7 @@ default_settings = { "snapshotSslValidation": True, "ffmpeg": None, "ffmpegThreads": 1, - "ffmpegVideoCodec": "mpeg2video", + "ffmpegVideoCodec": "libx264", "bitrate": "10000k", "watermark": True, "flipH": False, diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index 57520e5bf..1e7e9a491 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -100,7 +100,7 @@ $(function() { }; self.webcam_available_ratios = ["16:9", "4:3"]; - self.webcam_available_videocodecs = ["mpeg2video", "libx264"]; + self.webcam_available_videocodecs = ["libx264", "mpeg2video"]; var auto_locale = {language: "_default", display: gettext("Autodetect from browser"), english: undefined}; self.locales = ko.observableArray([auto_locale].concat(_.sortBy(_.values(AVAILABLE_LOCALES), function(n) {