Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
multistream-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Show Cases
IBC 2019
multistream-server
Commits
80de6138
Commit
80de6138
authored
Aug 14, 2019
by
Jakub Adam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SRT output stream
parent
14adfec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/main.c
src/main.c
+6
-5
No files found.
src/main.c
View file @
80de6138
...
...
@@ -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
"
"
\n
Output streams:
\n
"
"
\t
HLS & WebRTC web player: http://localhost:8080
\n
"
"
\t
RIST: %s
\n
"
,
"
\t
RIST: %s
\n
"
"
\t
SRT: srt://127.0.0.1:7002"
,
srt_uri
,
rist_addresses
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment