Add --yes-{audi,vide}o
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
133e11d2fe
commit
8a785ba438
|
@ -18,6 +18,8 @@ OPTIONS:
|
||||||
-c, --vcodec CODEC Use CODEC as the video codec in ffmpeg encoding.
|
-c, --vcodec CODEC Use CODEC as the video codec in ffmpeg encoding.
|
||||||
-n, --no-audio Disable audio recording. Overrides audio options.
|
-n, --no-audio Disable audio recording. Overrides audio options.
|
||||||
-N, --no-video Disable video recording. Overrides video options.
|
-N, --no-video Disable video recording. Overrides video options.
|
||||||
|
-y, --yes-audio Enable audio recording. Overrides -n.
|
||||||
|
-Y, --yes-video Enable video recording. Overrides -N.
|
||||||
-v, --verbose Verbose output.
|
-v, --verbose Verbose output.
|
||||||
-h, --help Show this menu.
|
-h, --help Show this menu.
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,14 @@ and wofi(1) in order to accomplish the task.
|
||||||
*-v, --verbose*
|
*-v, --verbose*
|
||||||
Show the output of wf-recorder(1), ffmpeg(1), and wofi(1).
|
Show the output of wf-recorder(1), ffmpeg(1), and wofi(1).
|
||||||
|
|
||||||
|
*-Y, --yes-video*
|
||||||
|
Enable video recording. Overrides _-N_. Saved between clips over the
|
||||||
|
course of a session's lifetime.
|
||||||
|
|
||||||
|
*-y, --yes-audio*
|
||||||
|
Enable audio recording. Overrides _-n_. Saved between clips over the
|
||||||
|
course of a session's lifetime.
|
||||||
|
|
||||||
# ENVIRONMENT
|
# ENVIRONMENT
|
||||||
|
|
||||||
*WF_SHADOW_DIR*
|
*WF_SHADOW_DIR*
|
||||||
|
|
10
wf-shadow
10
wf-shadow
|
@ -90,6 +90,8 @@ OPTIONS:
|
||||||
-c, --vcodec CODEC Use CODEC as the video codec in ffmpeg encoding.
|
-c, --vcodec CODEC Use CODEC as the video codec in ffmpeg encoding.
|
||||||
-n, --no-audio Disable audio recording. Overrides audio options.
|
-n, --no-audio Disable audio recording. Overrides audio options.
|
||||||
-N, --no-video Disable video recording. Overrides video options.
|
-N, --no-video Disable video recording. Overrides video options.
|
||||||
|
-y, --yes-audio Enable audio recording. Overrides -n.
|
||||||
|
-Y, --yes-video Enable video recording. Overrides -N.
|
||||||
-v, --verbose Verbose output.
|
-v, --verbose Verbose output.
|
||||||
-h, --help Show this menu.
|
-h, --help Show this menu.
|
||||||
|
|
||||||
|
@ -194,6 +196,9 @@ until [ -z "$1" ]; do
|
||||||
'-n' | '--no-audio')
|
'-n' | '--no-audio')
|
||||||
NO_AUDIO=" "
|
NO_AUDIO=" "
|
||||||
shift 1 ;;
|
shift 1 ;;
|
||||||
|
'-y' | '--yes-audio')
|
||||||
|
NO_AUDIO=""
|
||||||
|
shift 1 ;;
|
||||||
'-V' | '--video')
|
'-V' | '--video')
|
||||||
VIDEO_DEV="$2"
|
VIDEO_DEV="$2"
|
||||||
shift 2 ;;
|
shift 2 ;;
|
||||||
|
@ -207,6 +212,9 @@ until [ -z "$1" ]; do
|
||||||
'-N' | '--no-video')
|
'-N' | '--no-video')
|
||||||
NO_VIDEO=" "
|
NO_VIDEO=" "
|
||||||
shift 1 ;;
|
shift 1 ;;
|
||||||
|
'-Y' | '--yes-video')
|
||||||
|
NO_VIDEO=""
|
||||||
|
shift 1 ;;
|
||||||
'-d' | '--debug')
|
'-d' | '--debug')
|
||||||
set -x
|
set -x
|
||||||
shift 1 ;;
|
shift 1 ;;
|
||||||
|
@ -222,8 +230,6 @@ declare -p NO_AUDIO >> "$RUNTIME"/"$MONITOR".env
|
||||||
declare -p VIDEO_CODEC >> "$RUNTIME"/"$MONITOR".env
|
declare -p VIDEO_CODEC >> "$RUNTIME"/"$MONITOR".env
|
||||||
declare -p NO_VIDEO >> "$RUNTIME"/"$MONITOR".env
|
declare -p NO_VIDEO >> "$RUNTIME"/"$MONITOR".env
|
||||||
|
|
||||||
. "$RUNTIME"/"$MONITOR".env
|
|
||||||
|
|
||||||
if [ -n "$NO_VIDEO" ] && [ -n "$NO_AUDIO" ]; then
|
if [ -n "$NO_VIDEO" ] && [ -n "$NO_AUDIO" ]; then
|
||||||
printf "Must have either audio or video recording enabled.\n"
|
printf "Must have either audio or video recording enabled.\n"
|
||||||
exit 3
|
exit 3
|
||||||
|
|
Loading…
Reference in New Issue