generated from me/template-mit
pv3, fix av1 codec and add betteroutput.
This commit is contained in:
+11
-1
@@ -1067,9 +1067,15 @@ function pv-test {
|
||||
function pv3 {
|
||||
org="$1"
|
||||
out="$2"
|
||||
echo "Processing '$org' to '$out' using AV1 and OPUS."
|
||||
|
||||
echo -e "\n * Original File * \n"
|
||||
ffprobe -i "$org"
|
||||
|
||||
echo -e "\n * Starting Processing *\n"
|
||||
ffmpeg -nostdin -hide_banner -loglevel level+warning \
|
||||
-i "$org" \
|
||||
-c:v libstvav1 \
|
||||
-c:v libsvtav1 \
|
||||
-preset 0 \
|
||||
-filter:v scale=-1:720 \
|
||||
-crf 18 \
|
||||
@@ -1079,10 +1085,14 @@ function pv3 {
|
||||
-movflags +faststart \
|
||||
"$out"
|
||||
status="$?"
|
||||
|
||||
if [[ "$status" != 0 || ! -s "$out" ]]; then
|
||||
echo "Failed, deleting output."
|
||||
mv -v "$out" ~/TRASH/
|
||||
return $status
|
||||
fi
|
||||
|
||||
echo -e "\n * Success! *"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user