From 258365da71f6202cfb1978fcd46684ebb28cafa0 Mon Sep 17 00:00:00 2001 From: pkv Date: Sat, 30 Oct 2021 12:53:16 +0200 Subject: [PATCH] obs-ffmpeg-mux: Add support for rist protocol This adds RIST to the list of protocols supported by the obs ffmpeg_mpegts_muxer. RIST is container and codec agnostic. But this implementation relies on ffmpeg avformat integration and uses mpeg-ts container. --- plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c b/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c index 450f85f7a..1c160ced4 100644 --- a/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c +++ b/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c @@ -617,13 +617,15 @@ static inline int open_output_file(struct ffmpeg_mux *ffm) #define UDP_PROTO "udp" #define TCP_PROTO "tcp" #define HTTP_PROTO "http" +#define RIST_PROTO "rist" static bool ffmpeg_mux_is_network(struct ffmpeg_mux *ffm) { return !strncmp(ffm->params.file, SRT_PROTO, sizeof(SRT_PROTO) - 1) || !strncmp(ffm->params.file, UDP_PROTO, sizeof(UDP_PROTO) - 1) || !strncmp(ffm->params.file, TCP_PROTO, sizeof(TCP_PROTO) - 1) || - !strncmp(ffm->params.file, HTTP_PROTO, sizeof(HTTP_PROTO) - 1); + !strncmp(ffm->params.file, HTTP_PROTO, sizeof(HTTP_PROTO) - 1) || + !strncmp(ffm->params.file, RIST_PROTO, sizeof(RIST_PROTO) - 1); } static int ffmpeg_mux_init_context(struct ffmpeg_mux *ffm)