From cf80af540d17b129878fb8b5a1866745430b91fa Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 23 Oct 2022 14:23:22 +0200 Subject: [PATCH] Add VMAF filter guide --- pages/04.other/18.ffmpeg/default.en.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/04.other/18.ffmpeg/default.en.md b/pages/04.other/18.ffmpeg/default.en.md index 6077523..627eefb 100644 --- a/pages/04.other/18.ffmpeg/default.en.md +++ b/pages/04.other/18.ffmpeg/default.en.md @@ -19,7 +19,7 @@ visible: false #### libaom-av1 ``` -ffmpeg -i "/mnt/storage/MediaLibrary/input/Joker/test.mkv" -metadata title="Joker" -disposition 0 \ +$ ffmpeg -i "/mnt/storage/MediaLibrary/input/Joker/test.mkv" -metadata title="Joker" -disposition 0 \ -c:v libaom-av1 -crf 23 -b:v 0 -cpu-used 6 -row-mt 1 -map 0:v:0 -metadata:s:v:0 title="Video" \ -c:a libopus -b:a 768k -ac:a 8 -map 0:a:0 -map 0:a:3 -metadata:s:a:0 title="English [7.1ch]" -metadata:s:a:0 language=eng -metadata:s:a:1 title="German [7.1ch]" -metadata:s:a:1 language=ger -disposition:a:0 default \ -c:s copy -map 0:s:0 -map 0:s:1 -metadata:s:s:0 title="English [PGS]" -metadata:s:s:0 language=eng -metadata:s:s:1 title="German [PGS]" -metadata:s:s:1 language=ger -disposition:s:0 default \ @@ -32,9 +32,16 @@ Additional settings for increased speed and cpu usage: -tiles 2x2: multiple parallel encoding tiles to speed up performance (4 in total here) ``` ``` -ffmpeg -i "/mnt/storage/MediaLibrary/input/Joker/test.mkv" -metadata title="Joker" -disposition 0 \ +$ ffmpeg -i "/mnt/storage/MediaLibrary/input/Joker/test.mkv" -metadata title="Joker" -disposition 0 \ -c:v libaom-av1 -crf 23 -b:v 0 -cpu-used 6 -row-mt 1 -g 239 -tiles 2x2 -map 0:v:0 -metadata:s:v:0 title="Video" \ -c:a libopus -b:a 768k -ac:a 8 -map 0:a:0 -map 0:a:3 -metadata:s:a:0 title="English [7.1ch]" -metadata:s:a:0 language=eng -metadata:s:a:1 title="German [7.1ch]" -metadata:s:a:1 language=ger -disposition:a:0 default \ -c:s copy -map 0:s:0 -map 0:s:1 -metadata:s:s:0 title="English [PGS]" -metadata:s:s:0 language=eng -metadata:s:s:1 title="German [PGS]" -metadata:s:s:1 language=ger -disposition:s:0 default \ /mnt/storage/MediaLibrary/output/Joker/test-libaom-av1-tiling-keyframes.mkv ``` + +## Video Quality +### VMAF +> [A practical guide for VMAF](https://medium.com/a-practical-guide-for-vmaf-481b4d420d9c) + +*Note: The order of the input videos is important. Make sure to place the distorted video first* +`$ ffmpeg -i (distorted) -i (original) -filter_complex libvmaf -f null -`