X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=ffs;h=fe42908750b636051efe1ba9d2393b89d95f94e3;hb=371c5fd6ded824eca8ff2b19b6dae8aede579347;hp=4ffb0a0f6e184b23acba9108e1821247c7498b69;hpb=3342374657bd712f14cd772378b23d2bca3382cb;p=distro-setup diff --git a/ffs b/ffs index 4ffb0a0..fe42908 100755 --- a/ffs +++ b/ffs @@ -37,14 +37,16 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" exit status: $?, PIPESTATUS: ${P usage() { cat <&2 + exit 1 + ;; + esac + ffp_args+=($1) +fi if $delay; then # 2500 gets us around a 4 second delay, up from 1.5s. @@ -230,7 +243,7 @@ opts=( # # man page say zmq url default includes "localhost", but specifying a # localhost url caused an error for me. - -filter_complex "[0]azmq,volume=precision=fixed: volume=0 [vol0]; + -filter_complex "[0]azmq,volume=precision=fixed: volume=$volume [vol0]; [1]azmq='b=tcp\://127.0.0.1\:5556',volume=precision=fixed: volume=0 [vol1]; [vol0][vol1] amerge=inputs=2; [2]zmq='b=tcp\://127.0.0.1\:5557',drawbox=color=0x262626,drawtext=fontsize=90: fontcolor=beige: x=40: y=40: text=''${delay_arg}[out]" @@ -333,7 +346,7 @@ if [[ $mount_suffix == -sysops ]]; then touch $HOME/.iank-stream-on fi -echo true >$HOME/.iank-stream-muted +echo $volume >$HOME/.iank-stream-muted ffmpeg "${opts[@]}" & if $watch; then