From c8368ef166fe18a97b5bbc7fea6577981461e50a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 22 May 2017 17:44:58 +0200 Subject: Add target hls_mpeg. --- bin/stream | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/stream b/bin/stream index 7a5851c..beae9ab 100755 --- a/bin/stream +++ b/bin/stream @@ -243,6 +243,7 @@ mux() { targets="$1"; targetcount=$(echo "$targets" | wc --words) if [ $targetcount -lt 2 ]; then case "$targets" in + hls_mpeg) echo_n "-f hls -hls_time 6 -hls_flags delete_segments -hls_flags discont_start -hls_flags append_list -use_localtime 1 -hls_segment_filename file-%Y%m%d-%s.ts index.m3u8";; rtp_opus) echo_n "-f rtp -payload_type 111 rtp://$IP:$FIRSTPORT?pkt_size=1440";; rtp_vp8) echo_n "-f rtp -payload_type 100 rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";; rtp_mpegts) echo_n "-f rtp_mpegts rtp://$IP:10000?pkt_size=1440";; @@ -252,6 +253,7 @@ mux() { targets="$1"; echo_n "-f tee " for target in $targets; do case "$target" in + hls_mpeg) echo_n "[f=hls:hls_time=6:hls_flags=delete_segments:hls_flags=discont_start:hls_flags=append_list:use_localtime=1:hls_segment_filename=file-%Y%m%d-%s.ts]index.m3u8";; rtp_opus) echo_n "[select=\'a\':f=rtp:payload_type=111]rtp://$IP:$FIRSTPORT?pkt_size=1440";; rtp_vp8) echo_n "[select=\'v\':f=rtp:payload_type=100]rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";; rtp_mpegts) echo_n "[f=rtp_mpegts]rtp://$IP:$((FIRSTPORT+2))?pkt_size=1440";; -- cgit v1.2.3