From e514c77e9084c75733fb1b3fd6c724e9813c9786 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 5 May 2021 14:09:22 -0400 Subject: [PATCH] Change encoder to a text field. enums will be too much of a hassle --- db/zm_create.sql.in | 2 +- db/zm_update-1.35.28.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 db/zm_update-1.35.28.sql diff --git a/db/zm_create.sql.in b/db/zm_create.sql.in index 8d6303fcc..123c4a716 100644 --- a/db/zm_create.sql.in +++ b/db/zm_create.sql.in @@ -483,7 +483,7 @@ CREATE TABLE `Monitors` ( `SaveJPEGs` TINYINT NOT NULL DEFAULT '3' , `VideoWriter` TINYINT NOT NULL DEFAULT '0', `OutputCodec` int(10) unsigned NOT NULL default 0, - `Encoder` enum('auto','h264','libx264','h264_omx','h264_vaapi','mjpeg','mpeg1','mpeg2'), + `Encoder` varchar(32), `OutputContainer` enum('auto','mp4','mkv'), `EncoderParameters` TEXT, `RecordAudio` TINYINT NOT NULL DEFAULT '0', diff --git a/db/zm_update-1.35.28.sql b/db/zm_update-1.35.28.sql new file mode 100644 index 000000000..a281507dc --- /dev/null +++ b/db/zm_update-1.35.28.sql @@ -0,0 +1 @@ +ALTER TABLE `Monitors` MODIFY `Encoder` varchar(32);