generated from me/template-mit
pv3, a few more tweaks as we learn more about AV1.
This commit is contained in:
+15
-1
@@ -1144,6 +1144,19 @@ function pv3 {
|
|||||||
# Fix weird aspect ratios.
|
# Fix weird aspect ratios.
|
||||||
scale="1280:720,setsar=1"
|
scale="1280:720,setsar=1"
|
||||||
|
|
||||||
|
# v4
|
||||||
|
# Assuming it was just a weird Pixel phone video issue.
|
||||||
|
scale=-1:720
|
||||||
|
# Remove CRF since we are using VBR.
|
||||||
|
crf=""
|
||||||
|
# Still not 100% on these but seems like a good ballpark.
|
||||||
|
preset=6
|
||||||
|
vbr=800k
|
||||||
|
overshoot=50
|
||||||
|
undershoot=100
|
||||||
|
# Add audio bitrate.
|
||||||
|
abr=128k
|
||||||
|
|
||||||
## Main ##
|
## Main ##
|
||||||
|
|
||||||
echo -e "\n * Original File * \n"
|
echo -e "\n * Original File * \n"
|
||||||
@@ -1157,14 +1170,15 @@ function pv3 {
|
|||||||
-c:v libsvtav1 \
|
-c:v libsvtav1 \
|
||||||
-preset $preset \
|
-preset $preset \
|
||||||
-filter:v scale=$scale \
|
-filter:v scale=$scale \
|
||||||
-crf $crf \
|
|
||||||
-svtav1-params rc=1:tbr=${vbr}:overshoot-pct=${overshoot}:undershoot-pct=${undershoot} \
|
-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 \
|
||||||
|
-b:a $abr \
|
||||||
-movflags +faststart \
|
-movflags +faststart \
|
||||||
"$out"
|
"$out"
|
||||||
status="$?"
|
status="$?"
|
||||||
set +x
|
set +x
|
||||||
|
# -crf $crf \
|
||||||
|
|
||||||
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