ws-video2-flv: H263 slice structure (Annex K, ffmpeg h263p with slice threads), MV prediction across slice starts as ffmpeg

This commit is contained in:
4DBug committed 2026-10-31 14:56:51 -05:00
1 parent 625c1fade2
commit 2a5da31c80
3 files changed
+119 -47

No files matched your search

+4 -1
View File
@@ -1,6 +1,6 @@
# H.263 / Sorenson Spark fixtures for codecs/video/H263 (tools/fixtures.py): streams from ffmpeg's encoders (h263:
# sub-QCIF .. 4CIF, GOB headers, adaptive quantisation (DQUANT), low and high bitrates; h263p: PLUSPTYPE with custom
# sizes, the rounding type, unrestricted vectors; flv: Sorenson Spark with its standard, 8-bit and 16-bit custom
# sizes, the rounding type, unrestricted vectors, slice structure; flv: Sorenson Spark with its standard, 8-bit and 16-bit custom
# sizes, 11-bit escapes, disposable inter pictures patched in), high and low motion (testsrc2, mandelbrot, scroll),
# each with `ffmpeg -flags +bitexact -idct int` decoding as the reference (the integer IDCT codecs/video/Dsp
# reproduces; bitexact: ffmpeg's x86 half-sample averages without rounding are approximations otherwise).
@@ -47,6 +47,9 @@ CASES = {
"plus_custom": (src("testsrc2", 320, 240, 0.8, vf="scroll=h=0.02:v=0.01") + ["-b:v", "300k", "-g", "15"] + H263P, False),
"plus_odd": (src("mandelbrot", 196, 148, 0.6) + ["-b:v", "250k", "-g", "8"] + H263P, False),
"plus_umv": (src("testsrc2", 200, 152, 0.8, vf="scroll=h=0.06:v=0.04") + ["-umv", "1", "-q:v", "5", "-g", "25"] + H263P, False),
"plus_slices": (src("mandelbrot", 352, 288, 0.48) + ["-b:v", "600k", "-g", "6"] + H263P + ["-threads", "4", "-slices", "4"], False),
"plus_slices_umv": (src("testsrc2", 176, 144, 0.8, vf="scroll=h=-0.04:v=0.05") + ["-umv", "1", "-q:v", "4", "-g", "20"] + H263P
+ ["-threads", "3", "-slices", "3", "-ps", "200"], False),
"flv_320": (src("testsrc2", 320, 240, 1.0) + ["-b:v", "300k", "-g", "12"] + FLV, True),
"flv_odd": (src("mandelbrot", 100, 75, 0.6) + ["-b:v", "150k", "-g", "8"] + FLV, True),
"flv_wide": (src("testsrc2", 400, 224, 0.4, vf="scroll=h=0.03") + ["-b:v", "400k", "-g", "6"] + FLV, True),