generated from me/template-mit
Compare commits
2
Commits
6f2e18e2f1
...
2ee0fd2c31
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ee0fd2c31 | ||
|
|
fd2720eb6c |
+25
-3
@@ -1070,22 +1070,44 @@ function pv3 {
|
|||||||
out="$2"
|
out="$2"
|
||||||
echo "Processing '$org' to '$out' using AV1 and OPUS."
|
echo "Processing '$org' to '$out' using AV1 and OPUS."
|
||||||
|
|
||||||
|
## Versions ##
|
||||||
|
|
||||||
|
# v0
|
||||||
|
preset=0 # took 20 minutes where preset 2 was under 2 minutes
|
||||||
|
crf=18
|
||||||
|
vbr=2000k # this is creating 2Mbps files, not maxxing at 2.
|
||||||
|
overshoot=0
|
||||||
|
undershoot=100
|
||||||
|
|
||||||
|
# v1
|
||||||
|
preset=2 # WAY faster and still great.
|
||||||
|
crf=28 # much smaller filesize
|
||||||
|
|
||||||
|
# v2
|
||||||
|
vbr=1000k
|
||||||
|
overshoot=100
|
||||||
|
|
||||||
|
## Main ##
|
||||||
|
|
||||||
echo -e "\n * Original File * \n"
|
echo -e "\n * Original File * \n"
|
||||||
ffprobe -i "$org"
|
ffprobe -i "$org"
|
||||||
|
|
||||||
echo -e "\n * Starting Processing *\n"
|
echo -e "\n * Starting Processing *\n"
|
||||||
|
date
|
||||||
|
set -x
|
||||||
ffmpeg -nostdin -hide_banner -loglevel level+warning \
|
ffmpeg -nostdin -hide_banner -loglevel level+warning \
|
||||||
-i "$org" \
|
-i "$org" \
|
||||||
-c:v libsvtav1 \
|
-c:v libsvtav1 \
|
||||||
-preset 0 \
|
-preset $preset \
|
||||||
-filter:v scale=-1:720 \
|
-filter:v scale=-1:720 \
|
||||||
-crf 18 \
|
-crf $crf \
|
||||||
-svtav1-params rc=1:tbr=2000k:overshoot-pct=0:undershoot-pct=100 \
|
-svtav1-params rc=1:tbr=${vbr}:overshoot-pct=${overshoot}:undershoot-pct=${undershoot} \
|
||||||
-c:a libopus \
|
-c:a libopus \
|
||||||
-filter:a dynaudnorm=f=33:g=65:p=0.66:m=33.3 \
|
-filter:a dynaudnorm=f=33:g=65:p=0.66:m=33.3 \
|
||||||
-movflags +faststart \
|
-movflags +faststart \
|
||||||
"$out"
|
"$out"
|
||||||
status="$?"
|
status="$?"
|
||||||
|
set +x
|
||||||
|
|
||||||
if [[ "$status" != 0 || ! -s "$out" ]]; then
|
if [[ "$status" != 0 || ! -s "$out" ]]; then
|
||||||
echo "Failed, deleting output."
|
echo "Failed, deleting output."
|
||||||
|
|||||||
Reference in new issue
Block a user