소스 검색

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.
Ryszard Knop 6 년 전
부모
커밋
358194764b
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      plugins/obs-ffmpeg/obs-ffmpeg-source.c

+ 4 - 0
plugins/obs-ffmpeg/obs-ffmpeg-source.c

@@ -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);