mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
Merge pull request #3083 from pkviet/srtfix4
UI: Enable sps/pps (video headers) repetition (for srt/mpegts)
This commit is contained in:
5 files changed
+49
-2
No files matched your search
@@ -1298,6 +1298,15 @@ inline void AdvancedOutput::SetupStreaming()
|
||||
obs_output_set_audio_encoder(streamOutput, streamAudioEnc, 0);
|
||||
obs_encoder_set_scaled_size(h264Streaming, cx, cy);
|
||||
obs_encoder_set_video(h264Streaming, obs_get_video());
|
||||
|
||||
const char *id = obs_service_get_id(main->GetService());
|
||||
if (strcmp(id, "rtmp_custom") == 0) {
|
||||
obs_data_t *settings = obs_data_create();
|
||||
obs_service_apply_encoder_settings(main->GetService(), settings,
|
||||
nullptr);
|
||||
obs_encoder_update(h264Streaming, settings);
|
||||
obs_data_release(settings);
|
||||
}
|
||||
}
|
||||
|
||||
inline void AdvancedOutput::SetupRecording()
|
||||
|
||||
Reference in new issue
Block a user