Browse Source

updated cleaning checks

master
Ryan Beck 3 months ago
parent
commit
c36915d6bc
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      transcode.sh

+ 5
- 5
transcode.sh View File

@ -9,7 +9,7 @@
#to pray to St. Isidore... good luck if you encounter issues.
#Default operations, change if necessary
FFBIN="/usr/bin/" #if unusual install or a specific version
FFBIN="/usr/bin" #if unusual install or a specific version
HostName="localhost" #if localhost then will do locally (removes ssh/scp cmds)
hostFile="/tmp/transcode/list.txt"
workDIR="$PWD/transcode"
@ -41,7 +41,7 @@ function encode {
"enable-overlays=1:\
tune=0:\
keyint=10s" \
-map 0:a? -acodec eac3 \
-map 0:a? -c:a eac3 \
-map 0:s? -c:s copy $subline \
-map 0:d? -c:d copy \
-map 0:t? -c:t copy \
@ -277,16 +277,16 @@ do
fi
#REMOVE THE TEMP FILE (if necessary)
if ls "$workDIR"/"$fileNAME"
if [ -f "$workDIR"/"$fileNAME" ]
then
rm "$workDIR"/"$fileNAME"
else
echo "Workdir already cleaned"
fi
if ls "$tmpDIR"/"$fileNAME"
if [ -f "$tmpDIR"/"$fileNAME" ]
then
rm "$tmpDIR"/"$fileNAME"
elif ls "$tmpDIR"/"dummy.mkv"
elif [ -f "$tmpDIR"/"dummy.mkv" ]
then
rm "$tmpDIR"/"dummy.mkv"
else

Loading…
Cancel
Save