Przeglądaj źródła

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.
pkv 4 lat temu
rodzic
commit
258365da71
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c

+ 3 - 1
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)