~voidraven/s4

681fb4ed71c5b197d414d1dd4a2eda4666ce5432 — lotus 2 years ago a2ec5f1
.
1 files changed, 10 insertions(+), 2 deletions(-)

M .s4/watch.sh
M .s4/watch.sh => .s4/watch.sh +10 -2
@@ 16,7 16,15 @@ FRAMERATE=WWW
# Where the local currently recording video is residing.
# When the video is done recording, we copy it over
CACHE_DIR="$HOME/.s4/cache"

# log file location
S4_LOG_DIR="$HOME/.s4/s4.log"
# FFmpeg arguments:
FF_ARG_STD="-hide_banner -nostats -loglevel fatal"
FF_ARG_LOG="-loglevel warning"
#FF_ARG_DBG=""
# Logging disabled by default
# ( to enable change to "true" )
S4_LOG_ENABLED="NO-S4-LOGGING"

# flip the status files over to reflect True
fun_set_true () {


@@ 33,7 41,7 @@ fun_record () {
    fun_set_true
    local VIDNAME=$1
    # -y flag means always overwrite
    ffmpeg -y -hide_banner -nostats -loglevel fatal -framerate $FRAMERATE -video_size $REZ -i $WEBCAM "$CACHE_DIR/$VIDNAME.mkv" &
    ffmpeg -y $FF_ARG_STD -framerate $FRAMERATE -video_size $REZ -i $WEBCAM "$CACHE_DIR/$VIDNAME.mkv" &
}

# stop the camera