Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrandev committed Dec 26, 2016
2 parents 4aeb717 + 36e3b5b commit 96828d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ ___
#### Operation
This script is very easy to use:
1. Change the encoding options as you see fit in the **swift-encoder.sh** file.
2. Run the script: `./swift-encoder.sh /path/to/source/files`
2. Run the script: `sh swift-encoder.sh optimization /path/to/source/files`

- example: `sh swift-encoder.sh anime /home/donut/Videos/NGE`
- example: `sh swift-encoder.sh normal /home/donut/Videos/Sports\ Cam`

**Note:** The script will default to `normal` if the optimization is misspelled.

3. Sit back, relax, and wait for your files to finish encoding. Once the
script is finshed running, the files will me moved into a folder called
`completed` with `[se]` appended to them.
Expand Down
2 changes: 1 addition & 1 deletion swift-encoder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ elif [ "$1" = "anime" ] && [ "$videocodec" = "libx265" ] ; then
-c:v "$videocodec" \
-crf "$ratefactor" \
-preset "$preset" \
-x265-params allow-non-conformance:ref=8:bframes=8:rd=6:me=star:b-adapt=2:qg-size=64:rc-lookahead=40:scenecut=45:weightb=1:psy-rd=2.0 \
-x265-params allow-non-conformance:ref=8:bframes=8:rd=6:me=star:b-adapt=2:qg-size=64:rc-lookahead=40:scenecut=45:weightb=1:psy-rd=2.0 \
-c:a "$audiocodec" \
-"$audioencoding" "$audiobitrate" \
-ac "$audiochannels" \
Expand Down

0 comments on commit 96828d6

Please sign in to comment.