From 3814d318885097515966eb5cdf3c15db42d43c8c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 11 May 2017 14:12:30 +0200 Subject: Fix set realtime flag only for file sources. --- bin/stream | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/stream b/bin/stream index c248c0a..21f0fe5 100755 --- a/bin/stream +++ b/bin/stream @@ -140,12 +140,12 @@ tee_rtp() { stream=$1; pt=$2; port=$3; # * VP8 encoding based on http://www.webmproject.org/docs/encoder-parameters/#real-time-cbr-encoding-and-streaming # + Add 1s latency (deadline) # * Use same RTP payload types as GStreamer -ffmpeg -hide_banner -threads auto -re \ +ffmpeg -hide_banner -threads auto \ ${ALSA:+-f alsa -sample_rate "$AFRAMERATE" -channels "$ACHANNELS" -thread_queue_size 2048 -i "$ALSA"} \ ${DVCAM:+-f iec61883 -thread_queue_size 64 -i $DVCAM} \ - ${XFILE:+-i "$XFILE"} \ + ${XFILE:+-re -i "$XFILE"} \ ${IIDC:+-f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$IIDC"} \ - ${VFILE:+-i "$VFILE"} \ + ${VFILE:+-re -i "$VFILE"} \ ${LOGO:+-i "$LOGO"} \ ${HASVIDEO:+-filter_complex \ "$(filter_split_height); -- cgit v1.2.3