VMAF 94.76 - preset 5 crf 15
____________________________________________________________
Encoding
Ab-av1
crf-search -i "D:\file.mkv" --pix-format yuv420p10le --svt fast-decode=1 --svt tune=0 --preset 5 --min-samples 40 --min-vmaf 96
#40 samples → crf 15 VMAF 94.76 predicted video stream size 1.54 GiB (6%) taking 2 hours
Handbrake 1.8.2 (2024081000)
Video.svt-av1 10 bit fast decode Preset 5 crf 15
Audio.128 kbps opus 2.0
____________________________________________________________
File
Video: AV01 1920x1080 23.976fps [V: av1 main, yuv420p10le, 1920x1080 [default]]
Audio: Opus 48000Hz stereo 3072kbps [A: TrueHD 7.1 Atmos [eng] (opus, 48000 Hz, stereo) [default]]
Subtitle [S: Chinese [chi] (pgs)]
Subtitle [S: Danish [dan] (pgs)]
Subtitle [S: Dutch [dut] (pgs)]
Subtitle: Advanced SubStation Alpha [S: English [eng] (ass)]
Subtitle: Advanced SubStation Alpha [S: SDH [eng] (ass)]
Subtitle [S: English [eng] (pgs)]
Subtitle [S: English [eng] (pgs)]
Subtitle [S: COMMENTARY [eng] (pgs)]
Subtitle [S: Finnish [fin] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: COMMENTARY [fre] (pgs)]
Subtitle [S: COMMENTARY [fre] (pgs)]
Subtitle [S: German [ger] (pgs)]
Subtitle [S: German [ger] (pgs)]
Subtitle [S: COMMENTARY [ger] (pgs)]
Subtitle [S: Italian [ita] (pgs)]
Subtitle [S: Italian [ita] (pgs)]
Subtitle [S: COMMENTARY [ita] (pgs)]
Subtitle [S: Japanese [jpn] (pgs)]
Subtitle [S: COMMENTARY [jpn] (pgs)]
Subtitle [S: FORCED [jpn] (pgs)]
Subtitle [S: Norwegian [nor] (pgs)]
Subtitle [S: Spanish [spa] (pgs)]
Subtitle [S: Spanish [spa] (pgs)]
Subtitle [S: COMMENTARY [spa] (pgs)]
Subtitle [S: Swedish [swe] (pgs)]
Subtitle [S: Turkish [tur] (pgs)]
Subtitle [S: Forced Subtitles (auto)]
Subtitle: UTF-8 [S: No subtitles]
General
Unique ID : 239097329606500765950465472796612939602 (0xB3E0787DE8B2768852A289162BF0CF52)
Complete name : Smile.2022.bluray.sdr.1080p.av1.vmaf94-Rosy.mkv
Format : Matroska
Format version : Version 4
File size : 1.88 GiB
Duration : 1 h 55 min
Overall bit rate : 2 326 kb/s
Frame rate : 23.976 FPS
Movie name : Smile.2022.bluray.sdr.1080p.av1.vmaf94-Rosy
Encoded date : 2024-11-06 14:06:48 UTC
Writing application : mkvmerge v88.0 ('All I Know') 64-bit
Writing library : libebml v1.4.5 + libmatroska v1.7.1
Cover : Yes
Attachments : cover.jpg
Video
ID : 1
Format : AV1
Format/Info : AOMedia Video 1
Format profile : [email protected]
Codec ID : V_AV1
Duration : 1 h 55 min
Bit rate : 1 873 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 0)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.038
Stream size : 1.51 GiB (80%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 1 h 55 min
Bit rate : 111 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Compression mode : Lossy
Stream size : 91.9 MiB (5%)
Title : TrueHD 7.1 Atmos
Language : English
Default : Yes
Forced : No
____________________________________________________________
Source
Video: MPEG4 Video (H264) 1920x1080 23.976fps [V: English [eng] (h264 high L4.1, yuv420p, 1920x1080)]
Audio: TrueHD 48000Hz 8ch 9216kbps [A: TrueHD 7.1 Atmos [eng] (truehd atmos, 48000 Hz, 7.1, s24) [default]]
Audio: DTS 48000Hz 8ch 9216kbps [A: DTS-HD MA 7.1 [eng] (dts-hd ma, 48000 Hz, 7.1, s24)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [eng] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [eng] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [ger] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [spa] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [fre] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [fre] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [ita] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: DD 5.1 [jpn] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Audio: Dolby AC3 48000Hz stereo 224kbps [A: DD 2.0 [eng] (ac3, 48000 Hz, stereo, 224 kb/s)]
Subtitle: UTF-8 [S: English [eng] (subrip) [default]]
Subtitle: UTF-8 [S: SDH [eng] (subrip) [hearing impaired]]
Subtitle [S: English [eng] (pgs)]
Subtitle [S: English [eng] (pgs)]
Subtitle [S: Danish [dan] (pgs)]
Subtitle [S: German [ger] (pgs)]
Subtitle [S: German [ger] (pgs)]
Subtitle [S: Spanish [spa] (pgs)]
Subtitle [S: Spanish [spa] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: Italian [ita] (pgs)]
Subtitle [S: Italian [ita] (pgs)]
Subtitle [S: Japanese [jpn] (pgs)]
Subtitle [S: Chinese [chi] (pgs)]
Subtitle [S: Dutch [dut] (pgs)]
Subtitle [S: Norwegian [nor] (pgs)]
Subtitle [S: Finnish [fin] (pgs)]
Subtitle [S: Swedish [swe] (pgs)]
Subtitle [S: Turkish [tur] (pgs)]
Subtitle [S: COMMENTARY [eng] (pgs)]
Subtitle [S: COMMENTARY [ger] (pgs)]
Subtitle [S: COMMENTARY [spa] (pgs)]
Subtitle [S: COMMENTARY [fre] (pgs)]
Subtitle [S: COMMENTARY [fre] (pgs)]
Subtitle [S: COMMENTARY [ita] (pgs)]
Subtitle [S: COMMENTARY [jpn] (pgs)]
Subtitle [S: FORCED [jpn] (pgs)]
Subtitle [S: Forced Subtitles (auto)]
Subtitle: UTF-8 [S: No subtitles]
General
Unique ID : 146434383258101434655075094471621642648 (0x6E2A3C821E952A489D7BEFCEF2B68998)
Complete name : Smile.2022.1080p.BluRay.REMUX.AVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT.mkv
Format : Matroska
Format version : Version 4
File size : 33.8 GiB
Duration : 1 h 55 min
Overall bit rate mode : Variable
Overall bit rate : 41.9 Mb/s
Frame rate : 23.976 FPS
Movie name : Smile.2022.1080p.BluRay.REMUX.AVC.DTS-HD.MA.TrueHD.7.1 Atmos-FGT
Encoded date : 2022-12-10 15:03:01 UTC
Writing application : mkvmerge v72.0.0 ('Minuano (Six-eight)') 64-bit
Writing library : libebml v1.4.4 + libmatroska v1.7.1
Video
ID : 1
ID in the original source medi : 4113 (0x1011)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 4 frames
Format settings, GOP : M=3, N=12
Format settings, Slice count : 4 slices per frame
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 55 min
Bit rate mode : Variable
Bit rate : 28.9 Mb/s
Maximum bit rate : 31.5 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.581
Time code of first frame : 00:59:59:00
Stream size : 23.3 GiB (69%)
Language : English
Default : No
Forced : No
Original source medium : Blu-ray
Audio #1
ID : 2
ID in the original source medi : 4352 (0x1100)
Format : MLP FBA 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Codec ID : A_TRUEHD
Duration : 1 h 55 min
Bit rate mode : Variable
Bit rate : 3 637 kb/s
Maximum bit rate : 7 251 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 1 200.000 FPS (40 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 2.94 GiB (9%)
Title : TrueHD 7.1 Atmos
Language : English
Default : Yes
Forced : No
Original source medium : Blu-ray
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE
____________________________________________________________
Tools
Ab-av1
FFBitrateViewer
FFmpeg
FFmetrics
Freefilesync
Handbrake
Jackett
Mediainfo
Mkvtoolknix
Qbittorent
Scenerulez
Shutterencoder
VVV-virtualvolumeview
Xnconvert
Xnview mp
===================== AV1 guide v12 ========================
Step 1 - Check VMAF with Ab-av1(1)
1. AV1
Source resolution → crf-search -i "c:\file.mkv" --pix-format yuv420p10le --svt fast-decode=1 --svt tune=0 --preset 5 --min-samples 20 --min-vmaf 98
1080p Downscale → crf-search -i "c:\file.mkv" --pix-format yuv420p10le --svt fast-decode=1 --svt tune=0 --preset 5 --min-samples 20 --min-vmaf 96 --vfilter "scale=-1:1080"
720p Downscale → crf-search -i "c:\file.mkv" --pix-format yuv420p10le --svt fast-decode=1 --svt tune=0 --preset 5 --min-samples 20 --min-vmaf 96 --vfilter "scale=-1:720"
Sample encode → sample-encode -i "c:\file.mkv" --pix-format yuv420p10le --svt fast-decode=1 --svt tune=0 --preset 5 --min-samples 20 --crf 20
2. x265
Source resolution → crf-search -i "c:\file.mkv" --encoder libx265 --pix-format yuv420p10le --preset medium --min-samples 20 --enc x265-params=fastdecode=1 --min-vmaf 98
1080p Downscale → crf-search -i "c:\file.mkv" --encoder libx265 --pix-format yuv420p10le --preset medium --min-samples 20 --enc x265-params=fastdecode=1 --min-vmaf 96 --vfilter "scale=-1:1080"
720p Downscale → crf-search -i "c:\file.mkv" --encoder libx265 --pix-format yuv420p10le --preset medium --min-samples 20 --enc x265-params=fastdecode=1 --min-vmaf 96 --vfilter "scale=-1:720"
____________________________________________________________
Step 2 - HandBrake
Summary:
- Container: MKV
Dimensions:
- Cropping: None
- Anamorphic: None
- Borders: None
Video:
- Encoder: AV1 (10-bit SVT)
- Framerate: Same as source
- Preset: 5
- Fast Decode: ✓
- Encoder Profile: Main
- Encoder Level: Auto
- Quality: CRF determined from "ab-av1"(1)
Audio:
- DTS to Opus Conversion:
- DTS 7.1 → Opus @ 512 kbps
- DTS 5.1 → Opus @ 384 kbps
- DTS 2.0 → Opus @ 128 kbps
*When passtrough? lossy codec(opus,aac, ac3, eac3,wma) 768-128 kbps
____________________________________________________________
Step 3 - Subtitles
- Original → passtrough
- Subtitle Translator
- Whisper OpenAI
- Opensubtitles
- Subtitlecat
*If size is an issue don`t use pgs, prefer ass/srt.
____________________________________________________________
References
1. Dolby, 2023. What are Dolby Vision profiles and levels? [Online] Available at: https://professionalsupport.dolby.com/s/article/What-is-Dolby-Vision-Profile?language=en_US (Accessed 18 August 2024).
2. Ozer, J., 2017. Video Encoding by the Numbers: Eliminate the Guesswork from your Streaming Video. Doceo Publishing. [Available on Amazon](https://www.amazon.com.br/dp/0998453005) (Accessed 18 August 2024).
3. Sayood, K., 2017. Introduction to Data Compression. 5th Edition.
4. Ozer, J., 2021. What is CBR, VBR, CRF, Capped-CRF? Rate Control Modes Explained. Available at: https://ottverse.com/what-is-cbr-vbr-crf-capped-crf-rate-control-explained/ (Accessed 05 August 2024).
5. Rassool, Reza. VMAF Reproducibility: Validating a Perceptual Practical Video Quality Metric. Available at: https://realnetworks.com/sites/default/files/vmaf_reproducibility_ieee.pdf
6. Kah, A. e al. Fundamental relationships between subjective quality, user acceptance, and the VMAF metric for a quality-based bit rate ladder design for over-the-top video streaming services. Available at: https://www.hs-rm.de/fileadmin/user_upload/SPIE_11842-38_HSRM.pdf