From 80ed1d3156b81135327f65752be6cd7a4bd92748 Mon Sep 17 00:00:00 2001 From: Cody Cook Date: Fri, 31 May 2019 16:49:17 -0700 Subject: [PATCH] fix variables for loglevel dryrun doesn't work, doesn't like /dev/null or null... the examples use -f but this command doesn't... have to reconsider --- ts-to-mkv.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts-to-mkv.sh b/ts-to-mkv.sh index 38e47be..b597bc7 100644 --- a/ts-to-mkv.sh +++ b/ts-to-mkv.sh @@ -42,7 +42,7 @@ ffmpegcheck(){ ## Env ## SAVEIFS=$IFS IFS=$(echo -en "\n\b") -loglevel="level+info" +loglevel="-loglevel level+info" FFMPEG="/data/sourcecode/ffmpeg/ffmpeg-4.1.3-amd64-static/ffmpeg" if [[ ! -f "$FFMPEG" ]]; then FFMPEG=$(/usr/bin/env which ffmpeg) @@ -95,7 +95,7 @@ while getopts d:p:fnXhkq OPT; do echo "[debug] no custom pathing; using $WORKPATH" fi ;; q) - loglevel="quiet" + loglevel="-loglevel quiet" echo "[debug] disabling ffmpeg output" ;; X) dryrun="1" @@ -130,7 +130,7 @@ if [[ "$filelist" ]]; then -codec:s srt \ -metadata:s:s:0 language=eng \ $force \ - -loglevel "$loglevel" \ + $loglevel \ "${OUTFILE}" exitcode="$?"