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
This commit is contained in:
parent
9c814327f9
commit
80ed1d3156
1 changed files with 3 additions and 3 deletions
|
@ -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="$?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue