Commit 80de6138 authored by Jakub Adam's avatar Jakub Adam

Add SRT output stream

parent 14adfec5
...@@ -14,9 +14,9 @@ static gchar *rist_addresses = NULL; ...@@ -14,9 +14,9 @@ static gchar *rist_addresses = NULL;
static GOptionEntry options[] = { static GOptionEntry options[] = {
{ "srt-uri", 'u', 0, G_OPTION_ARG_STRING, &srt_uri, { "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, { "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 } { NULL }
}; };
...@@ -228,8 +228,8 @@ int main (int argc, char *argv[]) ...@@ -228,8 +228,8 @@ int main (int argc, char *argv[])
"queue ! decodebin ! videoconvert ! autovideosink " "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 ! 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 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, srt_uri,
mss_http_server_get_hls_dir (http_server), mss_http_server_get_hls_dir (http_server),
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[]) ...@@ -260,7 +260,8 @@ int main (int argc, char *argv[])
g_print ("Input SRT URI is %s.\n" g_print ("Input SRT URI is %s.\n"
"\nOutput streams:\n" "\nOutput streams:\n"
"\tHLS & WebRTC web player: http://localhost:8080\n" "\tHLS & WebRTC web player: http://localhost:8080\n"
"\tRIST: %s\n", "\tRIST: %s\n"
"\tSRT: srt://127.0.0.1:7002",
srt_uri, srt_uri,
rist_addresses); rist_addresses);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment