Joe: The video keeps lagging! Bad encode?
Rosy: Nope, it’s 60fps AV1 1080p. Old devices without proper hardware can’t handle it.
Joe: So it’s my gear?
Rosy: Yep. Upgrade or stick to H.264 for now.
Joe: Great, another excuse to spend money :) Thanks for the heads-up, Rosy.
____________________________________________________________
Info
SONE-448 J-Cup Office Lady is Addicted to Sexual Harassment and Sticky Sex with Perverted Boss Who She Hates to Death, Not Her Boyfriend... Marushii Rea
DVD ID: SONE-448
Content ID: sone00448
Release Date: 07 Nov 2024
Duration: 120 mins
Director: Trendy Yamaguchi トレンディ山口
Studio:S1 NO.1 STYLE
Categories: Office Lady; Drama; Big Tits; Featured Actress; Orgasm; Cheating Wife; Exclusive Distribution; 4K; Hi-Def.
Cast(s):Rea Maruishi 丸石レア
____________________________________________________________
Encoding
Handbrake 1.9.0 (2024120100)
Video.svt-av1 10 bit fast decode Preset 5 2-pass vbr 1565 kbps
Audio.2.0 aac 256 kbps passtrough
FFmetrics - 10 min
PSNR 48.6903
SSIM 0.9924
VMAF 95.2342
____________________________________________________________
File
Video: AV01 1920x1080 59.94fps [V: av1 main, yuv420p, 1920x1080 [default]]
Audio: AAC 48000Hz stereo [A: Stereo (aac lc, 48000 Hz, stereo) [default]]
Subtitle: UTF-8 [S: Afrikaans [afr] (subrip) [default]]
Subtitle: UTF-8 [S: Belarusian [bel] (subrip) [default]]
Subtitle: UTF-8 [S: Bulgarian [bul] (subrip) [default]]
Subtitle: UTF-8 [S: Bihari [bih] (subrip) [default]]
Subtitle: UTF-8 [S: Bengali [ben] (subrip) [default]]
Subtitle: UTF-8 [S: Czech [cze] (subrip) [default]]
Subtitle: UTF-8 [S: German [ger] (subrip) [default]]
Subtitle: UTF-8 [S: Greek [gre] (subrip) [default]]
Subtitle: UTF-8 [S: English [eng] (subrip) [default]]
Subtitle: UTF-8 [S: Spanish [spa] (subrip) [default]]
Subtitle: UTF-8 [S: Finnish [fin] (subrip) [default]]
Subtitle: UTF-8 [S: French [fre] (subrip) [default]]
Subtitle: UTF-8 [S: Hindi [hin] (subrip) [default]]
Subtitle: UTF-8 [S: Croatian [hrv] (subrip) [default]]
Subtitle: UTF-8 [S: Hungarian [hun] (subrip) [default]]
Subtitle: UTF-8 [S: Icelandic [ice] (subrip) [default]]
Subtitle: UTF-8 [S: Italian [ita] (subrip) [default]]
Subtitle: UTF-8 [S: Hebrew [heb] (subrip) [default]]
Subtitle: UTF-8 [S: Japanese [jpn] (subrip) [default]]
Subtitle: UTF-8 [S: Khmer [khm] (subrip) [default]]
Subtitle: UTF-8 [S: Korean [kor] (subrip) [default]]
Subtitle: UTF-8 [S: Kurdish [kur] (subrip) [default]]
Subtitle: UTF-8 [S: Luxembourgish [ltz] (subrip) [default]]
Subtitle: UTF-8 [S: Malayalam [mal] (subrip) [default]]
Subtitle: UTF-8 [S: Marathi [mar] (subrip) [default]]
Subtitle: UTF-8 [S: Malay [may] (subrip) [default]]
Subtitle: UTF-8 [S: Burmese [bur] (subrip) [default]]
Subtitle: UTF-8 [S: Dutch [dut] (subrip) [default]]
Subtitle: UTF-8 [S: Polish [pol] (subrip) [default]]
Subtitle: UTF-8 [S: Portuguese [por] (subrip) [default]]
Subtitle: UTF-8 [S: Portuguese [por] (subrip) [default]]
Subtitle: UTF-8 [S: Russian [rus] (subrip) [default]]
Subtitle: UTF-8 [S: Slovak [slo] (subrip) [default]]
Subtitle: UTF-8 [S: Albanian [alb] (subrip) [default]]
Subtitle: UTF-8 [S: Serbian [srp] (subrip) [default]]
Subtitle: UTF-8 [S: Uzbek [uzb] (subrip) [default]]
Subtitle: UTF-8 [S: Vietnamese [vie] (subrip) [default]]
Subtitle: UTF-8 [S: Chinese [chi] (subrip) [default]]
Subtitle: UTF-8 [S: Twi [twi] (subrip) [default]]
Subtitle: UTF-8 [S: No subtitles]
General
Unique ID : 219312287404952770653098270826202059 (0x2A3CEE3BAC08D445FA07F24DCC83CB)
Complete name : SONE-448.Rea.Maruishi.24.11.07.xxx.1080p.av1.subs.vmaf-Rosy.mkv
Format : Matroska
Format version : Version 4
File size : 1.53 GiB
Duration : 1 h 59 min
Overall bit rate : 1 827 kb/s
Frame rate : 59.940 FPS
Movie name : SONE-448.Rea.Maruishi.24.11.07.xxx.1080p.av1.subs.vmaf-Rosy
Encoded date : 2024-12-05 14:00:09 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 59 min
Bit rate : 1 566 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 0)
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.013
Stream size : 1.31 GiB (86%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 1 h 59 min
Bit rate : 256 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 220 MiB (14%)
Title : Stereo
Default : Yes
Forced : No
____________________________________________________________
Source
[email protected]
Video: MPEG4 Video (H264) 1920x1080 59.94fps 6998kbps [V: h264 main L4.2, yuv420p, 1920x1080, 6998 kb/s]
Audio: AAC 48000Hz stereo 255kbps [A: aac lc, 48000 Hz, stereo, 255 kb/s]
General
Complete name : SONE-448\[email protected]
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 6.09 GiB
Duration : 1 h 59 min
Overall bit rate : 7 273 kb/s
Frame rate : 59.940 FPS
Writing application : Lavf59.27.100
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference fra : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 h 59 min
Bit rate : 6 999 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 59.940 FPS
Minimum frame rate : 59.920 FPS
Maximum frame rate : 59.960 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.056
Stream size : 5.86 GiB (96%)
Writing library : x264 core 164 r3156 d46938d
Encoding settings : cabac=1 / ref=3 / deblock=1:1:0 / analyse=0x1:0x131 / me=hex / subme=7 / psy=1 / psy_rd=0.50:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=infinite / keyint_min=120 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=7000 / ratetol=1.0 / qcomp=0.50 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=9800 / vbv_bufsize=9800 / nal_hrd=none / filler=0 / ip_ratio=1.41 / aq=2:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 7194037
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 1 h 59 min
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 220 MiB (4%)
Default : Yes
Alternate group : 1
____________________________________________________________
Tools
Ab-av1
FFBitrateViewer
FFmpeg
FFmetrics
Freefilesync
Handbrake
Jackett
Mediainfo
Mkvtoolknix
Qbittorent
Scenerulez
Shutterencoder
VVV-virtualvolumeview
Xnconvert
Xnview mp
===================== AV1 guide v20 ========================
1) TLDR ez recipe
Handbrake
svt-av1 10 bit
Preset 5-7
crf 25
fast-decode
____________________________________________________________
2) Encoding by crf
stv-av1 10 bit crf 25 - high quality
stv-av1 10 bit crf 20 - very high quality
stv-av1 10 bit crf 15 - super high quality
stv-av1 10 bit crf 10 - max quality (usually from here file gets bigger than original)
____________________________________________________________
3) Encoding by crf + vmaf
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
1.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 15-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.
____________________________________________________________
4) Encoding by vbr preset 5-7
Step 1 - recommended sizes:
av1 1080p 30min high quality - 400mb
av1 1080p 60min high quality - 800mb
av1 1080p 120min+ high quality - 1600mb
av1 1080p super high quality - 4000mb - 4600mb
av1 2160p 120min+ medium quality - 4000mb - 4600mb
av1 2160p 120min+ high quality - 6000 - 8400mb
av1 2160p 120min+ super high quality - 12000 - 16000mb
Step 2 - recommended bitrate:
1080p medium quality - 1000 kbps
1080p high quality - 1500 kbps
1080p very high quality - 2000 kbps
1080p super high quality - 4000 kbps
2160p medium quality - 4000 kbps
2160p high quality - 6000 kbps
2160p super high quality - 12000 - 16000 kbps
____________________________________________________________
5) Observations
AV1 presets have a significant impact on both bitrate and quality. For instance, moving from preset 5 to preset 2 can boost VMAF scores by 2-4 points. This behavior differs notably from x265, where higher-quality presets typically increase file size. In AV1, file size often remains unchanged or even decreases as quality improves with lower presets.
A good example is Netflix AV1 rips, which achieve decent quality at 1080p with astonishingly low bitrates of 500-700 kbps. This is likely due to the use of extremely low presets (2, 1, or 0), which require substantial computational power but yield remarkable results.
This demonstrates that bitrate alone is not a reliable indicator of quality. Similarly, relying solely on VMAF scores or subjective visual assessment can be misleading. A balanced approach that combines multiple evaluation methods is essential, particularly when faced with unusual cases, such as low VMAF scores despite high bitrates.
____________________________________________________________
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.