forge
Explore
Log in

Don't you dare go Hollow

Lane-pareto2 -- reproducible recipe for the SVT-AV1 preset-8 screen point our decoder reads one sample off

Browse files at this commit

5f9ef35c2e94acca70206763166fd2847bdddf59Ahmet Kaan GümüşParent: 0e781dc
  • docs
    • lane-pareto2 -- reproducible recipe for the SVT-AV1 preset-8 screen point our decoder reads one sample off
Show full message
docs(lanes): lane-pareto2 -- reproducible recipe for the SVT-AV1 preset-8 screen point our decoder reads one sample off
lanes/pareto2.mdmodified+33 -0
@@ -123,3 +123,36 @@ without an arm of its own.
123123 * recomposing preset 6 by REMOVING a lever it keeps (delta_q, tpl 4): the
124124 candidates' BD stakes are 0.1-0.2 points and their wall sits under this
125125 box's 13% floor, so the arms cannot rank them. Same unblock.
126+
127+## OPEN, for a decoder lane: an SVT-AV1 stream our decoder reads one sample off
128+
129+`EC_AV1_PARETO_REFS=1` collected this on the screen row (it is a NOTE on a
130+reference row, not a gate failure):
131+
132+ LADDER DECODE FAILURE: libsvtav1 ["-preset", "8", "-crf", "35",
133+ "-svtav1-params", "lp=1"] frame 0 plane Y sample 1471489:
134+ our decoder decoded 53, ffmpeg 52
135+
136+i.e. frame 0 (the key frame), luma, sample 1471489 of 1920x1024 = row 766,
137+column 1729. One sample, off by one; every other point of every other
138+reference ladder in this lane decoded sample-exact.
139+
140+Reproduce (SvtAv1 v3.1.2 through ffmpeg, no repo fixture touched -- the
141+artifacts live in `$HOME/.cache/pareto2/`):
142+
143+ # the gate's own screen clip: the first OBS .mkv in the manifest that exists
144+ SRC=$(awk -F'\t' 'NR>1 && $1 ~ /\/OBS\// && $1 ~ /\.mkv$/ {print $1; exit}' \
145+ fixtures/real-library-manifest.tsv)
146+ # probe::gate_crop of a 2560x1440 source = 1920x1024 from the middle
147+ ffmpeg -v error -y -ss 0 -i "$SRC" -frames:v 12 \
148+ -vf crop=1920:1024:320:208 -f rawvideo -pix_fmt yuv420p \
149+ $HOME/.cache/pareto2/svt-screen-1920x1024-12f.yuv # md5 d10969be96c8d4e3888401759f562db4
150+ ffmpeg -v error -y -f rawvideo -pix_fmt yuv420p -s 1920x1024 -r 24 \
151+ -i $HOME/.cache/pareto2/svt-screen-1920x1024-12f.yuv \
152+ -an -threads 1 -g 12 -c:v libsvtav1 -preset 8 -crf 35 \
153+ -svtav1-params lp=1 -f obu \
154+ $HOME/.cache/pareto2/svt-p8-crf35-screen.obu # 74769 B, md5 ca517253599f1ef8d5bf61371c0f578c
155+
156+Then `crate::stream::decode_stream` on that .obu against
157+`encode::tests::ffmpeg_decode_sequence` of the same bytes, comparing Y of
158+frame 0 at index 1471489. Both artifacts are kept at those paths.
lanes/pareto2.report.mdmodified+33 -0
@@ -123,3 +123,36 @@ without an arm of its own.
123123 * recomposing preset 6 by REMOVING a lever it keeps (delta_q, tpl 4): the
124124 candidates' BD stakes are 0.1-0.2 points and their wall sits under this
125125 box's 13% floor, so the arms cannot rank them. Same unblock.
126+
127+## OPEN, for a decoder lane: an SVT-AV1 stream our decoder reads one sample off
128+
129+`EC_AV1_PARETO_REFS=1` collected this on the screen row (it is a NOTE on a
130+reference row, not a gate failure):
131+
132+ LADDER DECODE FAILURE: libsvtav1 ["-preset", "8", "-crf", "35",
133+ "-svtav1-params", "lp=1"] frame 0 plane Y sample 1471489:
134+ our decoder decoded 53, ffmpeg 52
135+
136+i.e. frame 0 (the key frame), luma, sample 1471489 of 1920x1024 = row 766,
137+column 1729. One sample, off by one; every other point of every other
138+reference ladder in this lane decoded sample-exact.
139+
140+Reproduce (SvtAv1 v3.1.2 through ffmpeg, no repo fixture touched -- the
141+artifacts live in `$HOME/.cache/pareto2/`):
142+
143+ # the gate's own screen clip: the first OBS .mkv in the manifest that exists
144+ SRC=$(awk -F'\t' 'NR>1 && $1 ~ /\/OBS\// && $1 ~ /\.mkv$/ {print $1; exit}' \
145+ fixtures/real-library-manifest.tsv)
146+ # probe::gate_crop of a 2560x1440 source = 1920x1024 from the middle
147+ ffmpeg -v error -y -ss 0 -i "$SRC" -frames:v 12 \
148+ -vf crop=1920:1024:320:208 -f rawvideo -pix_fmt yuv420p \
149+ $HOME/.cache/pareto2/svt-screen-1920x1024-12f.yuv # md5 d10969be96c8d4e3888401759f562db4
150+ ffmpeg -v error -y -f rawvideo -pix_fmt yuv420p -s 1920x1024 -r 24 \
151+ -i $HOME/.cache/pareto2/svt-screen-1920x1024-12f.yuv \
152+ -an -threads 1 -g 12 -c:v libsvtav1 -preset 8 -crf 35 \
153+ -svtav1-params lp=1 -f obu \
154+ $HOME/.cache/pareto2/svt-p8-crf35-screen.obu # 74769 B, md5 ca517253599f1ef8d5bf61371c0f578c
155+
156+Then `crate::stream::decode_stream` on that .obu against
157+`encode::tests::ffmpeg_decode_sequence` of the same bytes, comparing Y of
158+frame 0 at index 1471489. Both artifacts are kept at those paths.