diff --git a/src/main.c b/src/main.c index 0b21e16a517071bb9c4999f0f9ccb95fb90f3c9a..4b705d7cc1f7727ad87ae68831b99bb8fe847e9d 100644 --- a/src/main.c +++ b/src/main.c @@ -14,9 +14,9 @@ static gchar *rist_addresses = NULL; static GOptionEntry options[] = { { "srt-uri", 'u', 0, G_OPTION_ARG_STRING, &srt_uri, - "SRT stream URI. Default: " DEFAULT_SRT_URI ".", "srt://address:port" }, + "SRT stream URI. Default: " DEFAULT_SRT_URI, "srt://address:port" }, { "rist-addresses", 'r', 0, G_OPTION_ARG_STRING, &rist_addresses, - "Comma-separated list of addresses to send RIST packets to. Default: " DEFAULT_RIST_ADDRESSES ".", "address:port,address:port" }, + "Comma-separated list of addresses to send RIST packets to. Default: " DEFAULT_RIST_ADDRESSES, "address:port,address:port" }, { NULL } }; @@ -228,8 +228,8 @@ int main (int argc, char *argv[]) "queue ! decodebin ! videoconvert ! autovideosink " "t. ! queue leaky=downstream ! tsdemux ! mpegtsmux ! hlssink location=%s/segment%%05d.ts playlist-location=%s/playlist.m3u8 target-duration=5 playlist-length=3 " "t. ! queue leaky=downstream max-size-buffers=400 ! rtpmp2tpay ! ristsink bonding-addresses=%s " - "t. ! queue leaky=downstream ! tsdemux ! h264parse ! rtph264pay ! application/x-rtp,payload=96 ! tee name=webrtctee allow-not-linked=true" - , + "t. ! queue leaky=downstream ! tsdemux ! h264parse ! rtph264pay ! application/x-rtp,payload=96 ! tee name=webrtctee allow-not-linked=true " + "t. ! queue leaky=downstream max-size-buffers=400 ! srtsink uri=srt://:7002?mode=listener", srt_uri, mss_http_server_get_hls_dir (http_server), mss_http_server_get_hls_dir (http_server), @@ -260,7 +260,8 @@ int main (int argc, char *argv[]) g_print ("Input SRT URI is %s.\n" "\nOutput streams:\n" "\tHLS & WebRTC web player: http://localhost:8080\n" - "\tRIST: %s\n", + "\tRIST: %s\n" + "\tSRT: srt://127.0.0.1:7002", srt_uri, rist_addresses);