Skip to content

Commit

Permalink
reset defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrandev committed Dec 26, 2016
1 parent 237ddb0 commit 4aeb717
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions swift-encoder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Available Optimizations #
# #
# Anime - Adds some specific encoding options. #
# Normal - Adds no additionall encoding options. #
# Normal - Adds no additional encoding options. #
###########################################################

##############################
Expand Down Expand Up @@ -81,7 +81,7 @@ cmpltd_fls_fldr=completed
# (Better off not touching unless you know what you are doing)

if [ "$1" = "anime" ] && [ "$videocodec" = "libx264" ] ; then
for f in "$2"/*."$inputformat"; do
for f in "$2"/*."$inputformat"; do
ffmpeg -i "$f" \
-c:v "$videocodec" \
-crf "$ratefactor" \
Expand All @@ -93,7 +93,7 @@ for f in "$2"/*."$inputformat"; do
-pix_fmt "$pixelformat" \
"${f%."$inputformat"}[se]."$outputformat""; done
elif [ "$1" = "anime" ] && [ "$videocodec" = "libx265" ] ; then
for f in "$2"/*."$inputformat"; do
for f in "$2"/*."$inputformat"; do
ffmpeg -i "$f" \
-c:v "$videocodec" \
-crf "$ratefactor" \
Expand All @@ -105,7 +105,7 @@ for f in "$2"/*."$inputformat"; do
-pix_fmt "$pixelformat" \
"${f%."$inputformat"}[se]."$outputformat""; done
else
for f in "$2"/*."$inputformat"; do
for f in "$2"/*."$inputformat"; do
ffmpeg -i "$f" \
-c:v "$videocodec" \
-crf "$ratefactor" \
Expand Down

0 comments on commit 4aeb717

Please sign in to comment.