obs-studio/plugins
jp9000 eabebd1774 obs-ffmpeg: Fix deadlock with nvenc lookahead
Lookahead requires examining frame data over a large number of frames,
so when pkv added the change to fully reset the encoder when the bitrate
changes, nvenc will invalidate all buffers and basically starts over
from a completely clean slate.

It's possible to make lookahead work when changing the bitrate, but due
to how lookahead seems to works internally in nvenc, it will cause
continually increasing latency every time the bitrate is updated, which
is unideal.

Additionally, when lookahead is enabled, deadlocks can occur when
changing the bitrate in a thread other than the graphics thread.
Currently we allow it to be reset outside of the graphics thread.  From
limited investigating, it would appear this deadlock occurs because
nvenc is locking and releasing old textures.

So instead of dealing with all these potential issues, disable the
ability to adjust bitrate when the user has lookahead enabled on nvenc.
It's not really worth implementing dynamic bitrate support when
lookahead is enabled if the latency is just going to continually
increase for every bitrate adjustment anyway.
2019-10-04 04:39:15 -07:00
..
coreaudio-encoder Update translations from Crowdin 2019-09-17 23:21:00 +02:00
decklink Update translations from Crowdin 2019-09-17 23:21:00 +02:00
enc-amf@47c3c728af enc-amf: Update translations 2019-02-25 08:07:08 -08:00
image-source Update translations from Crowdin 2019-09-17 23:21:00 +02:00
linux-alsa Update translations from Crowdin 2019-09-17 23:21:00 +02:00
linux-capture Update translations from Crowdin 2019-09-17 23:21:00 +02:00
linux-jack Update translations from Crowdin 2019-09-17 23:21:00 +02:00
linux-pulseaudio Update translations from Crowdin 2019-09-17 23:21:00 +02:00
linux-v4l2 Update translations from Crowdin 2019-09-17 23:21:00 +02:00
mac-avcapture Update translations from Crowdin 2019-09-17 23:21:00 +02:00
mac-capture Update translations from Crowdin 2019-09-17 23:21:00 +02:00
mac-syphon Update translations from Crowdin 2019-09-17 23:21:00 +02:00
mac-vth264 Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-browser@8d77568bf4 obs-browser: Fix a deadlock 2019-09-20 08:14:16 -07:00
obs-ffmpeg obs-ffmpeg: Fix deadlock with nvenc lookahead 2019-10-04 04:39:15 -07:00
obs-filters Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-libfdk Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-outputs Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-qsv11 Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-text Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-transitions Update translations from Crowdin 2019-09-17 23:21:00 +02:00
obs-vst@e7d21c36c8 clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-x264 Update translations from Crowdin 2019-09-17 23:21:00 +02:00
rtmp-services Update translations from Crowdin 2019-09-17 23:21:00 +02:00
text-freetype2 Update translations from Crowdin 2019-09-17 23:21:00 +02:00
vlc-video Update translations from Crowdin 2019-09-17 23:21:00 +02:00
win-capture Update translations from Crowdin 2019-09-17 23:21:00 +02:00
win-dshow win-dshow: Do not allow H264 to have same priority as MJPEG 2019-09-19 00:12:07 -07:00
win-ivcam clang-format: Add clang-format files 2019-06-23 01:53:56 -07:00
win-mf Update translations from Crowdin 2019-09-17 23:21:00 +02:00
win-wasapi Update translations from Crowdin 2019-09-17 23:21:00 +02:00
CMakeLists.txt cmake: Fix UI being dependent on browser plugin files 2018-09-18 08:56:34 -07:00