____________________________________________________________
Encoding
FFmetrics
10 minutes → VMAF 99.58
30 minutes → VMAF 99.45
Handbrake 1.8.2 (2024081000)
Video.svt-av1 10 bit fast decode Preset 5 2-pass vbr 6852 kbps
Audio.7.1 opus 512 kbps
____________________________________________________________
File
Video: AV01 3840x2160 23.976fps [V: av1 main, yuv420p10le, 3840x2160 [default]]
Audio: Opus 48000Hz 8ch 12288kbps [A: 7.1 opus 512 kbps [eng] (opus, 48000 Hz, 7.1) [default]]
Subtitle [S: pgs [eng] (pgs)]
Subtitle [S: pgs [eng] (pgs)]
Subtitle [S: pgs [chi] (pgs)]
Subtitle [S: pgs [chi] (pgs)]
Subtitle [S: pgs [chi] (pgs)]
Subtitle [S: pgs [fre] (pgs)]
Subtitle [S: pgs [kor] (pgs)]
Subtitle [S: pgs [por] (pgs)]
Subtitle [S: pgs [spa] (pgs)]
Subtitle [S: pgs [tha] (pgs)]
Subtitle: UTF-8 [S: srt opensubtitles [eng] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [ara] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [spa] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [por] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [dut] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [may] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [tur] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [fre] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [vie] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [hrv] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [heb] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [swe] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [hun] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [srp] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [pol] (subrip) [default]]
Subtitle: UTF-8 [S: ass opensubtitles [chi] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [jpn] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [ger] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [kor] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [rus] (subrip) [default]]
Subtitle: UTF-8 [S: srt opensubtitles [ita] (subrip) [default]]
Subtitle [S: Forced Subtitles (auto)]
Subtitle: UTF-8 [S: No subtitles]
General
Unique ID : 121414292040386625473708371643366265673 (0x5B578AC536433381CA9B46047A325349)
Complete name : Spider-Man.No.Way.Home.2021.bluray.hdr.2160p.av1.7.1.opus.vmaf99-Rosy.mkv
Format : Matroska
Format version : Version 4
File size : 7.62 GiB
Duration : 2 h 28 min
Overall bit rate : 7 357 kb/s
Frame rate : 23.976 FPS
Movie name : Spider-Man.No.Way.Home.2021.bluray.hdr.2160p.av1.7.1.opus.vmaf99-Rosy
Encoded date : 2024-11-24 05:20:32 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 : Main@L5.0
HDR format : Dolby Vision, Version 1.0, Profile 10.1, dav1.10.08, BL+RPU, no metadata compression, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible
Codec ID : V_AV1
Duration : 2 h 28 min
Bit rate : 6 780 kb/s
Width : 3 840 pixels
Height : 2 160 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 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.034
Stream size : 7.02 GiB (92%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primar : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 9978
MaxCLL_Original : 9978 cd/m2
Maximum Frame-Average Light Le : 867
MaxFALL_Original : 867 cd/m2
Audio
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 2 h 28 min
Bit rate : 397 kb/s
Channel(s) : 8 channels
Channel layout : L R C Ls Rs Lb Rb LFE
Sampling rate : 48.0 kHz
Frame rate : 50.000 FPS (960 SPF)
Compression mode : Lossy
Stream size : 420 MiB (5%)
Title : 7.1 opus 512 kbps
Language : English
Default : Yes
Forced : No
____________________________________________________________
Source
Spider-Man.No.Way.Home.2021.UHD.BluRay.2160p.TrueHD.Atmos.7.1.DV.HEVC.REMUX-FraMeSToR
Video: HVC1 3840x2160 23.976fps [V: hevc main 10 L5.1, yuv420p10le, 3840x2160 [default]]
Audio: TrueHD 48000Hz 8ch 9216kbps [A: TrueHD Atmos 7.1 [eng] (truehd atmos, 48000 Hz, 7.1, s24) [default]]
Audio: Dolby AC3 48000Hz 6ch 640kbps [A: AC-3 5.1 [eng] (ac3, 48000 Hz, 5.1(side), 640 kb/s)]
Subtitle [S: English [eng] (pgs)]
Subtitle [S: English (SDH) [eng] (pgs)]
Subtitle [S: Chinese (Cantonese) [chi] (pgs)]
Subtitle [S: Chinese (Simplified) [chi] (pgs)]
Subtitle [S: Chinese (Traditional) [chi] (pgs)]
Subtitle [S: French [fre] (pgs)]
Subtitle [S: Korean [kor] (pgs)]
Subtitle [S: Portuguese (Brazilian) [por] (pgs)]
Subtitle [S: Spanish (Latin American) [spa] (pgs)]
Subtitle [S: Thai [tha] (pgs)]
Subtitle [S: Forced Subtitles (auto)]
Subtitle: UTF-8 [S: No subtitles]
General
Unique ID : 125169211456801413316334911032536794918 (0x5E2AB6974A30714EAFCA3248CE470726)
Complete name : Spider-Man.No.Way.Home.2021.UHD.BluRay.2160p.TrueHD.Atmos.7.1.DV.HEVC.REMUX-FraMeSToR.mkv
Format : Matroska
Format version : Version 4
File size : 61.5 GiB
Duration : 2 h 28 min
Overall bit rate mode : Variable
Overall bit rate : 59.4 Mb/s
Frame rate : 23.976 FPS
Movie name : Spider-Man: No Way Home 4K
Encoded date : 2022-03-13 00:02:45 UTC
Writing application : mkvmerge v65.0.0 ('Too Much') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
IMDB : tt10872600
TMDB : movie/634649
Video
ID : 1
ID in the original source medi : 4113 (0x1011)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, Profile 7.6, dvhe.07.06, BL+EL+RPU, no metadata compression, Blu-ray compatible / SMPTE ST 2086, Version HDR10, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 28 min
Bit rate : 54.3 Mb/s
Width : 3 840 pixels
Height : 2 160 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 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.273
Stream size : 56.2 GiB (91%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primar : BT.2020
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 9978 cd/m2
Maximum Frame-Average Light Le : 867 cd/m2
Original source medium : Blu-ray
Audio #1
ID : 2
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 : 2 h 28 min
Bit rate mode : Variable
Bit rate : 4 054 kb/s
Maximum bit rate : 7 548 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)
Compression mode : Lossless
Stream size : 4.20 GiB (7%)
Title : TrueHD Atmos 7.1
Language : English
Default : Yes
Forced : No
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 v14 ========================
Step 1 - Check VMAF with Ab-av1
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), or crf 20-25
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.
Whisperai large-v3 2024 (prompts)
!pip install git+
https://github.com/openai/whisper.git
!sudo apt update && sudo apt install ffmpeg
!whisper "audio.aac" --model large-v3 --language Japanese --task translate
____________________________________________________________
References
1. Dolby, 2023. What are Dolby Vision profiles and levels? [Online]
2. Ozer, J., 2017. Video Encoding by the Numbers: Eliminate the Guesswork from your Streaming Video. Doceo Publishing.
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.
5. Rassool, Reza. VMAF Reproducibility: Validating a Perceptual Practical Video Quality Metric.
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.
7. Boldrin, M. 2008. Against Intellectual Monopoly.