diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-03-08 01:08:49 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-03-08 01:08:49 +0100 |
commit | 7a3a28bb6195f8309f87a588320ae109b1b0412c (patch) | |
tree | d053662ef54fcc463f6d7bf31c96cabee10b796d /bin/send-gst-rtp-v-a | |
parent | 0e645bd9ddc20e8c57ae71882054d89b6192257b (diff) |
Use RAW by default.
Diffstat (limited to 'bin/send-gst-rtp-v-a')
-rwxr-xr-x | bin/send-gst-rtp-v-a | 12 |
1 files changed, 6 insertions, 6 deletions
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 |