mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
obs-ffmpeg: Bind network buffer size in the UI
Input buffer by default is set to 2MB - for some sources, for example streaming RTSP input over UDP, this is not enough and causes significant playback issues that are not present while playing back the same source under ffplay/mpv. It looks like someone actually started working on this feature as there are translated strings, properties and everything ready - only the control was missing from the UI. This commit adds that control. Currently, the range is set to 1-16MB, step 1MB. This is somewhat arbitrary, so suggestions to tweak this range with more real-world use cases are welcome.
This commit is contained in:
1 parent
f1b9f6b3ce
commit
358194764b
1 file changed
+4
@@ -155,6 +155,10 @@ static obs_properties_t *ffmpeg_source_getproperties(void *data)
|
||||
obs_properties_add_bool(props, "restart_on_activate",
|
||||
obs_module_text("RestartWhenActivated"));
|
||||
|
||||
obs_properties_add_int_slider(props, "buffering_mb",
|
||||
obs_module_text("BufferingMB"),
|
||||
1, 16, 1);
|
||||
|
||||
obs_properties_add_text(props, "input",
|
||||
obs_module_text("Input"), OBS_TEXT_DEFAULT);
|
||||
|
||||
|
||||
Reference in new issue
Block a user