summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-11 14:12:30 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-11 14:12:30 +0200
commit3814d318885097515966eb5cdf3c15db42d43c8c (patch)
tree2baaa2c1d66508ef8d351b7ab51e05d84fa6629c
parentf42f77c048305bc1896ec23e1c5cb9d3e7acbe24 (diff)
Fix set realtime flag only for file sources.
-rwxr-xr-xbin/stream6
1 files 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);