Browse Source

updated cleaning checks

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

Loading…
Cancel
Save