diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e8c7c0..bb68b34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -263,6 +263,7 @@ set(PROJECT_PRIVATE "${PROJECT_SOURCE_DIR}/source/plugin.hpp" "${PROJECT_SOURCE_DIR}/source/utility.cpp" "${PROJECT_SOURCE_DIR}/source/utility.hpp" + "${PROJECT_SOURCE_DIR}/source/strings.hpp" "${PROJECT_SOURCE_DIR}/source/encoders/generic.hpp" "${PROJECT_SOURCE_DIR}/source/encoders/generic.cpp" "${PROJECT_SOURCE_DIR}/source/encoders/prores_aw.hpp" diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index 2851c8b..568beab 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -23,6 +23,15 @@ FFmpeg.StandardCompliance.Normal="Normal" FFmpeg.StandardCompliance.Unofficial="Unofficial" FFmpeg.StandardCompliance.Experimental="Experimental" +# Rate Control +RateControl="Rate Control" +RateControl.Method="Method" +RateControl.Method.CBR="Constant Bitrate" +RateControl.Method.ABR="Average Bitrate" +RateControl.Method.VBR="Variable Bitrate" +RateControl.Method.CQP="Constant Quantization Parameter" +RateControl.Method.CRF="Constant Rate Factor" + # Apple ProRes AppleProRes.Profile="Profile" AppleProRes.Profile.APCO="Proxy" diff --git a/source/strings.hpp b/source/strings.hpp new file mode 100644 index 0000000..9236935 --- /dev/null +++ b/source/strings.hpp @@ -0,0 +1,23 @@ +// FFMPEG Video Encoder Integration for OBS Studio +// Copyright (C) 2018 - 2019 Michael Fabian Dirks +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +#pragma once +#include "utility.hpp" + +#define P_RATECONTROL "RateControl" +#define P_RATECONTROL_METHOD "RateControl.Method" +#define P_RATECONTROL_METHOD_(x) "RateControl.Method." D_VSTR(x)