You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RTSPServerFFmpeg/Program.cs
+49-23Lines changed: 49 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
usingSharpRTSPServer;
3
3
usingSystem;
4
4
usingSystem.Diagnostics;
5
+
usingSystem.IO;
5
6
usingSystem.Text;
6
7
usingSystem.Threading;
7
8
@@ -11,37 +12,59 @@
11
12
stringuserName=config["UserName"];
12
13
stringpassword=config["Password"];
13
14
14
-
stringffmpegPath=config["FFmpegPath"];
15
-
stringffmpegArgs=config["FFmpegArgs"];
16
-
stringvideoUri=config["VideoUri"];
17
-
stringaudioUri=config["AudioUri"];
15
+
stringffmpegPath=config["FFmpegPath"];// path to ffmpeg.exe
16
+
stringffmpegArgs=config["FFmpegArgs"];// Arguments that will be passed to the ffmpeg process
17
+
stringvideoUri=config["VideoUri"];// RTP video URI
18
+
stringaudioUri=config["AudioUri"];// RTP audio URI
19
+
stringsdpFile=config["SDPFile"];// SDP file path (Optional in case ffmpegPath and ffmpegArgs are not specified. You have to launch ffmpeg before starting the server.)
0 commit comments