From 7a3a28bb6195f8309f87a588320ae109b1b0412c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 8 Mar 2017 01:08:49 +0100 Subject: Use RAW by default. --- bin/send-gst-rtp-v-a | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/send-gst-rtp-v-a') diff --git a/bin/send-gst-rtp-v-a b/bin/send-gst-rtp-v-a index 0589963..88b02e0 100755 --- a/bin/send-gst-rtp-v-a +++ b/bin/send-gst-rtp-v-a @@ -7,8 +7,8 @@ RECIP=${RECIP:-$1} # destination host - default: use multicast group VDEVICES=${1:-$(find /dev -maxdepth 1 -type c -name 'video*' | sort)} #ADEVICES=${2:-$(arecord -L | grep -Po '^hw:\S+')} #ADEVICES=${2:-$(arecord -L | grep -Pom1 '^hw:\S+')} -VFORMAT=${VFORMAT:-$3} # H264 VP8 RAW - default: H264 -AFORMAT=${AFORMAT:-$4} # AMR OPUS RAW - default: AMR +VFORMAT=${VFORMAT:-$3} # H264 VP8 RAW - default: RAW +AFORMAT=${AFORMAT:-$4} # AMR OPUS RAW - default: RAW set -u # set multicast groups (also for recorder host) if camera host is wildcard @@ -25,26 +25,26 @@ VCAPS=video/x-raw,height="$HEIGHT" ACAPS=audio/x-raw,rate="$AUDIORATE",channels=2,depth=16 case "$VFORMAT" in - H264|'') + H264) # * let x264 use low-latency sliced-threads (i.e. don't disable treads) VENC="x264enc speed-preset=ultrafast tune=zerolatency bitrate=800 byte-stream=true key-int-max=15 intra-refresh=true option-string=\"slice-max-size=8192:vbv-maxrate=80:vbv-bufsize=10\" ! video/x-h264,profile=baseline ! rtph264pay" ;; VP8) VENC="vp8enc min_quantizer=10 max_quantizer=10 cpu-used=10 deadline=1000000 ! video/x-vp8 ! rtpvp8pay" ;; - RAW) + RAW|'') VENC="rtpvrawpay" ;; esac case "$AFORMAT" in - AMR|'') + AMR) AENC="amrnbenc ! rtpamrpay" ;; OPUS) AENC="opusenc ! rtpopuspay" ;; - RAW) + RAW|'') AENC="rtpL16pay" ;; esac -- cgit v1.2.3