From 50919e1a49959e6435cb52f2b446fda88950b23a Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 10 Sep 2022 01:35:17 +0200 Subject: [PATCH] encoder/handler/prores_aw: Don't enable Key-Frame options --- source/encoders/handlers/prores_aw_handler.cpp | 7 ++++++- source/encoders/handlers/prores_aw_handler.hpp | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/source/encoders/handlers/prores_aw_handler.cpp b/source/encoders/handlers/prores_aw_handler.cpp index 13d4ee8..23ec4e6 100644 --- a/source/encoders/handlers/prores_aw_handler.cpp +++ b/source/encoders/handlers/prores_aw_handler.cpp @@ -1,5 +1,5 @@ // FFMPEG Video Encoder Integration for OBS Studio -// Copyright (c) 2019 Michael Fabian Dirks +// Copyright (c) 2019-2022 Michael Fabian Dirks // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -112,3 +112,8 @@ void prores_aw_handler::log_options(obs_data_t* settings, const AVCodec* codec, return std::string(""); }); } + +bool prores_aw_handler::has_keyframe_support(ffmpeg_factory* instance) +{ + return false; +} diff --git a/source/encoders/handlers/prores_aw_handler.hpp b/source/encoders/handlers/prores_aw_handler.hpp index caffa1d..5acfbaf 100644 --- a/source/encoders/handlers/prores_aw_handler.hpp +++ b/source/encoders/handlers/prores_aw_handler.hpp @@ -1,5 +1,5 @@ // FFMPEG Video Encoder Integration for OBS Studio -// Copyright (c) 2019 Michael Fabian Dirks +// Copyright (c) 2019-2022 Michael Fabian Dirks // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -44,6 +44,8 @@ namespace streamfx::encoder::ffmpeg::handler { public /*support tests*/: bool has_pixel_format_support(ffmpeg_factory* instance) override; + bool has_keyframe_support(ffmpeg_factory* instance) override; + public /*settings*/: void get_properties(obs_properties_t* props, const AVCodec* codec, AVCodecContext* context, bool hw_encode) override;