mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-23 10:59:57 +01:00
Update AV1 parameters
This commit is contained in:
parent
d312feb5e6
commit
0040795dc1
@ -83,7 +83,7 @@ ff-av1-scale720p() {
|
|||||||
for input in *.mp4; do
|
for input in *.mp4; do
|
||||||
if [[ -f "$input" ]]; then
|
if [[ -f "$input" ]]; then
|
||||||
tempfile="temp_${input%.mp4}"
|
tempfile="temp_${input%.mp4}"
|
||||||
ffmpeg -hide_banner -loglevel info -i "$input" -vf format=yuv420p,scale=1280:-2 -c:v libsvtav1 -preset 5 -crf 18 -g 300 -svtav1-params tune=0 -c:a copy -c:s copy "$tempfile.mp4"
|
ffmpeg -hide_banner -loglevel info -i "$input" -vf format=yuv420p10le,scale=1280:-2 -c:v libsvtav1 -preset 6 -crf 20 -g 30 -svtav1-params tune=0 -c:a copy -c:s copy "$tempfile.mp4"
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
mv "$input" "_$input"
|
mv "$input" "_$input"
|
||||||
mv "$tempfile.mp4" "$input"
|
mv "$tempfile.mp4" "$input"
|
||||||
@ -187,4 +187,4 @@ function ff-ar-custom() {
|
|||||||
else
|
else
|
||||||
ffmpeg -hide_banner -loglevel error -i "$1" -c copy -map 0 -bsf:v "h264_metadata=sample_aspect_ratio=$2" -aspect $3 -pix_fmt yuv420p -movflags faststart "_$1"
|
ffmpeg -hide_banner -loglevel error -i "$1" -c copy -map 0 -bsf:v "h264_metadata=sample_aspect_ratio=$2" -aspect $3 -pix_fmt yuv420p -movflags faststart "_$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user