Commit 193dd77e authored by Nicolas Dufresne's avatar Nicolas Dufresne

mss: Use hlssink2

Because it's newer but also more accurate on segment split.
parent c1ef2730
......@@ -310,7 +310,7 @@ print_stats (gpointer user_data)
g_object_get (src, "stats", &s, NULL);
str = gst_structure_to_string (s);
g_debug ("%s", str);
//g_debug ("%s", str);
g_free (str);
gst_structure_free (s);
......@@ -352,8 +352,8 @@ int main (int argc, char *argv[])
"t. ! queue leaky=downstream ! srtsink uri=srt://:7002?mode=listener async=0 "
"t. ! queue ! tsdemux latency=50 ! tee name=h264_t "
"h264_t. ! queue ! decodebin ! videoconvert ! autovideosink async=0 "
"h264_t. ! queue ! h264parse ! video/x-h264, alignment=au ! mpegtsmux ! "
"hlssink location=%s/segment%%05d.ts playlist-location=%s/playlist.m3u8 target-duration=1 playlist-length=3 async=0 "
"h264_t. ! queue ! h264parse ! video/x-h264, alignment=au ! "
"hlssink2 location=%s/segment%%05d.ts playlist-location=%s/playlist.m3u8 send-keyframe-requests=0 target-duration=1 playlist-length=5 async=0 "
"h264_t. ! queue ! h264parse ! rtph264pay config-interval=1 ! application/x-rtp,payload=96 ! tee name=webrtctee allow-not-linked=true ",
srt_uri,
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