encoders/aom-av1: Deprecate encoder

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2022-08-20 23:36:10 +02:00
parent 3883c4759c
commit c150a1b0d7
3 changed files with 17 additions and 0 deletions

View file

@ -66,6 +66,7 @@ UI.Updater.Menu.Channel.Alpha="Alpha"
# Encoder/AOM-AV1 # Encoder/AOM-AV1
Encoder.AOM.AV1="AOM AV1 (direct)" Encoder.AOM.AV1="AOM AV1 (direct)"
Encoder.AOM.AV1.Deprecated="This encoder is deprecated and will be removed soon. Users are urged to switch to the integrated 'SVT-AV1' or 'AOM AV1' encoder as soon as possible."
Encoder.AOM.AV1.Encoder="Encoder" Encoder.AOM.AV1.Encoder="Encoder"
Encoder.AOM.AV1.Encoder.Usage="Usage" Encoder.AOM.AV1.Encoder.Usage="Usage"
Encoder.AOM.AV1.Encoder.Usage.GoodQuality="Good Quality" Encoder.AOM.AV1.Encoder.Usage.GoodQuality="Good Quality"

View file

@ -18,6 +18,10 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE. // SOFTWARE.
//--------------------------------------------------------------------------------//
// THIS FEATURE IS DEPRECATED. SUBMITTED PATCHES WILL BE REJECTED.
//--------------------------------------------------------------------------------//
#include "encoder-aom-av1.hpp" #include "encoder-aom-av1.hpp"
#include <filesystem> #include <filesystem>
#include <thread> #include <thread>
@ -40,6 +44,7 @@
#define ST_I18N "Encoder.AOM.AV1" #define ST_I18N "Encoder.AOM.AV1"
// Preset // Preset
#define ST_I18N_DEPRECATED ST_I18N ".Deprecated"
#define ST_I18N_ENCODER ST_I18N ".Encoder" #define ST_I18N_ENCODER ST_I18N ".Encoder"
#define ST_I18N_ENCODER_USAGE ST_I18N_ENCODER ".Usage" #define ST_I18N_ENCODER_USAGE ST_I18N_ENCODER ".Usage"
#define ST_I18N_ENCODER_USAGE_GOODQUALITY ST_I18N_ENCODER_USAGE ".GoodQuality" #define ST_I18N_ENCODER_USAGE_GOODQUALITY ST_I18N_ENCODER_USAGE ".GoodQuality"
@ -1263,6 +1268,7 @@ aom_av1_factory::aom_av1_factory()
_info.type = obs_encoder_type::OBS_ENCODER_VIDEO; _info.type = obs_encoder_type::OBS_ENCODER_VIDEO;
_info.codec = "av1"; _info.codec = "av1";
_info.caps = OBS_ENCODER_CAP_DYN_BITRATE; _info.caps = OBS_ENCODER_CAP_DYN_BITRATE;
_info.caps |= OBS_ENCODER_CAP_DEPRECATED;
finish_setup(); finish_setup();
} }
@ -1425,6 +1431,12 @@ obs_properties_t* aom_av1_factory::get_properties2(instance_t* data)
{ {
obs_properties_t* props = obs_properties_create(); obs_properties_t* props = obs_properties_create();
{
auto p = obs_properties_add_text(props, "[[deprecated]]", D_TRANSLATE(ST_I18N_DEPRECATED), OBS_TEXT_INFO);
obs_property_text_set_info_type(p, OBS_TEXT_INFO_WARNING);
obs_property_text_set_info_word_wrap(p, true);
}
#ifdef ENABLE_FRONTEND #ifdef ENABLE_FRONTEND
{ {
obs_properties_add_button2(props, S_MANUAL_OPEN, D_TRANSLATE(S_MANUAL_OPEN), aom_av1_factory::on_manual_open, obs_properties_add_button2(props, S_MANUAL_OPEN, D_TRANSLATE(S_MANUAL_OPEN), aom_av1_factory::on_manual_open,

View file

@ -18,6 +18,10 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE. // SOFTWARE.
//--------------------------------------------------------------------------------//
// THIS FEATURE IS DEPRECATED. SUBMITTED PATCHES WILL BE REJECTED.
//--------------------------------------------------------------------------------//
#pragma once #pragma once
#include "common.hpp" #include "common.hpp"
#include <memory> #include <memory>