ui/handler, encoder: Allow overriding lag in frames

The lag in frames is not dictated by the number of threads being used by some encoders. At least for hardware encoders, the expected frame lag in real time encoding is 1 + the number of bframes
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-10-03 20:09:34 +02:00
parent d0dc4be985
commit 4cac28a8a3
4 changed files with 13 additions and 3 deletions
+4
View File
@@ -29,6 +29,10 @@ void obsffmpeg::ui::handler::override_colorformat(AVPixelFormat& target_format,
const AVCodec* codec, AVCodecContext* context)
{}
void obsffmpeg::ui::handler::override_lag_in_frames(size_t& lag, obs_data_t* settings, const AVCodec* codec,
AVCodecContext* context)
{}
void obsffmpeg::ui::handler::get_defaults(obs_data_t* settings, const AVCodec* codec, AVCodecContext* context) {}
void obsffmpeg::ui::handler::get_properties(obs_properties_t* props, const AVCodec* codec, AVCodecContext* context) {}